2001-12-27 16:51:44

by snpe

[permalink] [raw]
Subject: Shared memory confusion

Hello,
I try locked shared memory with shmctl.
I get :

ipcs


------ Shared Memory Segments --------
key shmid owner perms bytes nattch status
0x00000000 131072 root 644 110592 6 dest
0x00000000 163841 root 777 196608 2 dest
0x00000000 262146 root 644 110592 2 dest
0xd679dce8 360451 oracle 640 38506496 6 locked

Segments 'oracle' is locked (I guess)

cat /proc/meminfo
total: used: free: shared: buffers: cached:
Mem: 526213120 518074368 8138752 0 62365696 286019584
Swap: 542826496 2560000 540266496
MemTotal: 513880 kB
MemFree: 7948 kB
MemShared: 0 kB
Buffers: 60904 kB
Cached: 276816 kB
SwapCached: 2500 kB
Active: 357364 kB
Inactive: 89768 kB
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 513880 kB
LowFree: 7948 kB
SwapTotal: 530104 kB
SwapFree: 527604 kB

MemShared is 0kB. Why ?
Is shared memory really locked ?

regards,
haris peco


2001-12-27 17:23:57

by Erik Mouw

[permalink] [raw]
Subject: Re: Shared memory confusion

On Thu, Dec 27, 2001 at 11:44:01PM +0100, snpe wrote:
> MemShared is 0kB. Why ?

The answer is in the FAQ ---------+
|
v
> Please read the FAQ at http://www.tux.org/lkml/


Erik

--
J.A.K. (Erik) Mouw, Information and Communication Theory Group, Faculty
of Information Technology and Systems, Delft University of Technology,
PO BOX 5031, 2600 GA Delft, The Netherlands Phone: +31-15-2783635
Fax: +31-15-2781843 Email: [email protected]
WWW: http://www-ict.its.tudelft.nl/~erik/