diff options
Diffstat (limited to 'Documentation/sysctl/kernel.txt')
-rw-r--r-- | Documentation/sysctl/kernel.txt | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Documentation/sysctl/kernel.txt b/Documentation/sysctl/kernel.txt index 1c7fb0a94e28..704e474a93df 100644 --- a/Documentation/sysctl/kernel.txt +++ b/Documentation/sysctl/kernel.txt | |||
@@ -61,6 +61,7 @@ show up in /proc/sys/kernel: | |||
61 | - rtsig-nr | 61 | - rtsig-nr |
62 | - sem | 62 | - sem |
63 | - sg-big-buff [ generic SCSI device (sg) ] | 63 | - sg-big-buff [ generic SCSI device (sg) ] |
64 | - shm_rmid_forced | ||
64 | - shmall | 65 | - shmall |
65 | - shmmax [ sysv ipc ] | 66 | - shmmax [ sysv ipc ] |
66 | - shmmni | 67 | - shmmni |
@@ -518,6 +519,27 @@ kernel. This value defaults to SHMMAX. | |||
518 | 519 | ||
519 | ============================================================== | 520 | ============================================================== |
520 | 521 | ||
522 | shm_rmid_forced: | ||
523 | |||
524 | Linux lets you set resource limits, including how much memory one | ||
525 | process can consume, via setrlimit(2). Unfortunately, shared memory | ||
526 | segments are allowed to exist without association with any process, and | ||
527 | thus might not be counted against any resource limits. If enabled, | ||
528 | shared memory segments are automatically destroyed when their attach | ||
529 | count becomes zero after a detach or a process termination. It will | ||
530 | also destroy segments that were created, but never attached to, on exit | ||
531 | from the process. The only use left for IPC_RMID is to immediately | ||
532 | destroy an unattached segment. Of course, this breaks the way things are | ||
533 | defined, so some applications might stop working. Note that this | ||
534 | feature will do you no good unless you also configure your resource | ||
535 | limits (in particular, RLIMIT_AS and RLIMIT_NPROC). Most systems don't | ||
536 | need this. | ||
537 | |||
538 | Note that if you change this from 0 to 1, already created segments | ||
539 | without users and with a dead originative process will be destroyed. | ||
540 | |||
541 | ============================================================== | ||
542 | |||
521 | softlockup_thresh: | 543 | softlockup_thresh: |
522 | 544 | ||
523 | This value can be used to lower the softlockup tolerance threshold. The | 545 | This value can be used to lower the softlockup tolerance threshold. The |