On 12/01/2020 11:43, jdd@dodin.org wrote:
Le 12/01/2020 à 17:15, Anton Aylward a écrit : (...)
that is what the 'working set' is all about.
interesting, but not the question I try to understand
somebody said "when memory leaks, the system crashes".
is this true (*crash*)?
Yes, no, maybe. A memory leak is when an application repeatedly malloc()s space and doesn't return it. It's a green consumer. If it is a long lived process then perhaps it last long enough to consume prodigious amounts of memory leading to the crash. Perhaps its a short lived process and dies before that happens. Perhaps it's a only associated with a user being logged in (FF with a leaky plug-in, perhaps) and MAYBE the user logs out before the crash happens. MAYBE.
is it different with swap? (given the same total amount of memory)?
The malloc()'d data counts as volatile so it's going to be eligible for paging out to swap. -- 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