>>>>> "Peter" == Peter Chen <[EMAIL PROTECTED]> writes:

Peter> Can you just increase NR_TASKS in linux/include/tasks.h and
Peter> nothing else?

You will need to recompile the procps RPM after upping NR_TASKS, but
yes, linux/include/tasks.h is the only place it needs to be changed.

Note, however, that (/proc based) top(1) is extremely CPU intensive
when there are more than 2000 threads running.  I'm guessing it is at
least O(n*n), probably much worse.  (Based only on empirical
evidence.)  In short, unless you have a recent, high-end CPU, don't
even *think* of running it when there are 2000+ threads.

-JimC
-- 
James H. Cloos, Jr.
<[EMAIL PROTECTED]>


-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
         To unsubscribe: mail [EMAIL PROTECTED] with 
                       "unsubscribe" as the Subject.

Reply via email to