This site is now 100% read-only, and retired.

XML logo

Linux Tasks Management
Posted by tong on Sat 21 Jan 2006 at 23:08
Tags: none.
Will "nice"d background tasks interfere (slow down) normal foreground
task? I used to amaze my Windoze-using friends by burning CD/DVDs while
carrying out my normal work. I normally point to the "top" output,
which says something like "Tasks: 133 total", and say to my astonished
friend, "I can burn my CD/DVDs while there are over a hundred task running
at the same time" -- just enjoy looking at their
astonished faces. However, there is one thing that really make me
question how Linux schedule its tasks.



There is this special case, which will let me make coasters every time
-- when nget is updating it headers. I'm using a not-so-monster news
server, which can't compete with supper-monster news server like
giganews, etc. However, whenever nget updates it headers, my computer is
brought down to its knees. I run my nget with "nice -n 12", and my growisofs
(for DVD burning) with "nice -n -2", even so I make coasters from time
to time.



I think it must related with kswapd0 -- the kernel page fault swap
daemon. Shouldn't page faults caused by "nice -n 12" tasks have much lower
priorities then that from "nice -n -2"? I think it should, but why I
make coasters from time to time then?



My box's memory is 768M. I don't think it is too small.



tong

PS.

 

Comments on this Entry

Re: Linux Tasks Management
Posted by suspended user tong (67.71.xx.xx) on Sat 21 Jan 2006 at 23:23
[ View Weblogs ]
PS.

The question has been rejected from the "question" section because it is "better suited to the debian-user mailing list".



Sorry to have hi-jack it here because I've asked much simpler question in debian-user recently but no one can answer them. I know there are many real experts here -- hoping that someone can anwser it.

sorry and thanks

tong

[ Parent ]

Re: Linux Tasks Management
Posted by Anonymous (213.164.xx.xx) on Mon 23 Jan 2006 at 09:03
nice helps to control how much cpu time a process gets. If a process is io-heavy (as I guess nget is), then it will compete with your cd burner for io. There isn't a nice for io.
You could try putting them cd drive on a separate channel to the disks, or use a cd burner that deals with interruptions.

[ Parent ]

Re: Linux Tasks Management
Posted by suspended user tong (67.71.xx.xx) on Mon 23 Jan 2006 at 17:47
[ View Weblogs ]
If a process is io-heavy (as I guess nget is), then it will compete with your cd burner for io. There isn't a nice for io.



That explains it. Thanks for clear it up!



BTW, it is not the nget that is io-heavy but the swap deamon.

[ Parent ]