On 01/18/2017 03:36 PM, Christopher Myers wrote:
Weird...what does free say? Just curious because we've got a fileserver with 64GB of memory, and it'll use maybe 1-2GB for actual applications, and then turn the rest of it into cache.
Well, lets face it, the original UNIX was designed for short-lived small programs, in sharp contrast to the mainframes of the day that ran huge, long lived monolithic programs that did everything all in one such as CICS The 'each thing does one thing and only one thing" ... and then disappears .. was the attitude that differentiated UNIX back then. Well, OK the shell (of that day) was logn lived, but it was basically a dispatcher and was much, much smaller than our current BASH. A file server, not least of all a "black box" NAS, isn't running an application suite as is a desktop. It isn't exactly running the huge monolithic CICS, but there isn't the 'churn' in the code space. Perhaps the turnover ion the file management in the kernel and the buffer space counts for something, but how much of NFS is in user space and how much in the kernel?
With that said -- my server at home routinely "runs out of memory" after a few months of uptime, even though it has plenty of memory free. I've always wondered if it maybe has issues with memory fragmentation or something like that(?)
Basically, Linux discovers all memory and tries to use it. I'm not sure that running a cache application in user space helps with memory management. I *do* know that the VM system is highly tunable and that out-of-the-box linux is tuned for the desktop. Somehow you need to tell it to use more space in the kernel. I'm not sure what you mean by "turning the rest of it into cache" without some more specifics. is that a cache application? *HOW* are you "turning it" into cache? https://lonesysadmin.net/2013/12/22/better-linux-disk-caching-performance-vm... -- A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting frowned upon? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org