Find the answer to your Linux question:
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 ...
  1. #1
    Just 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?

  2. #2
    Linux Guru Rubberman's Avatar
    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!

  3. #3
    Just Joined!
    Join Date
    Oct 2009
    Posts
    2
    Quote Originally Posted by Rubberman View Post
    You have limited your stack size to 64 bytes. Nothing can run that way.
    but after logon , when i write ulimit -s 64 command everything is working ?

  4. #4
    Linux Guru Rubberman's Avatar
    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
    Quote Originally Posted by neo_returned View Post
    but after logon , when i write ulimit -s 64 command everything is working ?
    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!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...