public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* No shared memory??
@ 2000-12-10 11:11 David D.W. Downey
  2000-12-10 23:58 ` J . A . Magallon
  2000-12-11 14:28 ` Christoph Rohland
  0 siblings, 2 replies; 7+ messages in thread
From: David D.W. Downey @ 2000-12-10 11:11 UTC (permalink / raw)
  To: linux-kernel


OK, got a tiny little bug here.

When running top, procinfo, or free I get 0 for Shared memory. Obviously
this is incorrect. What has changed from the 2.2.x and the 2.4.x that
would cause these apps to misreport this information.

This IS information gained through the /proc filesystem which is kernel
based is it not? This would seem to make it a kernel issue since the
change in format is brought about by how the kernel reports this
information if i understand this correctly.

(If I am wrong, please let me know. I hate laboring under false
assumptions)


How do I fix this problem in any event?


David PGPKeys Downey


-
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] 7+ messages in thread

* Re: No shared memory??
  2000-12-10 11:11 No shared memory?? David D.W. Downey
@ 2000-12-10 23:58 ` J . A . Magallon
  2000-12-11  8:52   ` David D.W. Downey
  2000-12-11 14:28 ` Christoph Rohland
  1 sibling, 1 reply; 7+ messages in thread
From: J . A . Magallon @ 2000-12-10 23:58 UTC (permalink / raw)
  To: David D . W . Downey; +Cc: linux-kernel


On Sun, 10 Dec 2000 12:11:14 David D.W. Downey wrote:
> 
> OK, got a tiny little bug here.
> 
> When running top, procinfo, or free I get 0 for Shared memory. Obviously
> this is incorrect. What has changed from the 2.2.x and the 2.4.x that
> would cause these apps to misreport this information.
> 

Have you mounted /dev/shm (shared memory) filesystem ?
Take a look at kernel documentation under linux/Documentation/Changes.

-- 
Juan Antonio Magallon Lacarta                                 #> cd /pub
mailto:jamagallon@able.es                                     #> more beer

Linux werewolf 2.2.18-pre25-vm #4 SMP Fri Dec 8 01:59:48 CET 2000 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] 7+ messages in thread

* Re: No shared memory??
  2000-12-10 23:58 ` J . A . Magallon
@ 2000-12-11  8:52   ` David D.W. Downey
  0 siblings, 0 replies; 7+ messages in thread
From: David D.W. Downey @ 2000-12-11  8:52 UTC (permalink / raw)
  To: jamagallon; +Cc: linux-kernel

Yeah I just read that. Thanks for the info. Knew nothing about it being
kicked out there. I usually only read looking for package locations of
needed software to run the kernels. Now it looks like I should be reading
more. Thanks for the blow to the head to get me thinking right again. :)

BTW, I have that mounted now like the docs say but I still do not get any
shared info. I've gotten a couple of other emails about it, one of which
states that it ate up too much CPU time.

What I'm wondering is, is it possible to get that info some other way? I
realize walking the process tree is a pain in the ass and expensive CPU and
time wise. Also, I'm not sure if that information would include each
process's private memory space.

The reason I'm asking is that taking the overall memory used, subtracting
the cached and buffered memory may not always leave the right amount of
shared memory.

(If I show 26MB used total, 21MB which is cached and 1MB that's buffered is
it a FACT that the remaining 4MB unaccounted for is actually and completely
shared memory?)

Any other information on this would be appreciated.

TO THE KERNEL DEVELOPERS
=========================
BTW, I love the devfs stuff. REALLY makes s big difference. I'm developing
my own flavor of linux and it's quickly being modified to use ONLY devfs
entries.


>
> On Sun, 10 Dec 2000 12:11:14 David D.W. Downey wrote:
> >
> > OK, got a tiny little bug here.
> >
> > When running top, procinfo, or free I get 0 for Shared memory. Obviously
> > this is incorrect. What has changed from the 2.2.x and the 2.4.x that
> > would cause these apps to misreport this information.
> >
>
> Have you mounted /dev/shm (shared memory) filesystem ?
> Take a look at kernel documentation under linux/Documentation/Changes.
>
> --
> Juan Antonio Magallon Lacarta                                 #> cd /pub
> mailto:jamagallon@able.es                                     #> more beer
>
> Linux werewolf 2.2.18-pre25-vm #4 SMP Fri Dec 8 01:59:48 CET 2000 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/
>

-
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] 7+ messages in thread

* Re: No shared memory??
  2000-12-10 11:11 No shared memory?? David D.W. Downey
  2000-12-10 23:58 ` J . A . Magallon
@ 2000-12-11 14:28 ` Christoph Rohland
  1 sibling, 0 replies; 7+ messages in thread
From: Christoph Rohland @ 2000-12-11 14:28 UTC (permalink / raw)
  To: David D.W. Downey; +Cc: linux-kernel

"David D.W. Downey" <pgpkeys@hislinuxbox.com> writes:

> When running top, procinfo, or free I get 0 for Shared memory. Obviously
> this is incorrect. What has changed from the 2.2.x and the 2.4.x that
> would cause these apps to misreport this information.

Known 2.4 behaviour. It is simply to costly to calculate that. It will
always show as 0.

        Christoph

-
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] 7+ messages in thread

* no shared memory?
@ 2001-10-30 12:37 Terry Kendal
  2001-10-30 12:41 ` Martín Marqués
  2001-10-30 16:04 ` Bartłomiej Dolata
  0 siblings, 2 replies; 7+ messages in thread
From: Terry Kendal @ 2001-10-30 12:37 UTC (permalink / raw)
  To: linux-kernel

hello,

after upgrading my computer to newer distro with kernel series 2.4 ive found
something i have question about
issuing free or top commands shows 0kb of shared memory

how is that possible ?
i have apache and mysql running, thought they'd use shared memory?

i recompiled procps package with no effect

can someone please xplain it to me ?

thanx in advance,
terry



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

* Re: no shared memory?
  2001-10-30 12:37 no shared memory? Terry Kendal
@ 2001-10-30 12:41 ` Martín Marqués
  2001-10-30 16:04 ` Bartłomiej Dolata
  1 sibling, 0 replies; 7+ messages in thread
From: Martín Marqués @ 2001-10-30 12:41 UTC (permalink / raw)
  To: Terry Kendal, linux-kernel

On Mar 30 Oct 2001 09:37, Terry Kendal wrote:
> hello,
>
> after upgrading my computer to newer distro with kernel series 2.4 ive
> found something i have question about
> issuing free or top commands shows 0kb of shared memory
>
> how is that possible ?
> i have apache and mysql running, thought they'd use shared memory?

Use 'ipcs' for searching shared memory and semaphores of aplications.

> i recompiled procps package with no effect
>
> can someone please xplain it to me ?

It seems dificult to calculate the amount of shared memory used, and for what 
I know, useless.
Anyway, I heard that Alan Cox's release of 2.4.13 has some code to show the 
shared memory used, but only the one used my applications.

Saludos... :-)

-- 
Porqué usar una base de datos relacional cualquiera,
si podés usar PostgreSQL?
-----------------------------------------------------------------
Martín Marqués                  |        mmarques@unl.edu.ar
Programador, Administrador, DBA |       Centro de Telematica
                       Universidad Nacional
                            del Litoral
-----------------------------------------------------------------

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

* Re: no shared memory?
  2001-10-30 12:37 no shared memory? Terry Kendal
  2001-10-30 12:41 ` Martín Marqués
@ 2001-10-30 16:04 ` Bartłomiej Dolata
  1 sibling, 0 replies; 7+ messages in thread
From: Bartłomiej Dolata @ 2001-10-30 16:04 UTC (permalink / raw)
  To: linux-kernel

thanx to everyone who answered, even those with dull answers

best regards,
terry



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

end of thread, other threads:[~2001-10-30 15:57 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-12-10 11:11 No shared memory?? David D.W. Downey
2000-12-10 23:58 ` J . A . Magallon
2000-12-11  8:52   ` David D.W. Downey
2000-12-11 14:28 ` Christoph Rohland
  -- strict thread matches above, loose matches on Subject: below --
2001-10-30 12:37 no shared memory? Terry Kendal
2001-10-30 12:41 ` Martín Marqués
2001-10-30 16:04 ` Bartłomiej Dolata

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