Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
12-01-2016, 09:37 PM
|
#1
|
LQ Newbie
Registered: Dec 2016
Posts: 2
Rep:
|
Unable to change ulimit in 'screen'
Hi everyone,
I'd like to know if, changing the ulimit would have an effect in the operations that are carried-out using 'screen'.
I'm using 'screen' to carry-on some operations using multiple processes, for this I need to change the number of files that can be used simoultaneously. I used first 'ulimit -n 9999' in the command line, no problem, but then I tried to do it in the 'screen' as I need to shut-off the pc during non-office times.
I haven't been able to do so, it always retrieve 4096. I even edited the /etc/security/limits.conf file by adding my username and "hard/soft nofile 9999" at the end of it. Nothing changed. I'm suspecting that this has no effect when I use the screens, my process is 'killed' after less than 1000 operations.
I'll appreciate any help
Cya
|
|
|
12-02-2016, 08:41 AM
|
#2
|
Moderator
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,914
|
Hi cypollux, and welcome to LQ.
Yes a bit more information may be helpful. Besides the distribution which you're running, also informing a bit more about what you mean by screens. My assumption is that you mean the desktop, but please clarify.
Since you cite the number of files, and that the default is 4096, it then seems unusual that your process is being killed at less than 1000 operations, which once again I'm assuming this means "open files"?
Can you explain more what these processes are? Have you written a script or program to open files? Given that this fails below the system default limits, I wonder if there may be some other problem here.
|
|
1 members found this post helpful.
|
12-03-2016, 09:35 AM
|
#3
|
LQ Newbie
Registered: Dec 2016
Posts: 2
Original Poster
Rep:
|
Quote:
Originally Posted by rtmistler
Hi cypollux, and welcome to LQ.
Yes a bit more information may be helpful. Besides the distribution which you're running, also informing a bit more about what you mean by screens. My assumption is that you mean the desktop, but please clarify.
Since you cite the number of files, and that the default is 4096, it then seems unusual that your process is being killed at less than 1000 operations, which once again I'm assuming this means "open files"?
Can you explain more what these processes are? Have you written a script or program to open files? Given that this fails below the system default limits, I wonder if there may be some other problem here.
|
------------------------------------------------------------------------------------
Hi, thank you for your reply and sorry for my vague start...
I'm using linux through the command line only. By 'screen' I meant the use of multiple terminals to carry-out different operations.
http://www.tecmint.com/screen-comman...nux-terminals/
The process was killed only inside the screen, I didn't know how to increase the number of open files (yes you are right) in the way that it had an effect also in the 'screen'. However, I found out that by killing the screen (with exit) and starting over a new screen, I already get the number of open files that I need and set previously (9999), so it seems that it was a matter of re-starting the sessions. [problem solved]
Thank you again!
|
|
|
All times are GMT -5. The time now is 03:34 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|