Visit the LQ Articles and Editorials section
Go Back > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Linux - Kernel This forum is for all discussion relating to the Linux kernel.


LinkBack Search this Thread
Old 01-16-2012, 06:31 AM   #1
LQ Newbie
Registered: Nov 2010
Posts: 7

Rep: Reputation: 0
Get number of dirty pages of memory-mapped file via syscall

I have a memory-mapped file and I'd like to know the number of unsynced (dirty) pages. Is there any system call to find this out or do I have to open and read /proc/pid/smaps?

Old 01-16-2012, 11:14 AM   #2
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 5,051

Rep: Reputation: 953Reputation: 953Reputation: 953Reputation: 953Reputation: 953Reputation: 953Reputation: 953Reputation: 953
You can't reliably obtain that information because "any attempt to do so will change the experiment."


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
memory mapped i/o and i/o mapped i/o shilpa rangappa General 1 12-14-2009 10:27 PM
Network device Memory mapped or Port mapped ?? Bignon Linux - Hardware 0 10-20-2009 08:36 AM
How can I know total number of pages in a postscript file? chainik Linux - Software 2 04-19-2007 04:03 AM
how to count the fault pages and the mapped pages riquelme Programming 0 05-20-2004 10:16 PM
Memory Mapped file IO problems legogt Programming 0 08-01-2003 01:52 PM

All times are GMT -5. The time now is 02:06 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration