All this exists in 2.4. However, I only have seen nice as a command line
interface to this. If you have a C program that you want to change, you can
look at the getpriortiy/setpriotiry commands. They are only available
form a C program. One of the Linux process scheduling modes (SCHED_RR) is
what you are after. It is similar to the default mode, except"each process
is only allowed to run for a maximum time quantum". But, as I say, I have
not seen a command line interface to this. At least not in my distro. Maybe
there is a package out there that will let you do this.

On Mon, 13 Oct 2003 18:18:30 -0400 (EDT)
Net Llama! <[EMAIL PROTECTED]> wrote:

> On Mon, 13 Oct 2003, Michael Hipp wrote:
> > Is there any way to tell the system to give a certain process no more
> > than x% of the CPU?
> >
> > 'nice' seems to only change the scheduling priority, but a single
> > process can still use 100% indefinitely if there is no competition. I
> > have an app I want to throttle even if the system is otherwise idle.
> >
> 
> Under the 2.2.x kernels there was the kernel fair-scheduling patch which
> did this.  I don't know that there is anything like that under 2.4.x.
> 


-- 
+����������������������������+�������������������������������+
� Roger Oberholtzer          �   E-mail: [EMAIL PROTECTED]        �
� OPQ Systems AB             �      WWW: http://www.opq.se/  �
� Erik Dahlbergsgatan 41-43  �    Phone: Int + 46 8   314223 �
� 115 34 Stockholm           �   Mobile: Int + 46 733 621657 �
� Sweden                     �      Fax: Int + 46 8   302602 �
+����������������������������+�������������������������������+

_______________________________________________
Linux-users mailing list
[EMAIL PROTECTED]
Unsubscribe/Suspend/Etc -> http://smtp.linux-sxs.org/mailman/listinfo/linux-users

Reply via email to