* SHM Not working in 2.4.0-prerelease
@ 2001-01-03 19:34 Shawn Starr
2001-01-03 20:15 ` Doug McNaught
0 siblings, 1 reply; 5+ messages in thread
From: Shawn Starr @ 2001-01-03 19:34 UTC (permalink / raw)
To: linux-kernel
I have created the shm directory in /dev
drwxrwxrwt 1 root root 0 Jan 3 09:51 shm/
in my fstab i have:
shmfs /dev/shm shm defaults 0 0
when I display with top:
Mem: 62496K av, 61248K used, 1248K free, 0K shrd, 1868K
buff
Swap: 64252K av, 20016K used, 44236K free 27900K
cached
[spstarr@coredump /etc]$ free
total used free shared buffers
cached
Mem: 62496 61264 1232 0 1248
28848
There's no shared memory being used?
mount
...
shmfs on /dev/shm type shm (rw)
the shmfs is mounted. Is there any configuration i need to get shm
memory activiated?
Thanks,
Shawn Starr.
-
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] 5+ messages in thread
* Re: SHM Not working in 2.4.0-prerelease
2001-01-03 19:34 SHM Not working in 2.4.0-prerelease Shawn Starr
@ 2001-01-03 20:15 ` Doug McNaught
2001-01-03 20:21 ` Albert D. Cahalan
2001-01-03 20:52 ` Shawn Starr
0 siblings, 2 replies; 5+ messages in thread
From: Doug McNaught @ 2001-01-03 20:15 UTC (permalink / raw)
To: shawn.starr; +Cc: linux-kernel
Shawn Starr <shawn.starr@home.net> writes:
> [spstarr@coredump /etc]$ free
> total used free shared buffers
> cached
> Mem: 62496 61264 1232 0 1248
> 28848
>
>
> There's no shared memory being used?
[...]
> the shmfs is mounted. Is there any configuration i need to get shm
> memory activiated?
The 'shared' field in /proc/meminfo (source for 'top' and 'free') has
nothing to do with {SysV,POSIX} shared memory. The 'shared' field
referred to memory that was used by more than one process (shared
libraries, shared text segments etc). As I understand it, under 2.4
the 'shared' field is very expensive to calculate, so we don't--the
zero value is there to avoid breaking programs that parse
/proc/meminfo.
-Doug
-
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] 5+ messages in thread
* Re: SHM Not working in 2.4.0-prerelease
2001-01-03 20:15 ` Doug McNaught
@ 2001-01-03 20:21 ` Albert D. Cahalan
2001-01-04 10:16 ` Christoph Rohland
2001-01-03 20:52 ` Shawn Starr
1 sibling, 1 reply; 5+ messages in thread
From: Albert D. Cahalan @ 2001-01-03 20:21 UTC (permalink / raw)
To: Doug McNaught; +Cc: shawn.starr, linux-kernel
>> [spstarr@coredump /etc]$ free
>> total used free shared buffers
...
>> the shmfs is mounted. Is there any configuration i need to get
>> shm memory activiated?
>
> The 'shared' field in /proc/meminfo (source for 'top' and 'free')
> has nothing to do with {SysV,POSIX} shared memory.
Hey, that would be a good use for the field.
-
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] 5+ messages in thread
* Re: SHM Not working in 2.4.0-prerelease
2001-01-03 20:15 ` Doug McNaught
2001-01-03 20:21 ` Albert D. Cahalan
@ 2001-01-03 20:52 ` Shawn Starr
1 sibling, 0 replies; 5+ messages in thread
From: Shawn Starr @ 2001-01-03 20:52 UTC (permalink / raw)
To: Doug McNaught; +Cc: linux-kernel
ahh ok, so everythings fine then. It would be nice though to see that
value perhaps in future they'll be a way.
Thanks,
Shawn.
Doug McNaught wrote:
> Shawn Starr <shawn.starr@home.net> writes:
>
> > [spstarr@coredump /etc]$ free
> > total used free shared buffers
> > cached
> > Mem: 62496 61264 1232 0 1248
> > 28848
> >
> >
> > There's no shared memory being used?
>
> [...]
>
> > the shmfs is mounted. Is there any configuration i need to get shm
> > memory activiated?
>
> The 'shared' field in /proc/meminfo (source for 'top' and 'free') has
> nothing to do with {SysV,POSIX} shared memory. The 'shared' field
> referred to memory that was used by more than one process (shared
> libraries, shared text segments etc). As I understand it, under 2.4
> the 'shared' field is very expensive to calculate, so we don't--the
> zero value is there to avoid breaking programs that parse
> /proc/meminfo.
>
> -Doug
-
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] 5+ messages in thread
* Re: SHM Not working in 2.4.0-prerelease
2001-01-03 20:21 ` Albert D. Cahalan
@ 2001-01-04 10:16 ` Christoph Rohland
0 siblings, 0 replies; 5+ messages in thread
From: Christoph Rohland @ 2001-01-04 10:16 UTC (permalink / raw)
To: Albert D. Cahalan; +Cc: Doug McNaught, shawn.starr, linux-kernel
"Albert D. Cahalan" <acahalan@cs.uml.edu> writes:
> >> [spstarr@coredump /etc]$ free
> >> total used free shared buffers
> ...
> >> the shmfs is mounted. Is there any configuration i need to get
> >> shm memory activiated?
> >
> > The 'shared' field in /proc/meminfo (source for 'top' and 'free')
> > has nothing to do with {SysV,POSIX} shared memory.
>
> Hey, that would be a good use for the field.
Not a bad idea. Then we could tell free etc to subtract this from the
+/- cached free numbers...
I will look into this.
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] 5+ messages in thread
end of thread, other threads:[~2001-01-04 10:20 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-01-03 19:34 SHM Not working in 2.4.0-prerelease Shawn Starr
2001-01-03 20:15 ` Doug McNaught
2001-01-03 20:21 ` Albert D. Cahalan
2001-01-04 10:16 ` Christoph Rohland
2001-01-03 20:52 ` Shawn Starr
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox