LinuxQuestions.org
Visit Jeremy's Blog.
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 11-24-2014, 09:53 AM   #1
ron7000
Member
 
Registered: Nov 2007
Location: CT
Posts: 248

Rep: Reputation: 26
affect of security/limits.conf - stack unlimited setting


i often run software where if I use the default /etc/security/limits.conf file,
you are limited to stack space of 8192 KB.
I therefore modify /etc/security/limits.conf
and in there i do
* hard stack unlimited
* soft stack unlimited

i noticed in another thread on the forum someone asked about limiting memory during a copy (cp) command and made me wonder.

some of my systems have > 100GB of RAM.
often if i do a big copy of data from one volume to another... something like:
cp /data/rondata/* /backup/
where it's thousands of files and 500+ GB of data I'll notice the amount of ram in the system gets used up. If I do a top and watch memory used/free I'll see it slowly get eaten up by the copy command. is this normal and caused by my stack unlimited setting, or by something else?
 
Old 11-24-2014, 10:52 AM   #2
linosaurusroot
Member
 
Registered: Oct 2012
Distribution: OpenSuSE,RHEL,Fedora,OpenBSD
Posts: 982
Blog Entries: 2

Rep: Reputation: 244Reputation: 244Reputation: 244
You'd need to check the code of cp to tell whether it's stack space (automatic variables) or something else.
It might be just opening files and using mmap() .. a fast technique.

In your example probably the main use of RAM is disk caching.
http://www.linuxatemyram.com/

Last edited by linosaurusroot; 11-24-2014 at 10:54 AM.
 
  


Reply



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
Setting limits in /etc/security/limits.conf vaibhav.vsk Linux - Security 1 09-20-2012 08:22 AM
regardig /etc/security/limits.conf niaz_ph Linux - Newbie 1 10-20-2011 09:58 AM
[SOLVED] /etc/security/limits.conf and nice Mr. Alex Linux - Newbie 4 02-19-2011 04:44 PM
etc/security/limits.conf - what does it do? Ken_1969 Red Hat 5 03-14-2010 04:25 PM
/etc/security/limits.conf reverse Linux - Security 4 10-20-2007 03:10 PM

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

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