public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Shared memory not enabled in 2.4.0?
@ 2001-01-08 19:11 Steven_Snyder
  2001-01-08 19:18 ` Richard B. Johnson
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Steven_Snyder @ 2001-01-08 19:11 UTC (permalink / raw)
  To: linux-kernel



For some reason shared memory is not being enabled on my system running kernel
v2.4.0 (on RedHat v6.2,  with all updates applied).

Per the documentation I have this line in my /etc/fstab:

     none  /dev/shm  shm defaults  0 0

Yes, I have created this subdirectory:

     # ls -l /dev | grep shm
     drwxrwxrwt    1 root     root            0 Jan  7 11:54 shm

No complaints are seen at startup, yet I still have no shared memory:

     # cat /proc/meminfo
             total:    used:    free:  shared: buffers:  cached:
     Mem:  130293760 123133952  7159808        0 30371840 15179776
     Swap: 136241152        0 136241152
     MemTotal:       127240 kB
     MemFree:          6992 kB
     MemShared:           0 kB
     Buffers:         29660 kB
     Cached:          14824 kB
     Active:           3400 kB
     Inact_dirty:     37872 kB
     Inact_clean:      3212 kB
     Inact_target:        4 kB
     HighTotal:           0 kB
     HighFree:            0 kB
     LowTotal:       127240 kB
     LowFree:          6992 kB
     SwapTotal:      133048 kB
     SwapFree:       133048 kB

Is there some configuration option which I missed?  Some trick not mentioned in
the doc?

Thank you.


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Shared memory not enabled in 2.4.0?
  2001-01-08 19:11 Shared memory not enabled in 2.4.0? Steven_Snyder
@ 2001-01-08 19:18 ` Richard B. Johnson
  2001-01-08 19:19 ` Brian Gerst
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Richard B. Johnson @ 2001-01-08 19:18 UTC (permalink / raw)
  To: Steven_Snyder; +Cc: linux-kernel

On Mon, 8 Jan 2001 Steven_Snyder@3com.com wrote:

> 
> 
> For some reason shared memory is not being enabled on my system running kernel
> v2.4.0 (on RedHat v6.2,  with all updates applied).
> 
> Per the documentation I have this line in my /etc/fstab:
> 
>      none  /dev/shm  shm defaults  0 0
> 
> Yes, I have created this subdirectory:
> 
>      # ls -l /dev | grep shm
>      drwxrwxrwt    1 root     root            0 Jan  7 11:54 shm
> 

[Snipped...]

You do have shared memory or else your shared libraries would not
work. The problem is that somebody decided that the CPU cost to
calculate the amount used was "too great", so it's not being shown.

Hopefully this will be resolved at a later date and we will again
be able to see shared memory activity.


Cheers,
Dick Johnson

Penguin : Linux version 2.4.0 on an i686 machine (799.54 BogoMips).

"Memory is like gasoline. You use it up when you are running. Of
course you get it all back when you reboot..."; Actual explanation
obtained from the Micro$oft help desk.


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Shared memory not enabled in 2.4.0?
  2001-01-08 19:11 Shared memory not enabled in 2.4.0? Steven_Snyder
  2001-01-08 19:18 ` Richard B. Johnson
@ 2001-01-08 19:19 ` Brian Gerst
  2001-01-08 19:21 ` Gregory Maxwell
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Brian Gerst @ 2001-01-08 19:19 UTC (permalink / raw)
  To: Steven_Snyder; +Cc: linux-kernel

Steven_Snyder@3com.com wrote:
>      # cat /proc/meminfo
>              total:    used:    free:  shared: buffers:  cached:
>      Mem:  130293760 123133952  7159808        0 30371840 15179776

This is not SysV/POSIX shared memory.  This used to mean the memory that
was shared between processes (from librares etc.).  It became too
expensive to calculate so it was removed.  It only remains in
/proc/meminfo for backwards compatability with programs that parse that
file.

--

				Brian Gerst
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Shared memory not enabled in 2.4.0?
  2001-01-08 19:11 Shared memory not enabled in 2.4.0? Steven_Snyder
  2001-01-08 19:18 ` Richard B. Johnson
  2001-01-08 19:19 ` Brian Gerst
@ 2001-01-08 19:21 ` Gregory Maxwell
  2001-01-08 19:26 ` J . A . Magallon
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Gregory Maxwell @ 2001-01-08 19:21 UTC (permalink / raw)
  To: Steven_Snyder; +Cc: linux-kernel

On Mon, Jan 08, 2001 at 01:11:19PM -0600, Steven_Snyder@3com.com wrote:
[snip]
> No complaints are seen at startup, yet I still have no shared memory:
> 
>      # cat /proc/meminfo
>              total:    used:    free:  shared: buffers:  cached:
>      Mem:  130293760 123133952  7159808        0 30371840 15179776
>      Swap: 136241152        0 136241152
[snip]

The shared field is currently unused in 2.4.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Shared memory not enabled in 2.4.0?
  2001-01-08 19:11 Shared memory not enabled in 2.4.0? Steven_Snyder
                   ` (2 preceding siblings ...)
  2001-01-08 19:21 ` Gregory Maxwell
@ 2001-01-08 19:26 ` J . A . Magallon
  2001-01-08 21:10 ` Ernesto Hernandez-Novich
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: J . A . Magallon @ 2001-01-08 19:26 UTC (permalink / raw)
  To: Steven_Snyder; +Cc: linux-kernel

Try 'ipcs' and you'll see your shared mem segments info...

On 2001.01.08 Steven_Snyder@3com.com wrote:
> 
> 
> For some reason shared memory is not being enabled on my system running kernel
> v2.4.0 (on RedHat v6.2,  with all updates applied).
> 
> Per the documentation I have this line in my /etc/fstab:
> 
>      none  /dev/shm  shm defaults  0 0
> 
> Yes, I have created this subdirectory:
> 
>      # ls -l /dev | grep shm
>      drwxrwxrwt    1 root     root            0 Jan  7 11:54 shm
> 
> No complaints are seen at startup, yet I still have no shared memory:
> 
>      # cat /proc/meminfo
>              total:    used:    free:  shared: buffers:  cached:
>      Mem:  130293760 123133952  7159808        0 30371840 15179776
>      Swap: 136241152        0 136241152
>      MemTotal:       127240 kB
>      MemFree:          6992 kB
>      MemShared:           0 kB
>      Buffers:         29660 kB
>      Cached:          14824 kB
>      Active:           3400 kB
>      Inact_dirty:     37872 kB
>      Inact_clean:      3212 kB
>      Inact_target:        4 kB
>      HighTotal:           0 kB
>      HighFree:            0 kB
>      LowTotal:       127240 kB
>      LowFree:          6992 kB
>      SwapTotal:      133048 kB
>      SwapFree:       133048 kB
> 
> Is there some configuration option which I missed?  Some trick not mentioned
> in
> the doc?
> 
> Thank you.
> 
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> Please read the FAQ at http://www.tux.org/lkml/
> 

-- 
J.A. Magallon                                                      $> cd pub
mailto:jamagallon@able.es                                          $> more beer

Linux werewolf 2.4.0-ac3 #2 SMP Sun Jan 7 02:13:37 CET 2001 i686

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Shared memory not enabled in 2.4.0?
  2001-01-08 19:11 Shared memory not enabled in 2.4.0? Steven_Snyder
                   ` (3 preceding siblings ...)
  2001-01-08 19:26 ` J . A . Magallon
