Results 1 to 4 of 4
Hi everyone
I am working on a posix thread project that use many threads and i am configuring stack size for user to create enough threads
but i want to ...
- 10-05-2009 #1Just Joined!
- Join Date
- Oct 2009
- Posts
- 2
Error after limits.conf file changes
Hi everyone
I am working on a posix thread project that use many threads and i am configuring stack size for user to create enough threads
but i want to apply ulimit changes over sessions and i changed /etc/security/limits.conf file for it.
but the problem is after i changed this file, my ubuntu has locked at desktop screen with a dark screen. i can enter f3 level login but desktop does not start.
the line i added is :
neo_returned soft stack 64
is there any wrong here?
- 10-05-2009 #2Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,974
You have limited your stack size to 64 bytes. Nothing can run that way.
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
- 10-06-2009 #3Just Joined!
- Join Date
- Oct 2009
- Posts
- 2
- 10-06-2009 #4Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,974
That's because ulimit numbers, if not specified, are in 1025 (1K) byte increments, so you are setting the stack size to 64K, which is small, but adequate for a lot of simple programs. It is still too small in my opinion. I think that the size parameters in limits.conf are absolute values, not 1K increment values.
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!


Reply With Quote
