public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Shared memory quantity not being reflected by /proc/meminfo
@ 2001-06-23 12:08 Allan Duncan
  2001-06-24  2:49 ` Albert D. Cahalan
  0 siblings, 1 reply; 6+ messages in thread
From: Allan Duncan @ 2001-06-23 12:08 UTC (permalink / raw)
  To: linux-kernel

Since the 2.4.x advent of shm as tmpfs or thereabouts,
/proc/meminfo shows shared memory as 0.  It is in
reality not zero, and is being allocated, and shows
up in /proc/sysvipc/shm and /proc/sys/kernel/shmall
etc..
Neither 2.4.6-pre5 nor 2.4.5-ac17 have the correct
display.

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

* Re: Shared memory quantity not being reflected by /proc/meminfo
  2001-06-23 12:08 Shared memory quantity not being reflected by /proc/meminfo Allan Duncan
@ 2001-06-24  2:49 ` Albert D. Cahalan
  2001-06-24  8:44   ` Christoph Rohland
  0 siblings, 1 reply; 6+ messages in thread
From: Albert D. Cahalan @ 2001-06-24  2:49 UTC (permalink / raw)
  To: Allan Duncan; +Cc: linux-kernel

Allan Duncan writes:

> Since the 2.4.x advent of shm as tmpfs or thereabouts,
> /proc/meminfo shows shared memory as 0.  It is in
> reality not zero, and is being allocated, and shows
> up in /proc/sysvipc/shm and /proc/sys/kernel/shmall
> etc..
> Neither 2.4.6-pre5 nor 2.4.5-ac17 have the correct
> display.

You misunderstood what 2.2.xx kernels were reporting.
The "shared" memory in /proc/meminfo refers to something
completely unrelated to SysV shared memory. This is no
longer calculated because the computation was too costly.


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

* Re: Shared memory quantity not being reflected by /proc/meminfo
  2001-06-24  2:49 ` Albert D. Cahalan
@ 2001-06-24  8:44   ` Christoph Rohland
  2001-06-24 12:25     ` Allan Duncan
  0 siblings, 1 reply; 6+ messages in thread
From: Christoph Rohland @ 2001-06-24  8:44 UTC (permalink / raw)
  To: Albert D. Cahalan; +Cc: Allan Duncan, linux-kernel

Hi Albert,

On Sat, 23 Jun 2001, Albert D. Cahalan wrote:
> You misunderstood what 2.2.xx kernels were reporting.
> The "shared" memory in /proc/meminfo refers to something
> completely unrelated to SysV shared memory. This is no
> longer calculated because the computation was too costly.

But the load of misinterpretations and the missing value led me to
export the number of shmem pages in later -ac kernels exactly in this
field.

I know it is a change of semantics and because of this both Alan and
me asked for comments if this change is appreciated. I am still
waiting for responses though.

Greetings
		Christoph



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

* Re: Shared memory quantity not being reflected by /proc/meminfo
  2001-06-24  8:44   ` Christoph Rohland
@ 2001-06-24 12:25     ` Allan Duncan
  2001-06-25  7:01       ` Christoph Rohland
  0 siblings, 1 reply; 6+ messages in thread
From: Allan Duncan @ 2001-06-24 12:25 UTC (permalink / raw)
  To: Christoph Rohland; +Cc: Albert D. Cahalan, linux-kernel

OK, it's fine by me if the "shared" under 2.2.x is not the same, however
in that case the field should not appear at all in meminfo, rather than
the current zero value, which leads lesser kernel hackers like me up the
garden path.

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

* Re: Shared memory quantity not being reflected by /proc/meminfo
  2001-06-24 12:25     ` Allan Duncan
@ 2001-06-25  7:01       ` Christoph Rohland
  2001-06-25 10:19         ` Allan Duncan
  0 siblings, 1 reply; 6+ messages in thread
From: Christoph Rohland @ 2001-06-25  7:01 UTC (permalink / raw)
  To: Allan Duncan; +Cc: Albert D. Cahalan, linux-kernel

Hi Allan,

On Sun, 24 Jun 2001, Allan Duncan wrote:
> OK, it's fine by me if the "shared" under 2.2.x is not the same,
> however in that case the field should not appear at all in meminfo,
> rather than the current zero value, which leads lesser kernel
> hackers like me up the garden path.

This would probably break a lot of user space apps.

Greetings
		Christoph



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

* Re: Shared memory quantity not being reflected by /proc/meminfo
  2001-06-25  7:01       ` Christoph Rohland
@ 2001-06-25 10:19         ` Allan Duncan
  0 siblings, 0 replies; 6+ messages in thread
From: Allan Duncan @ 2001-06-25 10:19 UTC (permalink / raw)
  To: Christoph Rohland; +Cc: Albert D. Cahalan, linux-kernel

Christoph Rohland wrote:
> 
> Hi Allan,
> 
> On Sun, 24 Jun 2001, Allan Duncan wrote:
> > OK, it's fine by me if the "shared" under 2.2.x is not the same,
> > however in that case the field should not appear at all in meminfo,
> > rather than the current zero value, which leads lesser kernel
> > hackers like me up the garden path.
 
> This would probably break a lot of user space apps.


Then only break those that do a lousy parsing of meminfo and change the
heading line to "shared_is_not_real:" or somesuch?
Anyway, aren't the user apps being led up the garden path with the wrong
answer?

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

end of thread, other threads:[~2001-06-25 10:20 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-06-23 12:08 Shared memory quantity not being reflected by /proc/meminfo Allan Duncan
2001-06-24  2:49 ` Albert D. Cahalan
2001-06-24  8:44   ` Christoph Rohland
2001-06-24 12:25     ` Allan Duncan
2001-06-25  7:01       ` Christoph Rohland
2001-06-25 10:19         ` Allan Duncan

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