Re: how to cleanup the memory in UNIX?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Zhu Ming wrote:

> I met a problem in IPC program in linux. My program needs a lot of Shared
> memory. Then after execution, the program cleanup these shared memory. But
> if I run the program several times, some error in the results. It seems
> the memory in UNIX needs to be recoverd. Do you know how to do that except
> reboot? 

Bear in mind that SysV IPC structures (including shared memory
segments) persist after the program which created them terminates. Use
"ipcs" to check for unused shared memory segments, and "ipcrm" to
delete them.

-- 
Glynn Clements <glynn@sensei.co.uk>
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.rutgers.edu


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux