WINCACHE_UCACHE_MEMINFO(3) 1 WINCACHE_UCACHE_MEMINFO(3)wincache_ucache_meminfo - Retrieves information about user cache memory usageSYNOPSIS
array wincache_ucache_meminfo (void )
DESCRIPTION
Retrieves information about memory usage by user cache.
RETURN VALUES
Array of meta data about user cache memory usage or FALSE on failure
The array returned by this function contains the following elements:
o memory_total - amount of memory in bytes allocated for the user cache
o memory_free - amount of free memory in bytes available for the user cache
o num_used_blks - number of memory blocks used by the user cache
o num_free_blks - number of free memory blocks available for the user cache
o memory_overhead - amount of memory in bytes used for the user cache internal structures
EXAMPLES
Example #1
A wincache_ucache_meminfo(3) example
<pre>
<?php
print_r(wincache_ucache_meminfo());
?>
</pre>
The above example will output:
Array
(
[memory_total] => 5242880
[memory_free] => 5215056
[num_used_blks] => 6
[num_free_blks] => 3
[memory_overhead] => 176
)
SEE ALSO wincache_fcache_fileinfo(3), wincache_fcache_meminfo(3), wincache_ocache_fileinfo(3), wincache_rplist_fileinfo(3), wincache_rplist_mem-
info(3), wincache_refresh_if_changed(3), wincache_ucache_info(3), wincache_scache_info(3), wincache_scache_meminfo(3).
PHP Documentation Group WINCACHE_UCACHE_MEMINFO(3)
Check Out this Related Man Page
WINCACHE_REFRESH_IF_CHANGED(3) 1 WINCACHE_REFRESH_IF_CHANGED(3)wincache_refresh_if_changed - Refreshes the cache entries for the cached filesSYNOPSIS
bool wincache_refresh_if_changed ([array $files = NULL])
DESCRIPTION
Refreshes the cache entries for the files, whose names were passed in the input argument. If no argument is specified then refreshes all
the entries in the cache.
PARAMETERS
o $files
- An array of file names for files that need to be refreshed. An absolute or relative file paths can be used.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
EXAMPLES
WinCache performs regular checks on the cached files to ensure that if any file has changed then the corresponding entry in the cache is
updated. By default this check is performed every 30 seconds. If, for example, a PHP script updates another PHP script where the applica-
tion's configuration settings are stored, then it may happen that after the configuration settings have been saved to a file, the applica-
tion is still using old settings for some time until the cache is refreshed. In those cases it may be preferrable to refresh the cache
right after the file has been changed. The following example shows how this can be done.
Example #1
A wincache_refresh_if_changed(3) example
<?php
$filename = 'C:inetpubwwwrootconfig.php';
$handle = fopen($filename, 'w+');
if ($handle === FALSE) die('Failed to open file '.$filename.' for writing');
fwrite($handle, '<?php $setting=something; ?>');
fclose($handle);
wincache_refresh_if_changed(array($filename));
?>
SEE ALSO wincache_fcache_fileinfo(3), wincache_fcache_meminfo(3), wincache_ocache_fileinfo(3), wincache_ocache_meminfo(3), wincache_rplist_file-
info(3), wincache_rplist_meminfo(3), wincache_ucache_meminfo(3), wincache_ucache_info(3).
PHP Documentation Group WINCACHE_REFRESH_IF_CHANGED(3)
Hello,
I'm working with Linux 2.4.18
I'll like to know, if there is a way to know exactly what is using the RAM memory of my box.
I try with ps command, but the size of the memory usage than I can calculate, it is very diferent compared with the information that I get with the free command.
... (11 Replies)
hi
could anybody please suggest me how to put a function memory for particular user.
say i am a user rao. want have a function foo in memory .
i have done this .typed the function function in the shell it worked for the session.but next time i do login its not there .
i can i have a... (6 Replies)
Hi all
Just a couple days ago my /var/ partition was at 63% now its shot up to 83%.
I checked my log file sizes and they same ok
# ls -l |more
total 38820
-rw-r----- 1 root root 3754 Aug 1 19:26 acpid
drwxrwxrwx 2 root root 4096 Aug 24 04:11 admserv
-rw------- ... (28 Replies)
Greetings Forumers!
I have a Solaris 10u9 M5000 with 32GB RAM and have noticed the ZFS arc cache is consuming large amount of memory. Here's what I see on my system:
# echo ::memstat|mdb -k
Page Summary Pages MB %Tot
------------ ---------------- ... (9 Replies)
hi guys
my suse 10 Sp3 is consuming too much memory but I don't which process/processes are.
this is top by memory usage
top - 12:02:46 up 183 days, 13:57, 6 users, load average: 0.15, 0.25, 0.56
Tasks: 202 total, 1 running, 201 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.3%us, ... (5 Replies)
I already checked memory on AIX with "svmon -G" and vmstat (as the figure). I see the value "inuse" nearly=97% use memory, free=3%. However, the value "pin=cache" nearly=26%.
Can I calculate total free memory= free+ pin = 29% ?
please help me!
Thanks so much! (5 Replies)
Hello,
Am working on small program that used to calculate the memory usage of AIX servers. Am using svmon -G command to get the memory usage. For example, consider the following output.
$ svmon -G
size inuse free pin virtual mmode
memory ... (9 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 a newbie and would like help to determine the total memory usage by a user eg oracle in Solaris 10 machine.
The user has been assigned a total memory of 20gb .But there are a number of processes under that user.
I would like to know the total memory being utilized from all the... (8 Replies)
I can't check actual memory usage in the Redhat 5.5...
The used memory is 14214 Mb of Total 15919 by Free -m command.
I sum the RSS value on PS aux command result and the value is 5428.66Mb.
Yes It's quite different actual usage memory and RSS value.
So I added Shared memory value... (5 Replies)
Hi there
I am middle of writing a script to allow me to see the % of the memory which is being used.
When I submit my script I don't get any errors but I just get a blank output.
Any pointers?
available=`free -m | grep available`
if
then
... (7 Replies)
I have multiple oracle databases on one server. All the database are running from the same user i.e. oraent.
The process for each database can be distinguished by the ps -ef command
Eg : ps -ef | grep oraentThe Output :
oraent 5361 1 0 20:58:05 ? 0:00 oracledb1... (11 Replies)
Hi, i have 2 identical web servers using AIX. I use nmon analyser to check their performance.
The server A exceeds 20% memory usage for system, 5% for cache and the rest 75% for processes. While, it uses 4% of Paging Space.
The server B exceeds 20% for system, 45% for cache and 35% for processes.... (24 Replies)
Hi,
This morning there was an app that caused a sudden spike in I/O and memory usage in the server. We found the reason for the I/O, however the memory spike was something new, as it had never happened before.
I figured out what caused the memory spike, however, how do I investigate why... (6 Replies)