Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 05-11-2006, 10:03 AM   #1
LQ Newbie
Registered: May 2004
Location: Argentina
Distribution: RH9, Debian
Posts: 4

Rep: Reputation: 0
Question meaning of /etc/security/limits.conf commands

In the manpage or internet you can find that you can set restrictions to any user with the pam module: limits
The restrictions can be set for the next items:

* core - limits the core file size (KB)
* data - max data size (KB)
* fsize - maximum filesize (KB)
* memlock - max locked-in-memory address space (KB)
* nofile - max number of open files
* rss - max resident set size (KB)
* stack - max stack size (KB)
* cpu - max CPU time (MIN)
* nproc - max number of processes
* as - address space limit
* maxlogins - max number of logins for this user
* maxsyslogins - max number of logins on system
* priority - the priority to run user process with (negative values boost process priority)
* locks - max locked files (Linux 2.4 and higher)

my question is . . .
what is core file size?
and resident set size?
and stack size?

It's not clear to me what does each item mean. This may be because I don't know very well some kernel things, can anyone helpme??
Old 05-11-2006, 11:01 AM   #2
Senior Member
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 330Reputation: 330Reputation: 330Reputation: 330
what is core file size?
and resident set size?
and stack size?
A core file is a dump of memory to disk, used for debugging problems. The limit on the core file size specifies how much memory to dump. If you don't want "core" files, you can set the limit to 0.

The resident set is the number of pages that that are actually in memory (as opposed to being on swap - non-resident). Limiting the resident size will allow more users to use the system, but will also degrade performance and increase swapping.

The stack is an area of memory used by programs to hold intermediate results and subroutine return information. More details here. If you set the stack size smaller than needed by a program, it will fail.


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
fedora core 2 /etc/secutiry/limits.conf dsharples Linux - Security 1 08-31-2004 07:44 PM
User Security (Disable Commands) blindgren Debian 2 06-26-2004 11:29 AM
/etc/security/limits.conf documentation? crazyeddie740 Linux - Security 1 06-19-2004 03:02 AM
create lilo.conf or grub.conf through commands newpenguin Linux - Software 1 11-28-2003 08:22 PM
Wierd PAM limits.conf behavior Kostko Linux - Software 0 08-26-2003 05:55 AM

All times are GMT -5. The time now is 12:39 AM.

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