@ 2001-01-08 21:10 ` Ernesto Hernandez-Novich
  2001-01-08 23:21 ` David Schwartz
  2001-01-10  0:19 ` Igmar Palsenberg
  6 siblings, 0 replies; 8+ messages in thread
From: Ernesto Hernandez-Novich @ 2001-01-08 21:10 UTC (permalink / raw)
  To: linux-kernel

On Mon, 8 Jan 2001 Steven_Snyder@3com.com wrote:
> For some reason shared memory is not being enabled on my system running kernel
> v2.4.0 (on RedHat v6.2,  with all updates applied).
> 
> Per the documentation I have this line in my /etc/fstab:
> 
>      none  /dev/shm  shm defaults  0 0
> 
> Yes, I have created this subdirectory:
> 
>      # ls -l /dev | grep shm
>      drwxrwxrwt    1 root     root            0 Jan  7 11:54 shm
> 
> No complaints are seen at startup, yet I still have no shared memory:
> 
>      # cat /proc/meminfo
>              total:    used:    free:  shared: buffers:  cached:
>      Mem:  130293760 123133952  7159808        0 30371840 15179776
>      Swap: 136241152        0 136241152
>      MemTotal:       127240 kB
>      MemFree:          6992 kB
>      MemShared:           0 kB
>      Buffers:         29660 kB
>      Cached:          14824 kB
>      Active:           3400 kB
>      Inact_dirty:     37872 kB
>      Inact_clean:      3212 kB
>      Inact_target:        4 kB
>      HighTotal:           0 kB
>      HighFree:            0 kB
>      LowTotal:       127240 kB
>      LowFree:          6992 kB
>      SwapTotal:      133048 kB
>      SwapFree:       133048 kB

You should check shared memory with "ipcs" instead.

Make sure you enabled "System V IPC" under "General Setup" (it's a
default value, though).
-- 
Ernesto Hernández-Novich - Running Linux 2.4.0 i686 - Unix: Live free or die!
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/E d+(++) s+: a C+++$ UBLAVHIOSC*++++$ P++++$ L+++$ E- W+ N++ o K++ w--- O-
M- V PS+ PE Y+ PGP>++ t+ 5 X+ R* tv+ b++ DI+++$ D++ G++ e++ h r++ y+
-----END GEEK CODE BLOCK-----


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: Shared memory not enabled in 2.4.0?
  2001-01-08 19:11 Shared memory not enabled in 2.4.0? Steven_Snyder
                   ` (4 preceding siblings ...)
  2001-01-08 21:10 ` Ernesto Hernandez-Novich
@ 2001-01-08 23:21 ` David Schwartz
  2001-01-10  0:19 ` Igmar Palsenberg
  6 siblings, 0 replies; 8+ messages in thread
From: David Schwartz @ 2001-01-08 23:21 UTC (permalink / raw)
  To: Steven_Snyder, linux-kernel


> For some reason shared memory is not being enabled on my system
> running kernel
> v2.4.0 (on RedHat v6.2,  with all updates applied).

	You are confusing System V shared memory (IPC) with VM shared memory. The
'0' for shared in /proc/meminfo means the system can't easily tell you how
much memory the VM is sharing. But this has nothing whatsoever to do with
IPC shared memory, which is what the /dev/shm thing is about.

	DS

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Shared memory not enabled in 2.4.0?
  2001-01-08 19:11 Shared memory not enabled in 2.4.0? Steven_Snyder
                   ` (5 preceding siblings ...)
  2001-01-08 23:21 ` David Schwartz
@ 2001-01-10  0:19 ` Igmar Palsenberg
  6 siblings, 0 replies; 8+ messages in thread
From: Igmar Palsenberg @ 2001-01-10  0:19 UTC (permalink / raw)
  To: Steven_Snyder; +Cc: linux-kernel


>      # cat /proc/meminfo
>              total:    used:    free:  shared: buffers:  cached:
>      Mem:  130293760 123133952  7159808        0 30371840 15179776
                                         ^^^^^^^^^^

It means shared process memory, not shm. 

One thing to watch : PowerTweak. Seems to set the max shm segments to 0



	Igmar

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2001-01-09 23:13 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-01-08 19:11 Shared memory not enabled in 2.4.0? Steven_Snyder
2001-01-08 19:18 ` Richard B. Johnson
2001-01-08 19:19 ` Brian Gerst
2001-01-08 19:21 ` Gregory Maxwell
2001-01-08 19:26 ` J . A . Magallon
2001-01-08 21:10 ` Ernesto Hernandez-Novich
2001-01-08 23:21 ` David Schwartz
2001-01-10  0:19 ` Igmar Palsenberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox