Path: ...!2.eu.feeder.erje.net!feeder.erje.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Lawrence D'Oliveiro Newsgroups: comp.lang.c Subject: Re: realloc() - frequency, conditions, or experiences about relocation? Date: Wed, 26 Jun 2024 00:51:40 -0000 (UTC) Organization: A noiseless patient Spider Lines: 13 Message-ID: References: <875xtyu0kk.fsf@nosuchdomain.example.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Wed, 26 Jun 2024 02:51:41 +0200 (CEST) Injection-Info: dont-email.me; posting-host="d3e70b79bcb23d33c66caba9f2139d60"; logging-data="1899522"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+yUG/VcmNmHM9rO2SW1g6c" User-Agent: Pan/0.158 (Avdiivka; ) Cancel-Lock: sha1:qg+wQsWOr8RTGA5tuj/oex0j+8A= Bytes: 1875 On Tue, 25 Jun 2024 10:38:28 +0200, Bonita Montero wrote: > Am 25.06.2024 um 09:06 schrieb Lawrence D'Oliveiro: > >> I wrote a memory-hog app for Android once, and found that allocating >> large amounts of memory space had very little impact on the system. >> Then when I added code to actually write data into those allocated >> pages, that’s when it really started to break into a sweat ... > > Then android is also doing overcommit. It is running a Linux kernel, and that tends to be the default setup in Linux.