Burning multiple DVDs at one time
I'm having problems doing this.
When I burn a single disk, wodim shows the drive buf @ 99% consistently. The instant that a 2nd disk is being burned, the drive buf on the first one starts to drop and data stops when the 2nd wodim is performing OPC.
During the burn of both discs, the drive buf will drop on both until one of them finishes. Both drives see under runs.
When one starts fixating, the other will hang until the fixation is completed.
During the burns, the fifo of both never drop below 99%
There are no logs that are produced.
My burners are:
[6:0:0:0] cd/dvd ATAPI iHAS422 8 4L11 /dev/sr7 [7:0:0:0] cd/dvd ATAPI iHAS224 B GL05 /dev/sr8
Both are SATA drives attached to the onboard sata controller
00:1f.2 SATA controller: Intel Corporation 631xESB/632xESB SATA AHCI Controller (rev 09) 00:1f.2 0106: 8086:2681 (rev 09)
The kernel is a vanilla kernel v3.0.0. (This also happened with 2.6.35)
I don't believe it matters, but the data is coming over NFS via gigabit ethernet. Each burn process uses a 768M host buffer. As I stated, the host fifo on wodim never goes below 99%
The system motherboard is a SuperMicro X7DA8
Signature · 2 lines
Microsoft has beaten Volkswagen's world record. Volkswagen only created 22 million bugs.
Quoted 24 lines · On Mar 15 Wakko Warner wrote:
I'm having problems doing this.
When I burn a single disk, wodim shows the drive buf @ 99% consistently. The instant that a 2nd disk is being burned, the drive buf on the first one starts to drop and data stops when the 2nd wodim is performing OPC.
During the burn of both discs, the drive buf will drop on both until one of them finishes. Both drives see under runs.
When one starts fixating, the other will hang until the fixation is completed.
During the burns, the fifo of both never drop below 99%
There are no logs that are produced.
My burners are:
[6:0:0:0] cd/dvd ATAPI iHAS422 8 4L11 /dev/sr7 [7:0:0:0] cd/dvd ATAPI iHAS224 B GL05 /dev/sr8Both are SATA drives attached to the onboard sata controller
00:1f.2 SATA controller: Intel Corporation 631xESB/632xESB SATA AHCI Controller (rev 09) 00:1f.2 0106: 8086:2681 (rev 09)
Quoted 7 lines
The kernel is a vanilla kernel v3.0.0. (This also happened with 2.6.35)
I don't believe it matters, but the data is coming over NFS via gigabit ethernet. Each burn process uses a 768M host buffer. As I stated, the host fifo on wodim never goes below 99%
The system motherboard is a SuperMicro X7DA8
This is likely due to serialization by a global mutex in the sr driver. Have a look at thread "[PATCH] [SCSI] sr: fix multi-drive performance, remove BKL replacement" from February. https://lkml.org/lkml/2012/2/28/230
Signature · 3 lines
Stefan Richter -=====-===-- --== =---= http://arcgraph.de/sr/
Le Sat, 17 Mar 2012 09:56:44 +0100 vous écriviez:
Quoted 4 lines
This is likely due to serialization by a global mutex in the sr driver. Have a look at thread "[PATCH] [SCSI] sr: fix multi-drive performance, remove BKL replacement" from February.
https://lkml.org/lkml/2012/2/28/230
When was this regression introduced? I have a dedicated cd burning machine running 2.6.35.x, and it works great with 4 drives at a time.
Signature · 10 lines
------------------------------------------------------------------------
Emmanuel Florac | Direction technique
| Intellique
| <[email protected]>
| +33 1 78 94 84 02
------------------------------------------------------------------------
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.htmlQuoted 9 lines · On Mar 17 Emmanuel Florac wrote:
Le Sat, 17 Mar 2012 09:56:44 +0100 vous écriviez:
Quoted 4 lines
This is likely due to serialization by a global mutex in the sr driver. Have a look at thread "[PATCH] [SCSI] sr: fix multi-drive performance, remove BKL replacement" from February.
https://lkml.org/lkml/2012/2/28/230When was this regression introduced? I have a dedicated cd burning machine running 2.6.35.x, and it works great with 4 drives at a time.
BKL was replaced by sr_mutex in 2.6.37-rc1.
Wakko, you could try the patch from the mentioned thread and see whether it fixes your problem. But be aware that the patch opens possible race conditions between processes that access the same optical drive, e.g. applications vs. udisks-daemon. (I haven't noticed anything bad during the period of using the patch though.)
Signature · 7 lines
Stefan Richter -=====-===-- --== =---= http://arcgraph.de/sr/ -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 31 lines · Stefan Richter
Quoted 30 lines · On Mar 15 Wakko Warner wrote:
I'm having problems doing this.
When I burn a single disk, wodim shows the drive buf @ 99% consistently. The instant that a 2nd disk is being burned, the drive buf on the first one starts to drop and data stops when the 2nd wodim is performing OPC.
During the burn of both discs, the drive buf will drop on both until one of them finishes. Both drives see under runs.
When one starts fixating, the other will hang until the fixation is completed.
During the burns, the fifo of both never drop below 99%
There are no logs that are produced.
My burners are:
[6:0:0:0] cd/dvd ATAPI iHAS422 8 4L11 /dev/sr7 [7:0:0:0] cd/dvd ATAPI iHAS224 B GL05 /dev/sr8Both are SATA drives attached to the onboard sata controller
00:1f.2 SATA controller: Intel Corporation 631xESB/632xESB SATA AHCI Controller (rev 09) 00:1f.2 0106: 8086:2681 (rev 09)The kernel is a vanilla kernel v3.0.0. (This also happened with 2.6.35)
I don't believe it matters, but the data is coming over NFS via gigabit ethernet. Each burn process uses a 768M host buffer. As I stated, the host fifo on wodim never goes below 99%
Quoted 5 lines
Quoted 1 line
The system motherboard is a SuperMicro X7DA8
This is likely due to serialization by a global mutex in the sr driver. Have a look at thread "[PATCH] [SCSI] sr: fix multi-drive performance, remove BKL replacement" from February. https://lkml.org/lkml/2012/2/28/230
Thanks. I looked at the patch. I would just like to confirm that I can patch my 3.0.0 vanilla kernel, compile the sr module, unload the current and load the patched one without the need to reboot.
I do not use udisks.
Thanks for the responce, I'll try this when I have more discs to burn.
Signature · 2 lines
Microsoft has beaten Volkswagen's world record. Volkswagen only created 22 million bugs.
Quoted 25 lines · On Mar 17 Wakko Warner wrote:
Quoted 24 lines · Stefan Richter
Quoted 23 lines · On Mar 15 Wakko Warner wrote:
I'm having problems doing this.
When I burn a single disk, wodim shows the drive buf @ 99% consistently. The instant that a 2nd disk is being burned, the drive buf on the first one starts to drop and data stops when the 2nd wodim is performing OPC.
During the burn of both discs, the drive buf will drop on both until one of them finishes. Both drives see under runs.
When one starts fixating, the other will hang until the fixation is completed.
During the burns, the fifo of both never drop below 99%
There are no logs that are produced.
My burners are:
[6:0:0:0] cd/dvd ATAPI iHAS422 8 4L11 /dev/sr7 [7:0:0:0] cd/dvd ATAPI iHAS224 B GL05 /dev/sr8Both are SATA drives attached to the onboard sata controller
00:1f.2 SATA controller: Intel Corporation 631xESB/632xESB SATA AHCI Controller (rev 09) 00:1f.2 0106: 8086:2681 (rev 09)
[...]
Quoted 7 lines
Quoted 3 lines
This is likely due to serialization by a global mutex in the sr driver. Have a look at thread "[PATCH] [SCSI] sr: fix multi-drive performance, remove BKL replacement" from February. https://lkml.org/lkml/2012/2/28/230
Thanks. I looked at the patch. I would just like to confirm that I can patch my 3.0.0 vanilla kernel, compile the sr module, unload the current and load the patched one without the need to reboot.
Yes, this should be possible.
Quoted 1 line · I only noticed just know that you also
Quoted 1 line
Quoted 1 line
The kernel is a vanilla kernel v3.0.0. (This also happened with 2.6.35)
In 2.6.35, the Big Kernel Lock was still in place there. That lock behaved differently from a plain mutex --- notably it was released when a thread went to sleep --- so maybe there is more to your problem than just sr_mutex blocking unrelated sr accesses.
Signature · 3 lines
Stefan Richter -=====-===-- --== =---= http://arcgraph.de/sr/
Quoted 7 lines · Stefan Richter
Quoted 3 lines · On Mar 17 Wakko Warner wrote:
Thanks. I looked at the patch. I would just like to confirm that I can patch my 3.0.0 vanilla kernel, compile the sr module, unload the current and load the patched one without the need to reboot.
Yes, this should be possible.
Quoted 8 lines
Quoted 1 line · I only noticed just know that you also
Quoted 1 line
Quoted 1 line
The kernel is a vanilla kernel v3.0.0. (This also happened with 2.6.35)
In 2.6.35, the Big Kernel Lock was still in place there. That lock behaved differently from a plain mutex --- notably it was released when a thread went to sleep --- so maybe there is more to your problem than just
sr_mutexblocking unrelated sr accesses.
There is a good possibility that I was mistaken on the 2.6.35.
I manually applied your patch to 3.0.0, compiled, removed sr-mod module and inserted the newly compiled one.
With the vanilla one, I would see the buf % in wodim drop while the fifo was full. With the patch (removing the mutex), buf stayed above 98% and the burn speed was 16x at the end (10x avg).
Seems to have fixed my problem.
Thanks.
Signature · 2 lines
Microsoft has beaten Volkswagen's world record. Volkswagen only created 22 million bugs.
Quoted 19 lines · On Mar 18 Wakko Warner wrote:
Quoted 7 lines · Stefan Richter
Quoted 3 lines · On Mar 17 Wakko Warner wrote:
Thanks. I looked at the patch. I would just like to confirm that I can patch my 3.0.0 vanilla kernel, compile the sr module, unload the current and load the patched one without the need to reboot.
Yes, this should be possible.
Quoted 8 lines
Quoted 1 line · I only noticed just know that you also
Quoted 1 line
Quoted 1 line
The kernel is a vanilla kernel v3.0.0. (This also happened with 2.6.35)
In 2.6.35, the Big Kernel Lock was still in place there. That lock behaved differently from a plain mutex --- notably it was released when a thread went to sleep --- so maybe there is more to your problem than just
sr_mutexblocking unrelated sr accesses.There is a good possibility that I was mistaken on the 2.6.35.
Quoted 8 lines
I manually applied your patch to 3.0.0, compiled, removed sr-mod module and inserted the newly compiled one.
With the vanilla one, I would see the buf % in wodim drop while the fifo was full. With the patch (removing the mutex), buf stayed above 98% and the burn speed was 16x at the end (10x avg).
Seems to have fixed my problem.
Very nice; so there is an almost easy fix. Now I or somebody else need to work out the required cdrom_device_info protection on which Arnd and James commented.
Signature · 3 lines
Stefan Richter -=====-===-- --== =--=- http://arcgraph.de/sr/
Quoted 27 lines · Stefan Richter
Quoted 26 lines · On Mar 18 Wakko Warner wrote:
Quoted 7 lines · Stefan Richter
Quoted 3 lines · On Mar 17 Wakko Warner wrote:
Thanks. I looked at the patch. I would just like to confirm that I can patch my 3.0.0 vanilla kernel, compile the sr module, unload the current and load the patched one without the need to reboot.
Yes, this should be possible.
Quoted 8 lines
Quoted 1 line · I only noticed just know that you also
Quoted 1 line
Quoted 1 line
The kernel is a vanilla kernel v3.0.0. (This also happened with 2.6.35)
In 2.6.35, the Big Kernel Lock was still in place there. That lock behaved differently from a plain mutex --- notably it was released when a thread went to sleep --- so maybe there is more to your problem than just
sr_mutexblocking unrelated sr accesses.There is a good possibility that I was mistaken on the 2.6.35.
I manually applied your patch to 3.0.0, compiled, removed sr-mod module and inserted the newly compiled one.
With the vanilla one, I would see the buf % in wodim drop while the fifo was full. With the patch (removing the mutex), buf stayed above 98% and the burn speed was 16x at the end (10x avg).
Quoted 5 lines
Quoted 1 line
Seems to have fixed my problem.
Very nice; so there is an almost easy fix. Now I or somebody else need to work out the required
cdrom_device_infoprotection on which Arnd and James commented.
Has anything come of this as far as the fix going into the kernel?
Signature · 2 lines
Microsoft has beaten Volkswagen's world record. Volkswagen only created 22 million bugs.
Quoted 2 lines · On Apr 28 Wakko Warner wrote:
Quoted 1 line · Stefan Richter
On Mar 18 Wakko Warner wrote:
[sr_mutex removal]
Quoted 7 lines
Quoted 5 lines
Quoted 1 line
Seems to have fixed my problem.
Very nice; so there is an almost easy fix. Now I or somebody else need to work out the required
cdrom_device_infoprotection on which Arnd and James commented.Has anything come of this as far as the fix going into the kernel?
I haven't been working on it in the meantime; don't know if anybode else did.
Signature · 3 lines
Stefan Richter -=====-===-- -=-- ===-- http://arcgraph.de/sr/