From owner-freebsd-current@freebsd.org Tue Mar 3 09:40:58 2020 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 0AFDF269739 for ; Tue, 3 Mar 2020 09:40:58 +0000 (UTC) (envelope-from ypankov@fastmail.com) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 48WsT54bv2z46wt for ; Tue, 3 Mar 2020 09:40:57 +0000 (UTC) (envelope-from ypankov@fastmail.com) Received: by mailman.nyi.freebsd.org (Postfix) id 8F52B269738; Tue, 3 Mar 2020 09:40:57 +0000 (UTC) Delivered-To: current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 8DBBB269737 for ; Tue, 3 Mar 2020 09:40:57 +0000 (UTC) (envelope-from ypankov@fastmail.com) Received: from wnew2-smtp.messagingengine.com (wnew2-smtp.messagingengine.com [64.147.123.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 48WsT42v1Tz46th for ; Tue, 3 Mar 2020 09:40:56 +0000 (UTC) (envelope-from ypankov@fastmail.com) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailnew.west.internal (Postfix) with ESMTP id 9CF888FC for ; Tue, 3 Mar 2020 04:40:53 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Tue, 03 Mar 2020 04:40:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= subject:from:to:references:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm2; bh=3 Ruegmu4uEe6y2aXlipf+p4JUCxIUJtHUFVVB1eiOEE=; b=xBM52qweYbwKO8pE0 0QG3J3+cxtFcacc1Flsw2tJndm2dgJuB+VPH+1bSizDsip00Dmr873dDki1QK5IA bmMCnpeMizL44rUNF9i8grv/2TJABzt7gWb19sCyKoHBVEFcin/Y9FLAu0PMw3Jx Cl6RECfvkjoAcOL1CPlwKuZLWWU55j+9J8LWT2QUkySd2Lh1McAzUqx40Zp3A0hj u9UAZHkJCGlcwgPdv+MgYr9btQmSphtmsBO/JUivT78M1ptOwTM7Wkn1wkNRK84i piyCY97YTRuJ9wpxfI4iCcX7OYLa6LSsnmpA4MTeMQ8TgYkcf3gt3DoukL/mxVr2 YxH4g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=3Ruegmu4uEe6y2aXlipf+p4JUCxIUJtHUFVVB1eiO EE=; b=Y9AUNpg1+N3pwt7bavk1iY7/lpQI8oH6BduNO9zKBcpwRh4/IjaMPWHfK 6IPFmIiOJoxRRKKb7vjOPYGfnV7/OAncq51BKJkJpxPk27r6GcO1plZ0k2AUKYlj 5EcECqhY6M+db+vwvFJpS0h7Mj4z3N9XtxxRhKS9SkOnV6r6dGo2nDoPhqB4Cc+e BD06Kv61/j9RHKAJ9aAkjjgKF3AMrJl5EPrE1g4Y4Ano/uc4U4hGOZFGfiQcpu6j Yoxt7JHfxsFOZq1wgFnFC5KGT0n+oVGmfp8Lfp518fvBSMM+51mtCZnj2EAjZl/I 7/I+lX3GTc1qozN/9WNJNmzRvM+Og== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedruddtiedgtdejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefuhffvfhfkffgfgggjtgfgsehtje ertddtfeejnecuhfhrohhmpegjuhhrihcurfgrnhhkohhvuceohihprghnkhhovhesfhgr shhtmhgrihhlrdgtohhmqeenucfkphepkeehrddujeefrddvuddrudenucevlhhushhtvg hrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpeihphgrnhhkohhvsehfrghs thhmrghilhdrtghomh X-ME-Proxy: Received: from earth.local (unknown [85.173.21.1]) by mail.messagingengine.com (Postfix) with ESMTPA id 8CB753061393 for ; Tue, 3 Mar 2020 04:40:52 -0500 (EST) Subject: Re: can't build rust -- out of swap space From: Yuri Pankov To: current@freebsd.org References: Message-ID: Date: Tue, 3 Mar 2020 12:40:50 +0300 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 48WsT42v1Tz46th X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=fastmail.com header.s=fm2 header.b=xBM52qwe; dkim=pass header.d=messagingengine.com header.s=fm2 header.b=Y9AUNpg1; dmarc=pass (policy=none) header.from=fastmail.com; spf=pass (mx1.freebsd.org: domain of ypankov@fastmail.com designates 64.147.123.27 as permitted sender) smtp.mailfrom=ypankov@fastmail.com X-Spamd-Result: default: False [-3.10 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:64.147.123.27:c]; FREEMAIL_FROM(0.00)[fastmail.com]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[4]; DKIM_TRACE(0.00)[fastmail.com:+,messagingengine.com:+]; DMARC_POLICY_ALLOW(-0.50)[fastmail.com,none]; RECEIVED_SPAMHAUS_PBL(0.00)[1.21.173.85.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.11]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[fastmail.com]; ASN(0.00)[asn:11403, ipnet:64.147.123.0/24, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[27.123.147.64.list.dnswl.org : 127.0.5.1]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.996,0]; R_DKIM_ALLOW(-0.20)[fastmail.com:s=fm2,messagingengine.com:s=fm2]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[current@freebsd.org]; IP_SCORE_FREEMAIL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_TLS_LAST(0.00)[]; IP_SCORE(0.00)[ip: (-9.71), ipnet: 64.147.123.0/24(-4.92), asn: 11403(-2.69), country: US(-0.05)] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Mar 2020 09:40:58 -0000 On 03.03.2020 11:49, Yuri Pankov wrote: > With recent pkg fallout, I'm trying to build rust myself first time ever > (as far as I can remember), and it's failing running out of swap on the > following step: > > Building stage0 std artifacts (x86_64-unknown-freebsd -> > x86_64-unknown-freebsd) > running: > "/usr/ports/lang/rust/work/rustc-1.41.1-src/build/x86_64-unknown-freebsd/stage0/bin/cargo" > "build" "-Zconfig-profile" "--target" "x86_64-unknown-freebsd" > "-Zbinary-dep-depinfo" "-j" "1" "-v" "--release" "--frozen" "--features" > "panic-unwind backtrace compiler-builtins-c" "--manifest-path" > "/usr/ports/lang/rust/work/rustc-1.41.1-src/src/libtest/Cargo.toml" > "--message-format" "json-render-diagnostics" > ^C^C^C > Build completed unsuccessfully in 0:00:55 > > Here I pressed ^C as the build actually continues despite several > rustdoc, python, and other processes being killed. > > swap_pager: out of swap space > swp_pager_getswapspace(20): failed > swap_pager: out of swap space > swp_pager_getswapspace(11): failed > > The system has 32G of RAM and 2GB swap partition (as advised by zfs-auto > installation option), top shows about 28G of memory free at that moment, > so I'm wondering why the swap is being used, and if 2G should be enough > to build rust. Looks like I got this wrong, adding a file-backed swap space I was actually able to run top, and seeing only 100M of memory being "Free", ~20G memory reported as "Active", and swap usage constantly growing being consumed by rustdoc process; something is really wrong here. > Tried building both as root and user, DISABLE_MAKE_JOBS has no effect.