From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: To: ALT Linux Team development discussions , Alexey Gladkov References: <201711142357.02155.asy@altlinux.org> <37fdf638-6bcc-d254-cde4-ae5165564fb3@basealt.ru> <561f0447-9d42-d2dc-186c-e1e4d2275152@gmail.com> <9865a696-73b1-b0c9-1c19-0f7b49916c45@basealt.ru> <9e06a35f-1e5f-effa-c07b-33f27c6de031@altlinux.org> <20171116113210.GA4474@comp-core-i7-2640m-0182e6> From: Anton Farygin Organization: BaseALT Message-ID: <225b1cdc-0e0b-770b-4927-12432530b33c@basealt.ru> Date: Thu, 16 Nov 2017 14:34:21 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <20171116113210.GA4474@comp-core-i7-2640m-0182e6> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Subject: Re: [devel] =?utf-8?b?0J7RgtC60LvRjtGH0LXQvdC40LUgc3dhcA==?= X-BeenThere: devel@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: ALT Linux Team development discussions List-Id: ALT Linux Team development discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Nov 2017 11:34:22 -0000 Archived-At: List-Archive: List-Post: 16.11.2017 14:32, Alexey Gladkov пишет: > 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. > Более того - при overcommit даже swap не особо помогает.