Hacker News new | past | comments | ask | show | jobs | submit login
Free vs. Available Memory in Linux (haydenjames.io)
7 points by ashitlerferad on Sept 8, 2021 | hide | past | favorite | 3 comments



Hi, Q: On recent linux, if free mem is 1GB and available mem is 10GB and swap free is 2GB and at that moment a program calls calloc(4GB), would you expect the calloc() return ok or fail ? thx, -m


quote: "this number should *almost always* be small". "case by case" basis. What use case have you have this 4GB calloc requirement?


Hi, I think I'm agreeing with the OP, or perhaps with other past posts from OP, that with more swap free the calloc(4GB) should be ok. If available mem is clean bufpages would those be let go to make room for the calloc ?




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: