Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

cache::sizeawaresharedmemorycache(3pm) [debian man page]

Cache::SizeAwareSharedMemoryCache(3pm)			User Contributed Perl Documentation		    Cache::SizeAwareSharedMemoryCache(3pm)

Cache::SizeAwareSharedMemoryCache -- extends Cache::SizeAwareMemoryCache DESCRIPTION
The SizeAwareSharedMemoryCache class adds the ability to dynamically limit the size (in bytes) of a shared memory based cache. This class also implements the SizeAwareCache interface, providing the 'max_size' option and the 'limit_size( $size )' method. SYNOPSIS
use Cache::SizeAwareSharedMemoryCache; my $cache = new Cache::SizeAwareSharedMemoryCache( { 'namespace' => 'MyNamespace', 'default_expires_in' => 600, 'max_size' => 10000 } ); METHODS
See Cache::Cache and Cache::SizeAwareCache for the API documentation. OPTIONS
See Cache::Cache and Cache::SizeAwareCache for the standard options. PROPERTIES
See Cache::Cache and Cache::SizeAwareCache for the default properties. SEE ALSO
Cache::Cache, Cache::SizeAwareCache, Cache::SharedMemoryCache AUTHOR
Original author: DeWitt Clinton <> Last author: $Author: dclinton $ Copyright (C) 2001-2003 DeWitt Clinton perl v5.12.4 2009-03-01 Cache::SizeAwareSharedMemoryCache(3pm)

Check Out this Related Man Page

Cache::SizeAwareCache(3pm)				User Contributed Perl Documentation				Cache::SizeAwareCache(3pm)

Cache::SizeAwareCache -- extends the Cache interface. DESCRIPTION
The SizeAwareCache interface is implemented by classes that support all of the Cache::Cache interface in addition to the limit_size and max_size features of a size aware cache. The default cache size limiting algorithm works by removing cache objects in the following order until the desired limit is reached: 1) objects that have expired 2) objects that are least recently accessed 3) objects that that expire next SYNOPSIS
use Cache::SizeAwareCache; use vars qw( @ISA ); @ISA = qw( Cache::SizeAwareCache ); CONSTANTS
Please see Cache::Cache for standard constants $NO_MAX_SIZE The cache has no size restrictions METHODS
Please see Cache::Cache for the standard methods limit_size( $new_size ) Attempt to resize the cache such that the total disk usage is under the $new_size parameter. $new_size represents t size (in bytes) that the cache should be limited to. Note that this is only a one time adjustment. To maintain the cache size, consider using the max_size option, although it is considered very expensive, and can often be better achieved by peridocally calling limit_size. OPTIONS
Please see Cache::Cache for the standard options max_size Sets the max_size property (size in bytes), which is described in detail below. Defaults to $NO_MAX_SIZE. PROPERTIES
Please see Cache::Cache for standard properties (get|set)_max_size If this property is set, then the cache will try not to exceed the max size value (in bytes) specified. NOTE: This causes the size of the cache to be checked on every set, and can be considered *very* expensive in some implementations. A good alternative approach is leave max_size as $NO_MAX_SIZE and to periodically limit the size of the cache by calling the limit_size( $size ) method. SEE ALSO
Cache::Cache AUTHOR
Original author: DeWitt Clinton <> Last author: $Author: dclinton $ Copyright (C) 2001-2003 DeWitt Clinton perl v5.12.4 2009-03-01 Cache::SizeAwareCache(3pm)
Man Page

14 More Discussions You Might Find Interesting

1. Linux Benchmarks

AMD 1.2 Gentoo

Notes: CPU/Speed: 1195.993 Ram: 503 Megabytes Motherboard: biostart m7vkb Bus: Cache:256 KB Controller:VT82C586A Disk:Maxtor 93073U6 Load: Kernel:2.4.20-xfs-r3 Kernel ELF?: yes pgms: Results: BYTE UNIX Benchmarks (Version 3.11) System -- Linux box 2.4.20-xfs-r3 #1... (1 Reply)
Discussion started by: tnorth
1 Replies

2. Linux Benchmarks

Sun Ultra30, Gentoo

Notes: CPU/Speed: UltraSparcII 296Mhz Ram:512M Motherboard: Bus: Cache: Controller: Disk: SEAGATE Model: ST34371W SUN4.2G Load: Kernel: Kernel ELF?: pgms: Results: BYTE UNIX Benchmarks (Version 3.11) System -- Linux box 2.4.21-sparc-r1 #1 Wed Oct 1 12:32:52 EDT 2003... (0 Replies)
Discussion started by: tnorth
0 Replies

