Sponsored Content
Top Forums Web Development MySQL Tuning Tools with mysqltuner.pl and tuning-primer.sh Post 302222242 by gain on Wednesday 6th of August 2008 10:49:33 AM
Old 08-06-2008
Question Memory Usage do not match

Hi!

I have been using both these tools for sometime now. However, if you look at both outputs you will see that the memory usage returned by tuning_primer.sh is less than that of mysqltuner.pl. Smilie

Now, which of these two are telling the correct one?

Any ideas?
 
WINCACHE_UCACHE_MEMINFO(3)						 1						WINCACHE_UCACHE_MEMINFO(3)

wincache_ucache_meminfo - Retrieves information about user cache memory usage

SYNOPSIS
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)
All times are GMT -4. The time now is 05:17 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy