Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!weretis.net!feeder1.news.weretis.net!feeder4.news.weretis.net!storethat.news.telefonica.de!telefonica.de!news.panservice.it!feed.xsnews.nl!border02.ams.xsnews.nl!feeder04.ams.xsnews.nl!abp001.ams.xsnews.nl!frontend-F09-06.ams.news.kpn.nl From: Cecil Westerhof Newsgroups: comp.lang.python Subject: Re: Python is not bad ;-) Organization: Decebal Computing References: <87mw1q9jqw.fsf@Equus.decebal.nl> X-Face: "(y8cC@tg_12{">GF'UXTW]FHI2wMiZNrnf'1EFQ&O#$m:f#O7+7}kR,v+Pti8=Vi/Z"g^?b"E X-Homepage: http://www.decebal.nl/ Date: Thu, 30 Apr 2015 18:11:44 +0200 Message-ID: <87d22lvbnj.fsf@Equus.decebal.nl> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:uxVRd7nzm6mcp2gudA9/EFq0Zag= MIME-Version: 1.0 Content-Type: text/plain Lines: 26 NNTP-Posting-Host: 81.207.62.244 X-Trace: 1430411332 news.kpn.nl 20452 81.207.62.244@kpn/81.207.62.244:39527 Xref: csiph.com comp.lang.python:89639 Op Thursday 30 Apr 2015 16:03 CEST schreef Michael Torrie: > On 04/30/2015 01:07 AM, Cecil Westerhof wrote: >> When I do that the computer is freezed a few times. That is a >> little less nice. Does not happen with Clojure when it gets an out >> of memory. > > A system freeze is probably due to thrashing by your operating > system as a process (in this case Python) uses more and more memory, > causing massive swapping. Clojure's heap, being a JVM-based > language, is based on JVM settings, so it may be maxing out at just > a couple of GB. Whereas Python will happily max out your swap if > your program demands the memory. I just posted a message about that. This gets the problem also: l = range(int(1E9)) The problem is that after this other processes are swapped out and have a bad performance. There is nothing that can be done about it? So there is a positive point for working with the JVM. :-D -- Cecil Westerhof Senior Software Engineer LinkedIn: http://www.linkedin.com/in/cecilwesterhof