[SOLVED] What if an http request arrives while I am authoring CD/DVDs. Can the burn go wrong?
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
What if an http request arrives while I am authoring CD/DVDs. Can the burn go wrong?
Hi:
Scenario: I am running cdrecord in order to burn an iso image onto a disk. And in the middle of the session an LQ post arrives at my machine. Am I at risk of cdrecord failing?
Thanks a lot, H_TeXMeX_H. Your refences to -use-the-force-luke specially useful! And now some questions:
(a) So speed=1 forces minimum speed, even if the medium is not a "no-name", does it?
(b) And about -use-the-force-luke=, I suppose I can't put cdrecord options on the right of the equal sign because growisofs does not use cdrecord. Is this so?
Hi:
Scenario: I am running cdrecord in order to burn an iso image onto a disk. And in the middle of the session an LQ post arrives at my machine. Am I at risk of cdrecord failing?
not with any machine built in the last 15 years. A problem will only occur if the burn process is cpu starved long enough for the buffers to run empty. However, the cpu scheduler will share the cpu resource between user processes to prevent that from happening. On extremely slow hardware the situation may be helped by
giving the burn process higher scheduling priority or scheduling class
That is very interesting. So the cpu scheduler is software! I suppose in old computers the cpu time slices were all equal in lenght. I once skimmed over the P6 family of Intel processors manuals and saw that that was a world. I can't imagine what it must be todday.
The first three items are controllable through cdrecord. And the slower the speed the better the recording. Wrong: for the first item I can use nice. (But then nice is a CPU scheduler!)
That is very interesting. So the cpu scheduler is software!
It most certainly is. It's part of the kernel (and at times at the centre of a heated debate).
Quote:
I suppose in old computers the cpu time slices were all equal in lenght.
It has always been more sophisticated. There used to be a regular timer interrupt that was used by the cpu scheduler to pre-empt processes that hadn't yielded the cpu voluntarily, but there is any number of reasons why the running process might have been re-scheduled in between.
Quote:
Originally Posted by stf92
(But then nice is a CPU scheduler!)
nice only sets a process parameter. The cpu scheduler is in the kernel. Btw, you can use other tools for more dramatic effect, like changing scheduling class (sometimes referred to as scheduling policy), particularly in conjunction with a more effective cpu scheduler (like rt or bfs).
Thanks for more intersting facts and for the links, reading which, I saw:
To execute mplayer in SCHED_RR with priority 20. The priority arg is neededfor both SCHED_RR and SCHED_FIFO.
I've always wondered why I can't make mplayer play an audio disc (CDDA) in a descent way. No matter what mplayer package, no matter what CD, the buffer seems at times to empty, even if I augment the cache size. But reading the quote above, I think something could be done in a more radical o basic way! However, playing with the scheduler is something I, right now, wouldn't dare to do. May be by a combined reading of the man page and careful study of the subject I could make mplayer "behave himself" sooner than I expect!
Also, mplayer is too big a program for my machine. But it plays movies prity well. Unbelievably it is CDDA what it has trouble with.
Thanks a lot, H_TeXMeX_H. Your refences to -use-the-force-luke specially useful! And now some questions:
(a) So speed=1 forces minimum speed, even if the medium is not a "no-name", does it?
(b) And about -use-the-force-luke=, I suppose I can't put cdrecord options on the right of the equal sign because growisofs does not use cdrecord. Is this so?
It uses the lowest speed the drive can do, it doesn't matter about the medium.
growisofs is the only one with -use-the-force-luke options and it is completely different from cdrecord. You can technically also burn DVDs with cdrecord, but I prefer growisofs. Both programs can use mkisofs, but I recommend making the ISO beforehand so there is less chance of something taking too long and leading to buffer underflow.
I recommend making the ISO beforehand so there is less chance of something taking too long and leading to buffer underflow.
good point. With my previous comment I had this scenario in mind. When creating the iso file on the fly we open up to additional points of failure. In this scenario an I/O-heavy process can indeed interfere with CD burning. However, processing http requests shouldn't be of this nature.
good point. With my previous comment I had this scenario in mind. When creating the iso file on the fly we open up to additional points of failure. In this scenario an I/O-heavy process can indeed interfere with CD burning. However, processing http requests shouldn't be of this nature.
In theory http requests shouldn't matter for this, only heavy disk I/O on the same disk will make a difference. With burning CDs and burnfree on, nothing should affect the burning process.
I want to ask a related question, so I'll use this thread. With one of my optical disk burners, a Philips SPD2417T, not exactly a high-end product, I'm getting
WARNING: Drive returns wrong startsec (0) using -150
Writing pregap for track 1 at -150
every time I use cdrecord on it. Would this be a serious failure?
I want to ask a related question, so I'll use this thread. With one of my optical disk burners, a Philips SPD2417T, not exactly a high-end product, I'm getting
WARNING: Drive returns wrong startsec (0) using -150
Writing pregap for track 1 at -150
every time I use cdrecord on it. Would this be a serious failure?
No, it's normal. I get that for all my drives. I think it is just cdrecord being excessively strict.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.