From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp35.i.mail.ru (smtp35.i.mail.ru [94.100.177.95]) by sourceware.org (Postfix) with ESMTPS id C0237385C325 for ; Fri, 10 Jun 2022 17:04:15 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org C0237385C325 Authentication-Results: sourceware.org; dmarc=pass (p=reject dis=none) header.from=mail.ru Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=mail.ru DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mail.ru; s=mail4; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:From:Subject:Content-Type:Content-Transfer-Encoding:To:Cc; bh=Hh0LUINdv5r263u/2F74gs2CPpca53dVmzQ6G2KHgX0=; t=1654880655;x=1655486055; b=o+/R7VzlLxXheVtR/hH5lwK3i8vzGwFZ6vCGFxfwoaQEhG4/kuJyBWwL2tx6bmaNdUPYFBKWtsRDw3BHS2vTOgoAGNTLVnJGb7G3wyb+XDsXQsORSKKoaNZ9iM877Ym4BfmmufNDB+Gxjw3QPYyasYp4hU1lzv/ElUpQQUnLn7Sn3GX7BagOMUcEHaD6Ns9YfDXxEu1IGS0psK2lmXLwsLMnUGkdoB2rRAtGGy386mQZn0QVe5THONdxIN7I9w1qATssYiJfbdCPKFRWc8A5waT872qTTBe2YEAfWlI9vpXeBG8RqMbJ9/7dm9D28tTuGHtQY38Mj4+KdPhdyrJ0QA==; Received: by smtp35.i.mail.ru with esmtpa (envelope-from ) id 1nzi3R-0001Uf-Nz; Fri, 10 Jun 2022 20:04:14 +0300 Subject: Re: Out of memory while building GCC 12.1.0 To: Segher Boessenkool , Paul Smith Cc: gcc-help References: <6af5f478-817e-ecdc-174f-cfd8dd6c0376@mail.ru> <996468e7556a34c30413aaa977e9f26688be8c93.camel@xry111.site> <5dc1d2854640baba900b3889bd0d75bea7187d54.camel@mad-scientist.net> <20220610155608.GS25951@gate.crashing.org> From: Fiodar Stryzhniou Message-ID: Date: Fri, 10 Jun 2022 20:04:13 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: <20220610155608.GS25951@gate.crashing.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Authentication-Results: smtp35.i.mail.ru; auth=pass smtp.auth=fedor_qd@mail.ru smtp.mailfrom=fedor_qd@mail.ru X-4EC0790: 10 X-7564579A: 78E4E2B564C1792B X-77F55803: 4F1203BC0FB41BD97D44297578DBEB86DB1F38E855E458E5207BA634EADC6428182A05F538085040726B42393ADC151F9F00F15522A3453C10739DDA5A3C468F211CFB81389B0F55 X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE742D9BD90C58D50E0EA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F7900637652CD06254D2F21C8638F802B75D45FF36EB9D2243A4F8B5A6FCA7DBDB1FC311F39EFFDF887939037866D6147AF826D88627D9D1802EB7801CFED6AB4AA84E656F9789CCF6C18C3F8528715B7D10C86878DA827A17800CE740D0B15A1445ACA99FA2833FD35BB23D9E625A9149C048EE33AC447995A7AD18C26CFBAC0749D213D2E47CDBA5A96583BD4B6F7A4D31EC0BC014FD901B82EE079FA2833FD35BB23D27C277FBC8AE2E8BF1175FABE1C0F9B6A471835C12D1D977C4224003CC836476EB9C4185024447017B076A6E789B0E975F5C1EE8F4F765FC0400EBBDD8258B7F3AA81AA40904B5D9CF19DD082D7633A078D18283394535A93AA81AA40904B5D98AA50765F7900637F8DB709AF5FDCF73D81D268191BDAD3D698AB9A7B718F8C4D1B931868CE1C5781A620F70A64A45A98AA50765F79006372E808ACE2090B5E1725E5C173C3A84C3C5EA940A35A165FF2DBA43225CD8A89FB26E97DCB74E625242539A7722CA490CB5C8C57E37DE458BEDA766A37F9254B7 X-8FC586DF: 6EFBBC1D9D64D975 X-C1DE0DAB: 0D63561A33F958A54379ED61BB2CDC60EE900A354D78510D5B7A5D84A3E2892CD59269BC5F550898D99A6476B3ADF6B4886A5961035A09600383DAD389E261318FB05168BE4CE3AF X-C8649E89: 4E36BF7865823D7055A7F0CF078B5EC49A30900B95165D34D8C933888226C841FCD23C9D211CC251CFA3CFC283DD7CD5A19CE2F12AB7E9C8EBE7B3A18A7918291D7E09C32AA3244C24879FC9846A80275A957FE456FE72CB8580396430872480FACE5A9C96DEB163 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2bioj/W+skaHQI8MlWF3Obi489w== X-Mailru-Sender: B5420D632883B294CF6673AD81AF0FB6A8B99561F18E0446B6FF126E70712A89E2527C969975515C2B4E3A9B39D17ED8FB559BB5D741EB9638645ACA06CB6E346F53C80213D1719C67EA787935ED9F1B X-Mras: Ok X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, BODY_8BITS, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, KAM_NUMSUBJECT, NICE_REPLY_A, RCVD_IN_DNSWL_LOW, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-help@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-help mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Jun 2022 17:04:18 -0000 6/10/22 у 6:56 PM Segher Boessenkool напісаў: > On Fri, Jun 10, 2022 at 10:42:03AM -0400, Paul Smith wrote: >> On Fri, 2022-06-10 at 15:29 +0300, Fiodar Stryzhniou wrote: >>> Looks like you right. Harcoded to -j6 helps. >> >> Another way to go is to add the "-l" option. This is often combined >> with "-j" (no limit) to have your build limited by load rather than by >> job count. >> >> So if you want the load on your system to be no greater than 2, you can >> say "-j -l2". > > The load average is only computed every 5s, so if you have a faster > machine it can bring your system to its knees in that time already, by > starting thousands of tasks. > > Since maximum acceptable loadavg is very system specific as well, you > can just always use -j instead, or -j -l. Just never use -j > without number after it :-) > > > Segher > I read make --help before use =) Reading is always good. I build binutils and gcc many times with that script. Error comes from oldest and stable part in my script. I'm confused. -- Fiodar Stryzhniou