Bug 147578
Summary: | Echoing value into shmmax produces no change in max shared memory | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 3 | Reporter: | Kyle Gonzales <kgonzale> |
Component: | kernel | Assignee: | Ernie Petrides <petrides> |
Status: | CLOSED NOTABUG | QA Contact: | Brian Brock <bbrock> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 3.0 | CC: | petrides, riel |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i686 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2005-02-10 14:49:02 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Kyle Gonzales
2005-02-09 15:23:54 UTC
I think you've misinterpreted the output of "ipcs -lm", which reports the "max seg size" in kilobytes (whereas the /proc/sys/kernel/shmmax value is in bytes). At any rate, the following output on my RHEL3 U4 test system suggests that this is working just fine: # ipcs -lm ... max seg size (kbytes) = 32768 ... # cat /proc/sys/kernel/shmmax 33554432 # expr 33554432 / 1024 32768 And then raising the limit: # expr 32769 \* 1024 33555456 # echo 33555456 > /proc/sys/kernel/shmmax # ipcs -lm ... max seg size (kbytes) = 32769 ... No no no no no Look at the following: ****************************************************************** [root@predator root]# ipcs -lm ------ Shared Memory Limits -------- max number of segments = 4096 max seg size (kbytes) = 32768 max total shared memory (kbytes) = 8388608 min seg size (bytes) = 1 [root@predator root]# cat /proc/sys/kernel/shmmax 33554432 [root@predator root]# echo "2147483648" > /proc/sys/kernel/shmmax [root@predator root]# cat /proc/sys/kernel/shmmax 2147483648 [root@predator root]# ipcs -lm ------ Shared Memory Limits -------- max number of segments = 4096 max seg size (kbytes) = 2097152 max total shared memory (kbytes) = 8388608 min seg size (bytes) = 1 ************************************************************************ Look at max total shared memory in ipcs, which should be the same as shmmax. I just changed it, yet it didn't change according to ipcs. However, changing shmall DOES change max total shared memory in ipcs. That is the issue. Never mind. I'm an idiot. I can't read. Thanks Ernie! |