Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 02-18-2019, 01:17 PM   #16
LQ Newbie
Registered: Feb 2019
Posts: 24

Original Poster
Rep: Reputation: Disabled

Originally Posted by slacktroll View Post
Quoting myself:

Create /etc/initscript

This is what the file should look like

ulimit -Hn 1048576
eval exec "$4"
Do you have any idea which file you put the soft limit in. Everyone has told me where to put the hard limit, the system limit, but I don't have any idea which file you put the soft limit in. My understanding is that this does not go in the initscript file nor does it go in the sysctl.conf file. Thanks
Old 02-18-2019, 02:21 PM   #17
Registered: Jan 2018
Location: Romania
Distribution: Slackware64-current (servers) / Ubuntu (workstations)
Posts: 75

Rep: Reputation: 17
Are you saying that ulimit -Sn 2048 should go in the initscript file? I was under the impression that file was only for setting the hard limit?
I do not know where I found this with "ulimit -Sn 2048" in the initscript file but it works for me.
I think I'll have to read a little about the soft limit.

Last edited by teoberi; 02-18-2019 at 02:25 PM.
Old 02-18-2019, 06:02 PM   #18
Richard Cranium
Senior Member
Registered: Apr 2009
Location: Carrollton, Texas
Distribution: Slackware64 14.2
Posts: 3,211

Rep: Reputation: 1574Reputation: 1574Reputation: 1574Reputation: 1574Reputation: 1574Reputation: 1574Reputation: 1574Reputation: 1574Reputation: 1574Reputation: 1574Reputation: 1574
I use ReiserFS because I believe that this is the most reliable system in the event of a powercut.
I have had random lockups where the ReiserFS journals weren't being processed. (A couple of maildir directories.) I don't know if that is the cause of problem or a side-effect of it; I haven't lost anything that I can tell, but the journal replays can take up to 5 minutes per mountpoint.

I have a UPS on that machine and intend to move those maildirs to xfs on an ssd or 3.
Old 02-22-2019, 08:11 AM   #19
LQ Newbie
Registered: Feb 2019
Posts: 24

Original Poster
Rep: Reputation: Disabled
Update on my progress.

I have upgraded to Slackware Current and formatted using Ext 4.

I have done some research and a number of people have reported issues with ReiserFS and unclean shutdowns. I also seem to recall issues with the Squid cache rebuilding after an unclean shutdown and I think its related to ReiserFS.

Hopefully Ext4 will address the corrupt file system issue permanently as Ext 4 is constantly being updated whereas Reiser has not been updated in many years now.

I have found that updating to current does indeed move the initscript.sample file to the usr/doc/... location whereas in slack 14.2 it is in /sbin for some reason.

I have copied the initscript.sample file to /etc and added the lines

ulimit -Sn 4096
ulimit -Hn 8192
eval exec "$4"
and it has raised the limit for both hard and soft once I realised that I need to put the eval exec "4" in. I will need to test whether E2guardian actually uses the raised limits for soft and whether these limits are high enough. I might consider making it a really high number because the only thing running will be E2guardian mainly so it does not make sense to have the limit too low as nothing else will be using the resources.

I have two issues with upgrading to current, but will raise this in a new topic. Thank you for all the help provided. I am pleased to have been able to resolve this issue. Turned out to be a lot simpler than expected.

Is there a command to tell how many file descriptors are currently open to see whether the limit is too low?
Old 02-22-2019, 09:30 AM   #20
Registered: May 2011
Distribution: Slackware 14.2
Posts: 122

Rep: Reputation: 21
Nice that it works..

# Version: @(#)initscript 1.10 10-Dec-1995 MvS.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
soft and hard limits for nproc value in /etc/security/limits.conf file kraljic Linux - General 3 07-13-2015 08:13 AM
[SOLVED] How to set open file descriptor hard and soft limits Z038 Slackware 3 06-16-2013 11:37 PM
Setting limits in /etc/security/limits.conf vaibhav.vsk Linux - Security 1 09-20-2012 08:22 AM
difference between socket returned descriptor and accept returned descriptor naveenisback Programming 1 08-29-2009 04:55 AM
limits are not working (limits.conf) PkerC Red Hat 3 06-22-2006 10:14 AM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:47 PM.

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