3. Linux Benchmarks

Athlon XP3200 (@2236Mhz)

CPU/Speed: Athlon XP3200 @ 2236mhz Ram: 1GB DDR (344mhz) Motherboard: Abit NF7-S Cache: 512k on board Controller: Integrated Nforce2 Disk: 120Gb WD Special Edition, 40gb WD Caviar Load: 1 user. Clean boot, init 5 but X-Windows not loaded. Kernel: 2.6.5 pgms: gcc 3.2.3 Distribution:... (0 Replies)
Discussion started by: Garp
0 Replies

4. HP-UX

Buffer Cache

What is the "Buffer Cache" used for? (1 Reply)
Discussion started by: ALTRUNVRSOFLN
1 Replies

5. Solaris

Unix Cache / Buffer

Does anyone know how the unix buffer / cache is set in a Solaris based system ? ( I presume it is a kernel based setting ) I notice from SAR -d that my read cache is consistently at 100% but my write cache frequently falls below 65%. What does this mean. Should I be tuning the write cache and... (1 Reply)
Discussion started by: jimthompson
1 Replies

6. Solaris

ARP Cache

Dear all, We are testing two of our servers for mq series connectivity. The scenario is, when one machine is shutting down it's services there are some scripts that do a dns update, which removes the ip address and relates it to the ip address of the other node on our dns server, and the update... (7 Replies)
Discussion started by: earlysame55
7 Replies

7. IP Networking

DNS Cache-Only Config Advice

Hi Chaps and Chappettes, I've had a short period of time recently to learn and implement DNS cache-only in our organisation. Trouble is, according to my tcpdumps, the amount of traffic on port 53 has increased. This is of course the exact opposit of the desired effect. Would y'all mind looking... (2 Replies)
Discussion started by: danny.hudson
2 Replies

8. Linux

getting info on Cache Size, Data Cache etc..

Hi all I saw in Microsoft web site a tool called CoreInfo from able to print out on screen the size of the Data and Instruction caches of your processor, the Locigal to Physical Processor mapping, the number of the CPU sockets. etc.. Do you know if in Linux is available a... (2 Replies)
Discussion started by: manustone
2 Replies

9. UNIX for Dummies Questions & Answers

Help with cygwin and cache simulators

I've just installed cygwin to run some well known Cache Simulators in a UNIX enviroment. I have installed cygwin according to the install instructions. Every time i try to run a make file from any of these simulators, I get the same exact error: And the makefiles do not work. Is there any... (3 Replies)
Discussion started by: sparklezilla3
3 Replies

10. Solaris

Corrupted Cache errors in /var/adm/messages

Hi, I am getting the following errors (thousands of these every min)..OS is solaris9...have no idea whats the cause and how to stop it..I am pasting only a few samples...any answers greatly appreciated corrupted cache (binding): 0xec7e corrupted cache (binding): 0x636f6d00 corrupted cache... (1 Reply)
Discussion started by: gkr747
1 Replies

11. UNIX for Advanced & Expert Users

echo 1 > /proc/sys/vm/drop_caches a good idea?

Hi folks. I work with several production servers, and I have seen in some Kernel Cache using most of the memory. See this pic: Do you think this is a smart choice? Remember these are productions servers and it is extremely necesary this does not... (6 Replies)
Discussion started by: erick_tuk
6 Replies

12. Red Hat

Need to release Cache memory

Right now i am using Red Hat Enterprise Linux AS release 4 and cache memory occupying around 1.5GB mentioned below, total used free shared buffers cached Mem: 2026 2021 5 0 161 1477 -/+ buffers/cache: 382 1644 ... (4 Replies)
Discussion started by: thakshina
4 Replies

13. Red Hat

Cache line size set incorrectly - Installing Redhat 9.0

Hi everyone, my name is chinx. I am new to Linux and new to this forum. I am trying to install Red Hat 9.0 on my MSi Laptop. But when I try to boot the CD, after selecting either GUI or CLI type of installation, I get this: PCI: 00.03.3 PCI cache line size set incorrectly (32 bytes) ... ... (1 Reply)
Discussion started by: LinuxNewbs
1 Replies

14. AIX

Strange memory behavior

Hello together, i have a strange memory behavior on a AIX 7.1 System, which i cannot explain. The Filesystem-Cache will not be grow up and drops often after few minutes. I know if a file was deleted, that the same segment in the FS-Cache will also be cleared. But i am not sure if this is the... (8 Replies)
Discussion started by: -=XrAy=-
8 Replies

Featured Tech Videos