为什么在ubuntu下使用packet-writing功能,刻录速度很慢?
时间:2011-07-12
来源:互联网
Hi ALL:
在linux内核../Documentation/cdrom/packet-writing.txt中这样写到:
-------------------------------------------------------------------------------------------------------------------
Packet writing for DVD+RW media
According to the DVD+RW specification, a drive supporting DVD+RW discs shall implement "true random writes with 2KB granularity", which means that it should be possible to put any filesystem with a block size >= 2KB on such a disc. For example, it should be possible to do:
# dvd+rw-format /dev/hdc (only needed if the disc has never been formatted) # mkudffs /dev/hdc
# mount /dev/hdc /cdrom -t udf -o rw,noatime
However, some drives don't follow the specification and expect the host to perform aligned writes at 32KB boundaries. Other drives do follow the specification, but suffer bad performance problems if the writes are not 32KB aligned.
Both problems can be solved by using the pktcdvd driver, which always generates aligned writes.
# dvd+rw-format /dev/hdc
# pktsetup dev_name /dev/hdc
# mkudffs /dev/pktcdvd/dev_name
# mount /dev/pktcdvd/dev_name /cdrom -t udf -o rw,noatime
-------------------------------------------------------------------------------------------------------------------
也就是说用户支持将UDF文件系统盘mount后,在应用层可以像操作硬盘的方式来操作光盘。比如正常的open,write功能。
我按照上面所描述的两种方式都能过成功刻录文件,但是在刻录时发现刻录速度很慢,linux下4XDVD盘实际刻录速度在0.8X左右;但是在Window系统下,相同格式的同一种盘实际刻录速度却能达到3X左右。
不知道大家在Linux系统下,有没有人在使用packet-writing功能时碰到相似的问题?有什么好的办法解决?
在linux内核../Documentation/cdrom/packet-writing.txt中这样写到:
-------------------------------------------------------------------------------------------------------------------
Packet writing for DVD+RW media
According to the DVD+RW specification, a drive supporting DVD+RW discs shall implement "true random writes with 2KB granularity", which means that it should be possible to put any filesystem with a block size >= 2KB on such a disc. For example, it should be possible to do:
# dvd+rw-format /dev/hdc (only needed if the disc has never been formatted) # mkudffs /dev/hdc
# mount /dev/hdc /cdrom -t udf -o rw,noatime
However, some drives don't follow the specification and expect the host to perform aligned writes at 32KB boundaries. Other drives do follow the specification, but suffer bad performance problems if the writes are not 32KB aligned.
Both problems can be solved by using the pktcdvd driver, which always generates aligned writes.
# dvd+rw-format /dev/hdc
# pktsetup dev_name /dev/hdc
# mkudffs /dev/pktcdvd/dev_name
# mount /dev/pktcdvd/dev_name /cdrom -t udf -o rw,noatime
-------------------------------------------------------------------------------------------------------------------
也就是说用户支持将UDF文件系统盘mount后,在应用层可以像操作硬盘的方式来操作光盘。比如正常的open,write功能。
我按照上面所描述的两种方式都能过成功刻录文件,但是在刻录时发现刻录速度很慢,linux下4XDVD盘实际刻录速度在0.8X左右;但是在Window系统下,相同格式的同一种盘实际刻录速度却能达到3X左右。
不知道大家在Linux系统下,有没有人在使用packet-writing功能时碰到相似的问题?有什么好的办法解决?
作者: tian0xin0 发布时间: 2011-07-12
没人知道吗?自己先顶下~别沉下去了
作者: tian0xin0 发布时间: 2011-07-13
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28