From: Alexey Gladkov <legion@altlinux.ru>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] Отключение swap
Date: Thu, 16 Nov 2017 12:32:10 +0100
Message-ID: <20171116113210.GA4474@comp-core-i7-2640m-0182e6> (raw)
In-Reply-To: <9e06a35f-1e5f-effa-c07b-33f27c6de031@altlinux.org>
On Thu, Nov 16, 2017 at 02:15:13PM +0300, Paul Wolneykien wrote:
> 16.11.2017 07:29, Anton Farygin пишет:
> >
> > От swap тоже было бы неплохо избавиться - если ОЗУ более чем достаточно
>
> А подскажите, пожалуйста, как именно это сделать? В /etc/fstab swap
> раздел закомментирован. `free -m` показывает "Swap: 0 0 0". Я
> рассчитывал, что после этого, тот же firefox, при нехватке памяти на
> очередную вкладку, будет закрываться быстро и "молча".
Вы надеетесь на сегфолт ?
Кстати, у нас везде же по умолчанию overcommit memory.
malloc(3):
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. In case it turns out that the system is out of
memory, one or more processes will be killed by the OOM killer. For more
information, see the description of /proc/sys/vm/overcommit_memory and
/proc/sys/vm/oom_adj in proc(5), and the Linux kernel source file
Documentation/vm/overcommit-accounting.
--
Rgrds, legion
next prev parent reply other threads:[~2017-11-16 11:32 UTC|newest]
Thread overview: 59+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-14 19:57 [devel] fsck, большие разделы и swap Sergey Y. Afonin
2017-11-15 18:17 ` Vladimir D. Seleznev
2017-11-15 20:03 ` Leonid Krivoshein
2017-11-16 7:57 ` Sergey Afonin
2017-11-16 8:02 ` Sergey Afonin
2017-11-16 11:23 ` Igor Zubkov
2017-11-16 11:34 ` Anton Farygin
2017-11-16 22:25 ` Leonid Krivoshein
2017-11-17 5:24 ` Sergey Afonin
2017-11-16 8:00 ` Sergey Afonin
2017-11-15 20:05 ` Alexey V. Vissarionov
2017-11-15 20:07 ` Anton Farygin
2017-11-15 20:18 ` Leonid Krivoshein
2017-11-15 20:24 ` Anton Farygin
2017-11-15 21:26 ` Leonid Krivoshein
2017-11-16 4:29 ` Anton Farygin
2017-11-16 7:11 ` Leonid Krivoshein
2017-11-16 7:14 ` Anton Farygin
2017-11-16 21:27 ` Leonid Krivoshein
2017-11-17 4:07 ` Anton Farygin
2017-11-17 7:51 ` Leonid Krivoshein
2017-11-17 8:03 ` Anton Farygin
2017-11-17 20:54 ` Leonid Krivoshein
2017-11-18 5:18 ` Anton Farygin
2017-11-17 4:10 ` Anton Farygin
2017-11-16 10:33 ` Alexey V. Vissarionov
2017-11-16 11:02 ` Sergey Afonin
2017-11-16 22:03 ` Leonid Krivoshein
2017-11-17 5:43 ` Sergey Afonin
2017-11-17 21:03 ` Leonid Krivoshein
2017-11-16 23:17 ` Leonid Krivoshein
2017-11-17 8:52 ` Alexey V. Vissarionov
2017-11-17 11:29 ` Sergey Afonin
2017-11-17 11:41 ` Dmitry V. Levin
2017-11-17 11:44 ` Anton Farygin
2017-11-17 11:56 ` Dmitry V. Levin
2017-11-17 12:47 ` Sergey Afonin
2017-11-19 15:27 ` Alexey V. Vissarionov
2017-11-16 11:06 ` [devel] swap < mem Dmitry V. Levin
2017-11-16 11:07 ` Anton Farygin
2017-11-16 12:14 ` [devel] swap < mem [JT] Vitaly Lipatov
2017-11-16 12:21 ` Paul Wolneykien
2017-11-16 16:52 ` Vladimir D. Seleznev
2017-11-16 12:37 ` Anton Farygin
2017-11-16 11:15 ` [devel] Отключение swap Paul Wolneykien
2017-11-16 11:19 ` Anton Farygin
2017-11-16 11:32 ` Alexey Gladkov [this message]
2017-11-16 11:34 ` Anton Farygin
2017-11-16 11:57 ` Paul Wolneykien
2017-11-16 11:58 ` Paul Wolneykien
2017-11-16 12:38 ` Anton Farygin
2017-11-16 12:45 ` Vitaly Lipatov
2017-11-16 13:01 ` [devel] control for overcommit memory (was: Re: Отключение swap) Alexey Gladkov
2017-11-16 13:06 ` [devel] control for overcommit memory Paul Wolneykien
2017-11-16 13:42 ` Anton Farygin
2017-11-16 13:55 ` Paul Wolneykien
2017-11-16 15:37 ` [devel] fsck, большие разделы и swap Mikhail Efremov
2017-11-16 16:00 ` Anton Farygin
2017-11-16 8:08 ` Sergey Afonin
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=20171116113210.GA4474@comp-core-i7-2640m-0182e6 \
--to=legion@altlinux.ru \
--cc=devel@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 Team development discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel/0 devel/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 devel devel/ http://lore.altlinux.org/devel \
devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
public-inbox-index devel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git