linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* set a limit for the cache
@ 2002-07-05  7:38 Kappl, Hannes
  2002-07-05  8:57 ` Alex Zeffertt
  2002-07-08 20:30 ` Conn Clark
  0 siblings, 2 replies; 3+ messages in thread
From: Kappl, Hannes @ 2002-07-05  7:38 UTC (permalink / raw)
  To: 'linuxppc-embedded@lists.linuxppc.org'


 Hi,

 I am using kernel 2.4.4. I have 32M RAM with a 10M Ramdisk. Now my problem is
that
 the Ramdisk is cached in the RAM(4 - 8M!). Is it possible to set the size of
the
 cache to a limit or to disable the cache complete?



   7:13pm  up 34 min,  0 users,  load average: 0.12, 0.33, 0.30
 22 processes: 21 sleeping, 1 running, 0 zombie, 0 stopped
 CPU states:  0.9% user,  4.3% system,  0.0% nice, 94.7% idle
 Mem:   30612K av,   9216K used,  21396K free,   9904K shrd,      0K buff
 Swap:      0K av,      0K used,      0K free                  5392K cached

  PID USER     PRI  NI  SIZE  RSS SHARE STAT  LIB %CPU %MEM   TIME COMMAND
  107 root      14   0   836  836   644 R       0  4.5  2.7   0:00 top


 best regard
 Hannes


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

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

* Re: set a limit for the cache
  2002-07-05  7:38 set a limit for the cache Kappl, Hannes
@ 2002-07-05  8:57 ` Alex Zeffertt
  2002-07-08 20:30 ` Conn Clark
  1 sibling, 0 replies; 3+ messages in thread
From: Alex Zeffertt @ 2002-07-05  8:57 UTC (permalink / raw)
  To: Kappl, Hannes; +Cc: 'linuxppc-embedded@lists.linuxppc.org'


Kappl, Hannes wrote:

>  Hi,
>
>  I am using kernel 2.4.4. I have 32M RAM with a 10M Ramdisk. Now my problem is
> that
>  the Ramdisk is cached in the RAM(4 - 8M!). Is it possible to set the size of
> the
>  cache to a limit or to disable the cache complete?
>
>
>
>    7:13pm  up 34 min,  0 users,  load average: 0.12, 0.33, 0.30
>  22 processes: 21 sleeping, 1 running, 0 zombie, 0 stopped
>  CPU states:  0.9% user,  4.3% system,  0.0% nice, 94.7% idle
>  Mem:   30612K av,   9216K used,  21396K free,   9904K shrd,      0K buff
>  Swap:      0K av,      0K used,      0K free                  5392K cached
>
>   PID USER     PRI  NI  SIZE  RSS SHARE STAT  LIB %CPU %MEM   TIME COMMAND
>   107 root      14   0   836  836   644 R       0  4.5  2.7   0:00 top
>



I'm confused, top says that you have 21.4M free.  If your 10M ramdisk was being cached in 4M of RAM
then surely you'd have at most (32-14)=18M free?

While we're on the topic of RAM usage, can anyone tell me how you find out how the shrd memory (see
top output above) is broken down into seperate libraries.

Thanks,

Alex

>
>  best regard
>  Hannes
>
>
>
>


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

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

* Re: set a limit for the cache
  2002-07-05  7:38 set a limit for the cache Kappl, Hannes
  2002-07-05  8:57 ` Alex Zeffertt
@ 2002-07-08 20:30 ` Conn Clark
  1 sibling, 0 replies; 3+ messages in thread
From: Conn Clark @ 2002-07-08 20:30 UTC (permalink / raw)
  To: Kappl, Hannes, May Ling List


You can do this by changing values in the /proc file system.
Refer to the docs in the kernel source.

"Kappl, Hannes" wrote:
>
>  Hi,
>
>  I am using kernel 2.4.4. I have 32M RAM with a 10M Ramdisk. Now my problem is
> that
>  the Ramdisk is cached in the RAM(4 - 8M!). Is it possible to set the size of
> the
>  cache to a limit or to disable the cache complete?
>
>    7:13pm  up 34 min,  0 users,  load average: 0.12, 0.33, 0.30
>  22 processes: 21 sleeping, 1 running, 0 zombie, 0 stopped
>  CPU states:  0.9% user,  4.3% system,  0.0% nice, 94.7% idle
>  Mem:   30612K av,   9216K used,  21396K free,   9904K shrd,      0K buff
>  Swap:      0K av,      0K used,      0K free                  5392K cached
>
>   PID USER     PRI  NI  SIZE  RSS SHARE STAT  LIB %CPU %MEM   TIME COMMAND
>   107 root      14   0   836  836   644 R       0  4.5  2.7   0:00 top
>
>  best regard
>  Hannes
>

--

*****************************************************************
  If you live at home long enough, your parents will move out.
 (Warning they may try to sell their house out from under you.)
*****************************************************************

Conn Clark
Engineering Stooge				clark@esteem.com
Electronic Systems Technology Inc.		www.esteem.com


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

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

end of thread, other threads:[~2002-07-08 20:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-07-05  7:38 set a limit for the cache Kappl, Hannes
2002-07-05  8:57 ` Alex Zeffertt
2002-07-08 20:30 ` Conn Clark

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).