LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

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

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


Hello,
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?

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

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


Reply


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


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 09:13 PM.

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