ramfs maximum disk size
Just a drive-by thought, but wanted to discuss with @4lDO2. Should ramfs support a configuration option for maximum memory usage? Theoretically there is currently no upper bound for capacity. I think we should consider setting a limit for any ram filesystem and return ENOSPC once the limit is encountered. Thoughts?
Let's set a limit on maximum memory usage by the ramfs device to prevent memory pressure on the system. When the device reaches the upper bound, return ENOSPC
. While a first pass may implement this globally, eventually we want to track usage per user to prevent any single user from using all memory backed storage