A discussion between database and kernel developers
A discussion between database and kernel developers
Posted Mar 11, 2014 9:02 UTC (Tue) by mel (guest, #5484)In reply to: A discussion between database and kernel developers by fest3er
Parent article: A discussion between database and kernel developers
> store? Or are such files really pseudo-temporary?
If the size of a temporary file is a large percentage of physical RAM or exceeds physical RAM then it gets pushed to swap so no, it doesn't really work.
> Can a balance be found between RAM size and DB size (and activity) that
> would minimize memory pressure while allowing Linux to manage dirty page
> handling efficiently in the background?
This balance is already maintained but it's not the full story. If data writes to disk have to be strictly ordered for data consistency reasons then it may still be necessary to complete a large amount of writeback before the system can make forward progress. The kernel currently tracks the amount of dirty data that is in the system but not how long it takes to write it.
