From: "Dmitry V. Levin" <ldv@altlinux.org>
To: ALT Linux Sisyphus discussion list <sisyphus@lists.altlinux.org>
Subject: Re: [sisyphus] malloc behaviour
Date: Mon, 27 Nov 2006 01:51:01 +0300
Message-ID: <20061126225101.GC23346@basalt.office.altlinux.org> (raw)
In-Reply-To: <20061126222246.GN31525@osdn.org.ua>
[-- Attachment #1: Type: text/plain, Size: 555 bytes --]
On Mon, Nov 27, 2006 at 12:22:46AM +0200, Michael Shigorin wrote:
[...]
> Да я как-то вообще пока не понял смысла проверять возврат malloc
> при включенном штатно в ядре overcommit, хотя недавно тема опять
> пробегала.
Миша, тебе кто-то заморочил голову. В современной системе есть несколько
совершенно реальных причин, которые могут привести к memory allocation
failure, так что vm.overcommit_memory (который по умолчанию установлен в
0, т.е. "heuristic overcommit handling") не даёт права не проверять код
возврата malloc(3).
--
ldv
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2006-11-26 22:51 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-26 19:43 [sisyphus] dist-upgrade from 3.0 log [attn: ldv] Michael Shigorin
2006-11-26 19:52 ` Valery V. Inozemtsev
2006-11-26 20:05 ` Damir Shayhutdinov
2006-11-26 21:35 ` Michael Shigorin
2006-11-26 22:00 ` Sergey
2006-11-27 9:53 ` Sergey Vlasov
2006-11-27 10:05 ` Michael Shigorin
2006-11-26 22:23 ` Slava Semushin
2006-11-26 22:22 ` Michael Shigorin
2006-11-26 22:37 ` Slava Semushin
2006-11-26 22:45 ` Slava Semushin
2006-11-26 22:51 ` Dmitry V. Levin [this message]
2006-11-27 9:20 ` [sisyphus] [JT] Re: malloc behaviour Michael Shigorin
2006-11-26 22:44 ` [sisyphus] " Dmitry V. Levin
2006-11-27 15:30 ` [sisyphus] dist-upgrade from 3.0 log [attn: ldv] Igor Zubkov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20061126225101.GC23346@basalt.office.altlinux.org \
--to=ldv@altlinux.org \
--cc=sisyphus@lists.altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Sisyphus discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
public-inbox-index sisyphus
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sisyphus
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git