LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 12-20-2022, 11:38 AM   #1
ychaouche
Member
 
Registered: Mar 2017
Distribution: Mint, Debian, Q4OS, Mageia, KDE Neon
Posts: 369
Blog Entries: 1

Rep: Reputation: 49
Thumbs down soft and hard ulimit limits


Hello LQ,

Tell me about last time you had to use ulimit.

What was it for?

What did you want to achieve?

What limits did you set?

Eager to read you.
 
Old 12-20-2022, 12:33 PM   #2
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 5,727

Rep: Reputation: 2740Reputation: 2740Reputation: 2740Reputation: 2740Reputation: 2740Reputation: 2740Reputation: 2740Reputation: 2740Reputation: 2740Reputation: 2740Reputation: 2740
Quote:
Originally Posted by ychaouche View Post
Hello LQ,

Tell me about last time you had to use ulimit.

What was it for?

What did you want to achieve?

What limits did you set?

Eager to read you.
DB server with around 1100 users, 99% connecting using a client application we designed, to control the available resources to each user process and ensure availability for all 1100 at the same time. The default settings were a problem. It took a little tuning, but we got it right in one day. I recall the process, the project, and the events that prompted it but not the final numbers.

Last edited by wpeckham; 12-20-2022 at 12:44 PM.
 
2 members found this post helpful.
Old 12-28-2022, 10:13 AM   #3
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,679
Blog Entries: 4

Rep: Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947
We used "ulimit" once to help us identify a memory-leak. Couldn't readily tell which process it was. But we could set a limit and observe which one "blew up." So, that's what we did. Within a few minutes, the culprit had identified itself.

I like the fact that Linux supports both "soft" and "hard" limits. And, a wide variety of limits.

Last edited by sundialsvcs; 12-28-2022 at 10:20 AM.
 
1 members found this post helpful.
Old 12-28-2022, 11:13 AM   #4
uteck
Senior Member
 
Registered: Oct 2003
Location: Elgin,IL,USA
Distribution: Ubuntu based stuff for the most part
Posts: 1,177

Rep: Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501
When I did support at a hosting company we set each users VM ulimit to 100 to stop them from running a bunch of processes and slowing the whole server down. If they needed more, then they could upgrade to a higher priced plan.
 
1 members found this post helpful.
  


Reply

Tags
ulimit



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
ulimit -s 40960 vs ulimit ulimit -s 10240 centguy Linux - Software 2 10-22-2016 11:38 PM
soft and hard limits for nproc value in /etc/security/limits.conf file kraljic Linux - General 3 07-13-2015 08:13 AM
Soft limits and hard limits of process gaurav_s Linux - Software 4 01-06-2015 09:57 AM
[SOLVED] Cannot set ulimit -l, says ulimit: max locked memory: cannot modify limit Xiano Slackware 1 07-24-2014 02:58 AM
getrlimit is setting soft and hard limits to -1, why? FunkMeisterMaz Programming 2 03-22-2004 06:34 AM

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

All times are GMT -5. The time now is 02:00 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