LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-08-2005, 01:33 AM   #1
manhvt
LQ Newbie
 
Registered: Jul 2005
Posts: 1

Rep: Reputation: 0
Limit max thread and memory for application in linux kernel 2.4.x


Hi all,
Please help me .
I deverloped a server program in linux 9 kernel 2.4.20. I want my server has high performance. Could you tel me how to increase max thread and memory in my program more than OS default ? My server can support many session so It need run many thread and used much memory.
Thanks for your helps.
 
Old 07-08-2005, 09:11 AM   #2
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
Welcome to LQ And moved: This thread is more suitable in Linux-General and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 07-12-2005, 12:38 PM   #3
Noth
Member
 
Registered: Jun 2005
Distribution: Debian
Posts: 356

Rep: Reputation: 30
Re: Limit max thread and memory for application in linux kernel 2.4.x

Quote:
Originally posted by manhvt
Hi all,
Please help me .
I deverloped a server program in linux 9 kernel 2.4.20. I want my server has high performance. Could you tel me how to increase max thread and memory in my program more than OS default ? My server can support many session so It need run many thread and used much memory.
Thanks for your helps.
The only real limits are imposed by your architecture. Meaning, on a 32-bit system each process has access to 3G of VM so once the executable and shared libraries are mapped in you have slightly less than that for real use. And I believe the only limit on number of threads is how many processes you can have, probably 32768.

Now some distributions will limit memory usage and number of processes per-user for security reasons, is that what you're running into?
 
Old 07-12-2005, 01:04 PM   #4
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Run 'ulimit -a' to see the currently set limits. Ulimit can be used to change some of these limits, and others are changable via the sysctl interface.
 
Old 07-12-2005, 03:41 PM   #5
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
you might want to consider just running a more modern system ??
beyond that
it may be helpfull to change some of the fixed variables in glibc and recompile
i think this is where the thread limit exists
read
http://www.houseoffusion.com/cf_list...threadid:16216

but like said in the beginning my more modern glibc says

#define PTHREAD_THREADS_MAX 16384
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
APACHE: limit max connections from the same IP ? tclwp Linux - Networking 3 06-24-2005 11:47 AM
Threads - Max Limit socratesinus Linux - Software 5 04-20-2005 03:43 PM
linux memory limit? rex67 Linux - General 9 01-08-2005 03:36 AM
Is Shared Memory bound to a thread in Linux ? colmmagoo Linux - Software 0 09-24-2004 01:13 PM
max process limit anoop_chandran Linux - Networking 2 01-16-2002 05:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration