Created
June 4, 2012 06:52
-
-
Save imaginator/2866759 to your computer and use it in GitHub Desktop.
bc graphing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
simon@bunker:~$ sudo /etc/munin/plugins/memory config | |
graph_args --base 1024 -l 0 --upper-limit 2090217472 | |
graph_vlabel Bytes | |
graph_title Memory usage | |
graph_category system | |
graph_info This graph shows what the machine uses memory for. | |
graph_order apps page_tables swap_cache slab cached buffers free swap | |
apps.label apps | |
apps.draw AREA | |
apps.info Memory used by user-space applications. | |
buffers.label buffers | |
buffers.draw STACK | |
buffers.info Block device (e.g. harddisk) cache. Also where "dirty" blocks are stored until written. | |
swap.label swap | |
swap.draw STACK | |
swap.info Swap space used. | |
cached.label cache | |
cached.draw STACK | |
cached.info Parked file data (file content) cache. | |
free.label unused | |
free.draw STACK | |
free.info Wasted memory. Memory that is not used for anything at all. | |
slab.label slab_cache | |
slab.draw STACK | |
slab.info Memory used by the kernel (major users are caches like inode, dentry, etc). | |
swap_cache.label swap_cache | |
swap_cache.draw STACK | |
swap_cache.info A piece of memory that keeps track of pages that have been fetched from swap but not yet been modified. | |
page_tables.label page_tables | |
page_tables.draw STACK | |
page_tables.info Memory used to map between virtual and physical memory addresses. | |
vmalloc_used.label vmalloc_used | |
vmalloc_used.draw LINE2 | |
vmalloc_used.info 'VMalloc' (kernel) memory used | |
committed.label committed | |
committed.draw LINE2 | |
committed.info The amount of memory allocated to programs. Overcommitting is normal, but may indicate memory leaks. | |
mapped.label mapped | |
mapped.draw LINE2 | |
mapped.info All mmap()ed pages. | |
active.label active | |
active.draw LINE2 | |
active.info Memory recently used. Not reclaimed unless absolutely necessary. | |
inactive.label inactive | |
inactive.draw LINE2 | |
inactive.info Memory not currently used. | |
and output: | |
simon@bunker:~$ sudo /etc/munin/plugins/memory | |
slab.value 297000960 | |
swap_cache.value 10883072 | |
page_tables.value 14458880 | |
vmalloc_used.value 286642176 | |
apps.value 720510976 | |
free.value 111857664 | |
buffers.value 412196864 | |
cached.value 523309056 | |
swap.value 132268032 | |
committed.value 1463406592 | |
mapped.value 21512192 | |
active.value 933744640 | |
inactive.value 678764544 | |
With the contributors gist: | |
BC_PROJECT_buddycloud_server.value 6 | |
BC_PROJECT_channel_tool.value 1 | |
BC_PROJECT_android_client.value 1 | |
BC_PROJECT_iphone_client.value 1 | |
BC_PROJECT_symbian_client.value 0 | |
BC_PROJECT_location_butler.value 1 | |
BC_PROJECT_channels_xep.value 1 | |
BC_PROJECT_buddycloud_webclient.value 9 | |
BC_PROJECT_buddycloud_github_com.value 6 | |
BC_PROJECT_channel_directory.value 1 | |
BC_PROJECT_buddycloud_server_java.value 2 | |
BC_PROJECT_old_code_never_dies.value 1 | |
BC_PROJECT_buddycloud_server_python.value 1 | |
BC_PROJECT_bedtime.value 1 | |
BC_PROJECT_search.value 2 | |
BC_PROJECT_buddycloud_build.value 0 | |
BC_PROJECT_buddycloud_vm.value 1 | |
BC_PROJECT_buddycloud_diagrams.value 0 | |
BC_PROJECT_buddycloud_http_api.value 2 | |
BC_PROJECT_buddycloud_media_server.value 2 | |
BC_PROJECT_buddycloud_test_suite.value 1 | |
BC_PROJECT_bccc.value 1 | |
BC_PROJECT_ALL.value 18 | |
The above looks good (perhaps remove the total value | |
But the config output is missing: | |
*.draw STACK (we use stack on all but the bottom element which should be a LINE2) | |
*.info (can be the same value as the .label | |
graph_title Contributors per project | |
graph_args --base 1000 --lower-limit 0 | |
graph_vlabel Number of contributors | |
graph_category buddycloud contributors | |
graph_info Number of contributors for each buddycloud project | |
BC_PROJECT_ALL.label Total | |
BC_PROJECT_buddycloud_server.label Contributors for buddycloud-server | |
BC_PROJECT_channel_tool.label Contributors for channel-tool | |
BC_PROJECT_android_client.label Contributors for android-client | |
BC_PROJECT_iphone_client.label Contributors for iphone-client | |
BC_PROJECT_symbian_client.label Contributors for symbian-client | |
BC_PROJECT_location_butler.label Contributors for location-butler | |
BC_PROJECT_channels_xep.label Contributors for channels-xep | |
BC_PROJECT_buddycloud_webclient.label Contributors for buddycloud-webclient | |
BC_PROJECT_buddycloud_github_com.label Contributors for buddycloud.github.com | |
BC_PROJECT_channel_directory.label Contributors for channel-directory | |
BC_PROJECT_buddycloud_server_java.label Contributors for buddycloud-server-java | |
BC_PROJECT_old_code_never_dies.label Contributors for old-code-never-dies | |
BC_PROJECT_buddycloud_server_python.label Contributors for buddycloud-server-python | |
BC_PROJECT_bedtime.label Contributors for bedtime | |
BC_PROJECT_search.label Contributors for search | |
BC_PROJECT_buddycloud_build.label Contributors for buddycloud-build | |
BC_PROJECT_buddycloud_vm.label Contributors for buddycloud-vm | |
BC_PROJECT_buddycloud_diagrams.label Contributors for buddycloud-diagrams | |
BC_PROJECT_buddycloud_http_api.label Contributors for buddycloud-http-api | |
BC_PROJECT_buddycloud_media_server.label Contributors for buddycloud-media-server | |
BC_PROJECT_buddycloud_test_suite.label Contributors for buddycloud-test-suite | |
BC_PROJECT_bccc.label Contributors for bccc | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment