Re: How to increase Maximum Threads per Process in SuSE Linux?

From: Just Me (JustMe_at_my.email)
Date: 09/01/04


Date: Wed, 01 Sep 2004 17:51:09 GMT

Ronan Viernes wrote:

> Hi,
>
> I am using SuSE Linux 7.1 with Kernel 2.4.18. I have created a python
> script to count the maximum number of threads per process (by starting
> new threads continuously until it breaks).
>
> Currently, the script is breaking at 1024th thread which made me
> believe that a single process can handle up to 1024 threads. The
> question is: Where can I modify this setting (the maximum threads per
> process) in SuSE Linux because I want to pull-up even more?
>
> (Hint: in HP, they have this kernel parameter: MAX_THREAD_PROC and I
> am looking for the equivalent parameter in SuSE).
>
> Thanks and hope to hear soon.
> Ronan

I know that for SuSE Linux 9.0, you can adjust the number of threads by
writing a value into /proc/sys/kernel/max-threads. So, to set it to
2048, use:

echo 2048 >/proc/sys/kernel/max-threads

To see the current value, use:

cat /proc/sys/kernel/max-threads

YMMV with SuSE 7.1, but it should be very similar.



Relevant Pages

  • Re: [opensuse] Where do I put scripts for run at Startup
    ... Anders Johansson wrote: ... While I'm not at all new to Linux, I'm quite new to Suse Linux and ... I've got a bash script that initializes my wireless adapter and on ... that he was looking for the equivalent of the redhat rc.local script, ...
    (SuSE)
  • Re: [opensuse] Where do I put scripts for run at Startup
    ... Anders Johansson wrote: ... While I'm not at all new to Linux, I'm quite new to Suse Linux and ... I've got a bash script that initializes my wireless adapter and on ... that he was looking for the equivalent of the redhat rc.local script, ...
    (SuSE)
  • Re: [opensuse] Where do I put scripts for run at Startup
    ... Joe Sloan wrote: ... While I'm not at all new to Linux, I'm quite new to Suse Linux and having a bit of a challenge finding where certain things are located. ... I've got a bash script that initializes my wireless adapter and on redhat based systems I'm call the script from rc.local, but so far as I can see there isn't such a file on my OpenSuse 10.3 system. ... initialization scripts are all over the place... ...
    (SuSE)
  • Re: [opensuse] Where do I put scripts for run at Startup
    ... Aaron Kulkis wrote: ... While I'm not at all new to Linux, I'm quite new to Suse Linux and ... I've got a bash script that initializes my wireless adapter and on ... that he was looking for the equivalent of the redhat rc.local script, ...
    (SuSE)
  • Re: How to configure force fs check at boot time if wasnt shutdown probably?
    ... > I have a tiny pc with SuSE linux with GRUB bootloader and I ... script, which reads another script to set variables. ... -- Harry Mudd, "I, Mudd", stardate 4513.3 ...
    (comp.os.linux.setup)