Re: process in background

2009-04-23 Thread Adrian Levi
2009/4/23 Matyas Sustik debian.l...@sustik.com:
 Dear Forum,

 I am running a video encoding process for which I would like to use all the
 CPU resources which would otherwise be idle.  I do not want this job to get
 in the way of any other processes (interactive or something like mythbackend).

 I tried using nice -n 19 but the result is noticably slower execution of the
 encoding job even when there is nothing else going on.  (About 30-50 slower.)

 Is there some other process management tool that could help achieve the goal?
 Thanks,
 Matyas

After you place yor command into the background and renice it you can
check what is happeneing on your system by using the program 'top'. it
will let you know what programs are running and what resources are
being consumed by them.

Adrian

-- 
24x7x365 != 24x7x52 Stupid or bad maths?
erno hm. I've lost a machine.. literally _lost_. it responds to
ping, it works completely, I just can't figure out where in my
apartment it is.


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: process in background

2009-04-23 Thread Matyas Sustik
Some more data as suggested.  I run without nice, with nice -n 5 and nice -n
10, each version twice:

Without nice:
real0m10.662s
user0m9.513s
sys 0m3.448s

real0m10.121s
user0m7.712s
sys 0m2.444s

CPU% according to top reached 118%.


nice -n 5:
real0m22.141s
user0m27.202s
sys 0m1.444s

real0m21.855s
user0m28.674s
sys 0m2.468s

CPU% according to top reached 147%.


nice -n 10:
real0m21.638s
user0m26.878s
sys 0m1.268s

real0m21.654s
user0m27.090s
sys 0m1.176s

CPU% according to top reached 131%.

I do not trust the accuracy of top; I only use it to see relative CPU usage
of processes running *at the same time*.  The above results speak for 
themselves.

However the cpu usage reported by 'time' shows that nice incurs a hefty
penalty even though the system does nothing else.

I stress that I do not think that the above indicate a problem with nice.
This maybe just how it works.  I think I need something other than nice to
tell the system that a process should be given all the spare cycles but
nothing else.

Any suggestions?
Matyas
-
Every hardware eventually breaks.  Every software eventually works.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: process in background

2009-04-23 Thread green
Matyas Sustik wrote at 2009-04-22 23:13 -0500:
 I tried using nice -n 19 but the result is noticably slower execution of the
 encoding job even when there is nothing else going on.  (About 30-50 slower.)
 
 Is there some other process management tool that could help achieve the goal?

You may want to use ionice -c3 nice -n 19 command in order to set the io 
scheduling class as well as the process scheduling priority.


signature.asc
Description: Digital signature


process in background

2009-04-22 Thread Matyas Sustik
Dear Forum,

I am running a video encoding process for which I would like to use all the
CPU resources which would otherwise be idle.  I do not want this job to get
in the way of any other processes (interactive or something like mythbackend).

I tried using nice -n 19 but the result is noticably slower execution of the
encoding job even when there is nothing else going on.  (About 30-50 slower.)

Is there some other process management tool that could help achieve the goal?
Thanks,
Matyas
-
Every hardware eventually breaks.  Every software eventually works.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



starting process in background

2000-03-03 Thread aphro
whats the best way?  im running a icecast server and wanna set it to start
on boot..

what i got goin is..

su icecast -c /usr/local/icecast/bin/icecast /dev/null 

BUT the problem is it segfaults when i have the  ..without the  its
fine..i thought of doing screen but i cant figure out how to auto detach
it after it loads..

any ideas?? thanks :)

nate

[mailto:[EMAIL PROTECTED] ]--
   Vice President Network Operations   http://www.firetrail.com/
  Firetrail Internet Services Limited  http://www.aphroland.org/
   Everett, WA 425-348-7336http://www.linuxpowered.net/
Powered By:http://comedy.aphroland.org/
Debian 2.1 Linux 2.0.36 SMPhttp://yahoo.aphroland.org/
-[mailto:[EMAIL PROTECTED] ]--
3:51pm up 196 days, 4:15, 1 user, load average: 1.14, 1.08, 1.05


Re: starting process in background

2000-03-03 Thread Ethan Benson
On Thu, Mar 02, 2000 at 03:53:45PM -0800, aphro wrote:
 whats the best way?  im running a icecast server and wanna set it to start
 on boot..
 
 what i got goin is..
 
 su icecast -c /usr/local/icecast/bin/icecast /dev/null 
 
 BUT the problem is it segfaults when i have the  ..without the  its
 fine..i thought of doing screen but i cant figure out how to auto detach
 it after it loads..
 
 any ideas?? thanks :)

start-stop-daemon --start --nopid --chuid icecast --exec /usr/local/bin/icecast 
?

note that --chuid is only available on potato versions of start-stop-daemon.

-- 
Ethan Benson


Re: starting process in background

2000-03-03 Thread Paul J. Keenan
On Thu, Mar 02, 2000 at 03:53:45PM -0800, aphro wrote:
 whats the best way?  im running a icecast server and wanna set it to start
 on boot..
 
 what i got goin is..
 
 su icecast -c /usr/local/icecast/bin/icecast /dev/null 
 
 BUT the problem is it segfaults when i have the  ..without the  its
 fine..i thought of doing screen but i cant figure out how to auto detach
 it after it loads..
 
 any ideas?? thanks :)
 
 nate

Try adding 21 before the final  so that stderr is also sent to the 
bit bucket.  I'm not sure why it should have segfaulted though, if the 
stderr thing was the problem ...

-- 
Regards,
Paul


Re: starting process in background

2000-03-03 Thread Damon Muller
Quoth aphro, 
 whats the best way?  im running a icecast server and wanna set it to start
 on boot..
 
 what i got goin is..
 
 su icecast -c /usr/local/icecast/bin/icecast /dev/null 

Have you tried nohup? I tend to find that it works pretty well, and
creates a handy nohup.out file, containg all the output.

cheers,

damon
 

-- 
Damon Muller ([EMAIL PROTECTED]) /  It's not a sense of humor.
* Criminologist /  It's a sense of irony
* Webmeister   /  disguised as one.
* Linux Geek  / - Bruce Sterling 

- Running Debian GNU/Linux: Doing my bit for World Domination (tm) -


pgpONkO4JkLf1.pgp
Description: PGP signature