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_OCACHE_MEMINFO(3)						 1						WINCACHE_OCACHE_MEMINFO(3)

wincache_ocache_meminfo - Retrieves information about opcode cache memory usage

SYNOPSIS
array wincache_ocache_meminfo (void ) DESCRIPTION
Retrieves information about memory usage by opcode cache. RETURN VALUES
Array of meta data about opcode 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 opcode cache o memory_free - amount of free memory in bytes available for the opcode cache o num_used_blks - number of memory blocks used by the opcode cache o num_free_blks - number of free memory blocks available for the opcode cache o memory_overhead - amount of memory in bytes used for the opcode cache internal structures EXAMPLES
Example #1 A wincache_ocache_meminfo(3) example <pre> <?php print_r(wincache_ocache_meminfo()); ?> </pre> The above example will output: Array ( [memory_total] => 134217728 [memory_free] => 112106972 [num_used_blks] => 15469 [num_free_blks] => 4 [memory_overhead] => 247600 ) 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_meminfo(3), wincache_ucache_info(3), wincache_scache_info(3), wincache_scache_mem- info(3). PHP Documentation Group WINCACHE_OCACHE_MEMINFO(3)
All times are GMT -4. The time now is 01:51 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy