![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Mac OS, Linux May Share a Windows Flaw - PC World | iBot | UNIX and Linux RSS News | 0 | 10-13-2007 10:50 AM |
| how i can share the file between unix or linux in windows ?? | msn22 | Linux | 4 | 12-07-2006 12:13 PM |
| Mount Linux share onto Sco 5.0.6 | sall | UNIX for Advanced & Expert Users | 1 | 09-10-2006 02:32 PM |
| Red Hat Linux & Desktop Market Share | Jawwad | Linux | 11 | 06-15-2006 04:38 PM |
| Mount W2K share on Redhat Linux | Spetnik | Linux | 3 | 12-16-2003 04:13 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
share memory on linux
how to list the orphaned shared memory?
how to kill them so that shared mem is free again. thanks |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
Use the ipcrm -m command to free the orphaned shared memory, once you identify it
|
|
#3
|
|||
|
|||
|
/proc/<process id>/maps or /proc/<process id>/smaps
try man 5 proc to see which one your system has and how to use it, to see if it meets your needs. I'm personally not too sure about finding orphaned memory. Why do you think there is a problem? Are you sure it isn't some kind of memory leak? |
|
#4
|
|||
|
|||
|
ipcs shows your sysv ipc id's, etc..Otherwise as Jim noted.
If I understand correctly: We all have this problem when testing code sometimes. Without a signal handler that cleans up the allocated shared memory segment on a user interrupt you are stuck with manually removing the segment. This is especially painful when the id is hardcoded and IPC_EXCL is specified or when you run into a sysv ipc limit maximum. |
|
#5
|
|||
|
|||
|
thanks for the replies.
ipcrm -m must be followed by shmid. how to get this id? Also, I tried to set "kernel.shmseg" to 10 in /etc/sysctl.conf: /sbin/sysctl -p ... error: "kernel.shmseg" is an unknown key Any idea how to set the kernel.shmseg? I am using RHEL 4. thanks |
|
#6
|
|||
|
|||
|
Umm..by ipcs output?
A typical listing looks like: Code:
0x00000000 2112782337 username 666 4 0 |
|
#7
|
|||
|
|||
|
thanks.
do you know what is the equivalent of kernel.shmseg for Redhat Linux Enterprise 4? tx |
|||
| Google The UNIX and Linux Forums |
| Tags |
| ipcrm, linux |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|