LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-18-2012, 04:29 AM   #1
Martinus2u
Member
 
Registered: Apr 2010
Distribution: Slackware
Posts: 497

Rep: Reputation: 119Reputation: 119
Suspend-to-RAM and dirty page cache


Hi,

in a nutshell: I sometimes find dirty pages in the output of /proc/meminfo immediately after resuming. That bothers me. Because if theses pages were left dirty during the suspended period, a powercut may lead to file system inconsistencies and what not.

Question: is there reason for concern, or have these dirty pages been created after the resume event?

Details: Slackware current, XFCE4 with cairo dock, no swap device. Even an explicit sync and sleep before the suspend action seems not to change the observation of dirty pages. Currently the suspend action is triggered by the following script:

Code:
#!/bin/bash
aplay /usr/share/sounds/purple/logout.wav &
sync
sleep 5
xfce4-session-logout --suspend
 
Old 03-18-2012, 05:07 AM   #2
Martinus2u
Member
 
Registered: Apr 2010
Distribution: Slackware
Posts: 497

Original Poster
Rep: Reputation: 119Reputation: 119
Update: when monitoring the dirty pages via
Code:
while sleep 0 ; do cat /proc/meminfo | grep Dirty ; done
it appears that the machine indeed wakes up with 0 dirty pages but then immediately starts building them up. So probably all is well.
 
  


Reply



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
Difference between page cache and buffer cache Nayaka Linux - Kernel 5 09-28-2011 08:23 AM
[VPS] 4 load page = 100 MB RAM loaded? do i need 100x 400 mb ram for next 400 page? vaporizel Linux - Server 1 03-14-2011 08:40 PM
my dirty hack for suspend/hibernate at kdm login screen Old_Fogie Slackware 5 01-07-2010 09:14 AM
Plz explain Suspend to Disk and Suspend to Ram pkhera_2001 Linux - Newbie 2 02-18-2008 07:23 AM
Ram wiht suse, cache Disk cache??? fadelhomsi Linux - Newbie 2 02-05-2006 11:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:31 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration