Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
memory counter tool?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
axl
Veteran
Veteran


Joined: 11 Oct 2002
Posts: 1144
Location: Romania

PostPosted: Tue May 02, 2017 7:19 pm    Post subject: memory counter tool? Reply with quote

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
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6920

PostPosted: Tue May 02, 2017 7:51 pm    Post subject: Reply with quote

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
View user's profile Send private message
Naib
Watchman
Watchman


Joined: 21 May 2004
Posts: 6051
Location: Removed by Neddy

PostPosted: Tue May 02, 2017 8:02 pm    Post subject: Reply with quote

not only that but... to monitor resource utilisation from within takes ... resources.
_________________
Quote:
Removed by Chiitoo
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum