tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: killed: out of swap



On 2022-06-15 18:41, Mouse wrote:
By the way.  This obviously does not at all solve the problem that
the OP had.  He was writing code with the expectation that malloc()
should fail.  [...]  A killed process won't make the OP happy, even
if it was his own program/process.

I'm not sure that last sentence is true.  As I read it, the reaction to
malloc failing would have been that we've put as much pressure on as we
can, so it's time to exit.  If so, killing that process is a reasonable
reaction - and that's what my proposed approaches were based on.
Perhaps my understanding is wrong, in which case not much will help
except no overcommit.

I might have misunderstood the purpose. I thought there was a desire to stress things a bit once you get to the memory full state to see how things were behaving.

So you might be absolutely right.

  Johnny

--
Johnny Billquist                  || "I'm on a bus
                                  ||  on a psychedelic trip
email: bqt%softjar.se@localhost             ||  Reading murder books
pdp is alive!                     ||  tryin' to stay hip" - B. Idol


Home | Main Index | Thread Index | Old Index