Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Burn DVDs with growisofs with buffering
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
kekc
n00b
n00b


Joined: 15 May 2003
Posts: 33
Location: Toronto

PostPosted: Fri Dec 10, 2004 9:51 pm    Post subject: Burn DVDs with growisofs with buffering Reply with quote

I'm using kernel 2.6.9-nitro4, ide-cd(ATAPI) and the burner is a BenQ DW1620. When I attempt to burn data DVD the burn speed (as indicated by k3b-0.11.17) is usually in the range of 0.5x to 3x, this on a 16x speed drive.

This was caused by the fact that growisofs communicates with the mkisofs program using a standard unix pipe, and on linux the pipe buffer is only 4KB big. This means that when growisofs is busy sending data to the DVD writer, mkisofs can not write more than 4KB to the pipe before it gets stuck. Therefore, mkisofs and growisofs didn't work very much in parallel.

Solution:
You need small program pipebuf
compile it and move to /usr/local/bin:
Code:

#sh pipebuf.c
#mv pipebuf /usr/local/bin/


Then you can burn DVDs at maximum speed:

Code:

( nice -n -5 mkisofs -r -J -rational-rock -joliet -joliet-long -untranslated-filenames -iso-level 2 \
-ldots -allow-lowercase -allow-multidot -allow-leading-dots -gui -graft-points /PATH_TO_YOUR_DATA ) \
 | (nice -n -10 pipebuf -b 32767 -p) \
 | (nice -n -10 pipebuf -b 32767 -p) \
 | (nice -n -10 pipebuf -b 32767 -p) \
| (nice -n -15 growisofs -dvd-compat -overburn -Z /dev/cdroms/cdrom0=/dev/fd/0 )
Back to top
View user's profile Send private message
mirko_3
l33t
l33t


Joined: 02 Nov 2003
Posts: 605
Location: Birreria

PostPosted: Sat Dec 11, 2004 1:30 pm    Post subject: Reply with quote

Are you using a 90+MB buffer there?? 8O

Anyway, I guess you can only use this with programs that accept data from standard input, and not others like cdrecord-ProDVD, right?
_________________
Non fa male! Non fa male!
Back to top
View user's profile Send private message
kekc
n00b
n00b


Joined: 15 May 2003
Posts: 33
Location: Toronto

PostPosted: Mon Dec 13, 2004 6:09 pm    Post subject: Reply with quote

mirko_3 wrote:
Are you using a 90+MB buffer there?? 8O


You can increase/decrease buffer size by adding/removing:
Code:

| (nice -n -10 pipebuf -b 32767 -p) \


mirko_3 wrote:

Anyway, I guess you can only use this with programs that accept data from standard input, and not others like cdrecord-ProDVD, right?

I think cdrecord-ProDVD can accept data from standard input.
Back to top
View user's profile Send private message
Lokheed
Veteran
Veteran


Joined: 12 Jul 2004
Posts: 1295
Location: /usr/src/linux

PostPosted: Tue Dec 14, 2004 8:11 am    Post subject: Reply with quote

Thats wierd. I have an 8X and I burn 8X (even going up to 8.20X) without problems...

Using the same version of K3b and the latest version of growisofs.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum