View previous topic :: View next topic |
Author |
Message |
axl Veteran
Joined: 11 Oct 2002 Posts: 1144 Location: Romania
|
Posted: Tue May 02, 2017 7:19 pm Post subject: memory counter tool? |
|
|
hi folks.
i was just wondering. this must be something so trivial that is perhaps it's a stupid question.
there's all sorts of counters in /proc to figure out how many cycles of cpu were spent where and when, disk stats and mem stats and all sorts of stats.
it there any memory counter? how much ram was used since boot. how many times was it read. maybe which sectors(?). how many times had it been written.
i imagine it would be a memory stick stat. does it exist for ram?
again, not for how much you are using at any given time, but a counter which show how much you read or written since the boot. is that even possible? |
|
Back to top |
|
|
Ant P. Watchman
Joined: 18 Apr 2009 Posts: 6920
|
Posted: Tue May 02, 2017 7:51 pm Post subject: |
|
|
Code: | grep VmallocTotal /proc/meminfo |
is the closest you will get. Trying to count the exact number of bytes read/written would be an insane overhead. |
|
Back to top |
|
|
Naib Watchman
Joined: 21 May 2004 Posts: 6051 Location: Removed by Neddy
|
Posted: Tue May 02, 2017 8:02 pm Post subject: |
|
|
not only that but... to monitor resource utilisation from within takes ... resources. _________________
Quote: | Removed by Chiitoo |
|
|
Back to top |
|
|
|