Re: disknice

2010-02-04 Thread Ingo Schwarze
Hi Ted, > pid = fork(); > if (pid == -1) > err(127, "fork"); > if (!pid) { > execvp(nargv[0], nargv); > write(2, "failed to exec\n", 15); > _exit(127); > } > usleep(10); > while (!waitpid(pid, &status, WNOH

Re: disknice

2010-02-04 Thread Aaron Mason
On Thu, Feb 4, 2010 at 5:44 PM, Ted Unangst wrote: > I haven't really solved the problem I want to solve, but was able to whip > this up pretty quickly. Basically, it's just a wrapper that runs a > command and then starves it from running. disknice is a misnomer, it also >

Re: disknice

2010-02-04 Thread Christiano F. Haesbaert
2010/2/4 Ted Unangst : > I haven't really solved the problem I want to solve, but was able to whip > this up pretty quickly. Basically, it's just a wrapper that runs a > command and then starves it from running. disknice is a misnomer, it also > gets starved from cpu, but a

Re: disknice

2010-02-04 Thread Kenneth R Westerback
; > > I haven't really solved the problem I want to solve, but was able to > > > > whip > > > > this up pretty quickly. Basically, it's just a wrapper that runs a > > > > command and then starves it from running. disknice is a misnomer, it &g

Re: disknice

2010-02-04 Thread Bret S. Lambert
to whip > > > this up pretty quickly. Basically, it's just a wrapper that runs a > > > command and then starves it from running. disknice is a misnomer, it also > > > gets starved from cpu, but at the current time the only way to slow down a > > > process'

Re: disknice

2010-02-04 Thread Kenneth R Westerback
at runs a > > command and then starves it from running. disknice is a misnomer, it also > > gets starved from cpu, but at the current time the only way to slow down a > > process's io is to stop it. Not a complete solution, but it will slow > > down a large tar job to th

Re: disknice

2010-02-03 Thread STeve Andre'
On Thursday 04 February 2010 01:44:15 Ted Unangst wrote: > I haven't really solved the problem I want to solve, but was able to whip > this up pretty quickly. Basically, it's just a wrapper that runs a > command and then starves it from running. disknice is a misnomer, it

disknice

2010-02-03 Thread Ted Unangst
I haven't really solved the problem I want to solve, but was able to whip this up pretty quickly. Basically, it's just a wrapper that runs a command and then starves it from running. disknice is a misnomer, it also gets starved from cpu, but at the current time the only way to s