Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Dirty pages in /proc/meminfo

Options
  • 04-11-2015 5:16pm
    #1
    Registered Users Posts: 37


    A RedHat system has dirty pages in /proc/meminfo.
    Is it possible that there could be data loss if the system crashes? Is it possible to prevent this?
    Can we tell what would be lost exactly and is it possible to repair it?


Comments

  • Registered Users Posts: 20,172 ✭✭✭✭jimgoose


    Holding dirty pages in core is always going to be a risky business. In a kernel panic, it's gone and there isn't much you can do about it. How much dirty stuff is showing? I suggest tuning /proc/sys/vm/dirty_ratio, /proc/sys/vm/dirty_expire_centisecs and /proc/sys/vm/dirty_writeback_centisecs to minimise the amount held, and thus the potential exposure.

    I don't think it's possible to inspect the Unix/Linux filesystem caches from userland. The best you can do is, if you're wondering about a particular file, mmap() it and find out if the pages are already resident using mincore().


Advertisement