🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.os.linux.programowanie
Article #60357

Re: Testowanie ekstremalne - jak wywołać np. brak pamieci?

#60357
From: pisz_na.mirek
Date: Mon, 07 Nov 2005 23:05
22 lines
2117 bytes
Uzytkownik <uzytkownik2@poczta.onet.pl> wrote:
> On Sun, 06 Nov 2005 17:57:00 +0000, pisz_na.mirek wrote:
>> 
>> Linux przydziela więcej niż ma :)
> 
> Słyszałem to tylko przy pamięci współdzielonej pomiędzy 2 procesami
> i niesławna "licencja na zabijanie".

Nie tylko: man malloc:

       By  default,  Linux  follows  an optimistic memory allocation
       strategy.  This means that when malloc() returns non-NULL there is no
       guarantee that the memory really is available. This is a really bad
       bug.  In case it turns out that the system is out of memory, one or
       more processes will be killed by the infamous OOM killer.  In case
       Linux is employed under circumstances where it would be less
       desirable to suddenly lose some randomly picked processes, and
       moreover the kernel version is suf- ficiently recent, one can switch
       off this overcommitting behavior using a command like
              # echo 2 > /proc/sys/vm/overcommit_memory
       See  also  the  kernel  Documentation  directory,  files
       vm/overcommit- accounting and sysctl/vm.txt.
Technical Details
Message-ID: <dkomjr$61v$4@panorama.wcss.wroc.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!newsfeed.pionier.net.pl!pwr.wroc.pl!panorama.wcss.wroc.pl!not-for-mail
References: <pan.2005.11.06.17.21.06.581518@poczta.onet.pl> <dklg5c$ri4$1@panorama.wcss.wroc.pl> <pan.2005.11.06.18.35.45.205602@poczta.onet.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!newsfeed.pionier.net.pl!pwr.wroc.pl!panorama.wcss.wroc.pl!not-for-mail
From: pisz_na.mirek@dionizos.zind.ikem.pwr.wroc.pl
Newsgroups: pl.comp.os.linux.programowanie
Subject: Re: Testowanie ekstremalne - jak wywołać np.
 brak pamieci?
Date: Mon, 7 Nov 2005 23:05:31 +0000 (UTC)
Organization: WUT
Lines: 22
Message-ID: <dkomjr$61v$4@panorama.wcss.wroc.pl>
References: <pan.2005.11.06.17.21.06.581518@poczta.onet.pl> <dklg5c$ri4$1@panorama.wcss.wroc.pl> <pan.2005.11.06.18.35.45.205602@poczta.onet.pl>
NNTP-Posting-Host: infrared.zind.ikem.pwr.wroc.pl
Mime-Version: 1.0
X-Trace: panorama.wcss.wroc.pl 1131404731 6207 156.17.14.223 (7 Nov 2005 23:05:31 GMT)
X-Complaints-To: abuse@news.pwr.wroc.pl
NNTP-Posting-Date: Mon, 7 Nov 2005 23:05:31 +0000 (UTC)
User-Agent: tin/1.7.8-20050315 ("Scalpay") (UNIX) (Linux/2.4.26 (i686))
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit