[email protected] wrote:
question: why is HAMMER using so much memory, causing applications like
postgres to use swap (and thus run slow).
this response isn't at all hammer related.. but in any case:
Still a bit fuzzy on some the related issues that might be at play here,
but as I understand it, the postgres data cache uses as much shared
memory as it 'wants' (e.g. up to max configured) to hold the database
data - so if this machine was up for a long time, potentially the entire
database data set is in memory -
and if the data set isn't used very often, it might get swapped out by
something else running or just from inactivity ..
If you want to keep this from happening, you can set:
kern.ipc.shm_use_phys=1
in /boot/loader.conf