Re: Say that it was Linux that printed "Out of memory"

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

 



On Sun, Nov 26, 2023 at 08:48:50AM +0000, Greg KH wrote:
> On Sun, Nov 26, 2023 at 10:40:36AM +0800, Dan Jacobson wrote:
> > In https://github.com/szabgab/perlmaven.com/issues/583 we see to find the
> > simple answer to "What printed 'Out of memory', one must consult the
> > experts.
> > 
> > Therefore the "Out of memory" message needs to be prefixed with the name of
> > the kernel, or something. Anything. Thanks.
> 
> Prefixed exactly where?  The kernel already does report all of this to
> the kernel log, saying what program was killed due to out of memory
> issues.

>From what I can see on the original article featuring a simple perl
script at https://perlmaven.com/out-of-memory it says "on the terminal".
As such, it's just the perl interpreter that faced ENOMEM and printed
the corresponding message before quitting. One will note that there is
absolutely no capture provided in the article nor the reporter to ease
understanding, but as a rule of thumb the kernel will not print stuff
in the user's terminal, it will only appear in logs where it's indeed
prefixed. And no need for an "expert" to figure that ;-)

Willy




[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux