In the above code I am trying to determine the number of cycles it takes to fetch the first element of an array from memory, and then the next cached element. When I execute this snippet, I am getting almost identical number of cycles for both accesses ~81 cycles. Can anybody explain me why this is happening. By all means, the first access should be very costly, but the access to next sequential element which has been brought into the cache should be much lesser.
I'm looking to get the file cache portion of physical (real) memory on a Solaris workstation (Similar to the Cache: line in /proc/meminfo on some Linux systems):
# swap -s; swap -l; vmstat 2 2; echo "::memstat" | mdb -k
total: 309376k bytes allocated + 41428k reserved = 350804k used,... (5 Replies)
Hi,
I'm running a debian lenny 1GB ram, but with a high I/O. This server has 400IOPS and 3MB/s sustain. So, I noted cached memory use 800MB, buffered memory use 50MB, and no free memory is available. Questions:
What does mean such a high cached memory?
Who's using this cached memory?
Is... (3 Replies)
18:45:47 # free -m
total used free shared buffers cached
Mem: 96679 95909 770 0 1530 19550
-/+ buffers/cache: 74828 21851
Swap: 12287 652 11635
Hi all. The below output is from a RHEL 4.5... (0 Replies)
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)
When I run 'top' command,I see the following
Memory: 32G real, 12G free, 96G swap free
Though it shows as 12G free,I am not able to account for processes that consume the rest 20G.
In my understanding some process should be consuming atleast 15-16 G but I am not able to find them.
Is... (1 Reply)
The environment is Java/Windows. The program keeps near real-time state in memory cache, which is updated by multiple sources, size of the cache is roughly 500 MB, frequency of updates is ~ 20 per second. I am looking into different ways to keep current snapshot of the memory on the disk for a)... (9 Replies)
hi all,
i have noticed that my server has 64 GB RAM and i have application in this server but the server has free memory only 15% and utilized 85% however it didn't eat from swap .
does any parameter can be configured in kernel to make the system clear memory from cache like linux
i found... (4 Replies)
i wish to clear memory cache on a production box and i was wondering what is the worst that can happen if i do?
i already tested this on a backup server and everything seemed fine.
but i need to know from you experts what are the worst things that can happen when i run it on a real server:
... (5 Replies)
Hi,
I am new to AIX, Can someone please help me how to know the swap space, total physical memory and system cache?
We are using AIX 5.3.
Thanks! (3 Replies)
Discussion started by: Phaneendra G
3 Replies
LEARN ABOUT PHP
wincache_scache_info
WINCACHE_SCACHE_INFO(3) 1 WINCACHE_SCACHE_INFO(3)wincache_scache_info - Retrieves information about files cached in the session cacheSYNOPSIS
array wincache_scache_info ([bool $summaryonly = false])
DESCRIPTION
Retrieves information about session cache content and its usage.
PARAMETERS
o $summaryonly
- Controls whether the returned array will contain information about individual cache entries along with the session cache sum-
mary.
RETURN VALUES
Array of meta data about session cache or FALSE on failure
The array returned by this function contains the following elements:
o total_cache_uptime - total time in seconds that the session cache has been active
o total_item_count - total number of elements that are currently in the session cache
o is_local_cache - true is the cache metadata is for a local cache instance, false if the metadata is for the global cache
o total_hit_count - number of times the data has been served from the cache
o total_miss_count - number of times the data has not been found in the cache
o scache_entries - an array that contains the information about all the cached items:
o key_name - name of the key which is used to store the data
o value_type - type of value stored by the key
o use_time - time in seconds since the file has been accessed in the opcode cache
o last_check - time in seconds since the file has been checked for modifications
o ttl_seconds - time remaining for the data to live in the cache, 0 meaning infinite
o age_seconds - time elapsed from the time data has been added in the cache
o hitcount - number of times data has been served from the cache
EXAMPLES
Example #1
A wincache_scache_info(3) example
<pre>
<?php
print_r(wincache_scache_info());
?>
</pre>
The above example will output:
Array
(
[total_cache_uptime] => 17357
[total_file_count] => 121
[total_hit_count] => 36562
[total_miss_count] => 201
[scache_entries] => Array
(
[1] => Array
(
[file_name] => c:inetpubwwwrootcheckcache.php
[add_time] => 17356
[use_time] => 7
[last_check] => 10
[hit_count] => 454
[function_count] => 0
[class_count] => 1
)
[2] => Array (...iterates for each cached file)
)
)
SEE ALSO wincache_fcache_fileinfo(3), wincache_fcache_meminfo(3), wincache_ocache_meminfo(3), wincache_rplist_fileinfo(3), wincache_rplist_mem-
info(3), wincache_refresh_if_changed(3), wincache_ucache_meminfo(3), wincache_ucache_info(3), wincache_scache_meminfo(3).
PHP Documentation Group WINCACHE_SCACHE_INFO(3)