From owner-freebsd-questions@freebsd.org Wed Apr 8 16:06:19 2020 Return-Path: Delivered-To: freebsd-questions@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 25D752B584B for ; Wed, 8 Apr 2020 16:06:19 +0000 (UTC) (envelope-from tomek@cedro.info) Received: from mail-ua1-x935.google.com (mail-ua1-x935.google.com [IPv6:2607:f8b0:4864:20::935]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48y8K62DT6z4Kq0 for ; Wed, 8 Apr 2020 16:06:18 +0000 (UTC) (envelope-from tomek@cedro.info) Received: by mail-ua1-x935.google.com with SMTP id 21so539121uae.4 for ; Wed, 08 Apr 2020 09:06:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cedro.info; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=FOgJsT8XU6+ZvzOawOggKENK9FSF63XEQ0k9jnHPFHk=; b=L2iLMLKlyRY8UxlBBOtRY+fgP9d3cmhso3RA4/CqVqmZugEMf3KmxoPYQ+J+xpml29 BXz6LwBoZ+8dKkQQaGhpju48UVqQoYLItbZU2xbbOkv919H0vuZflpm9MuylgkCkQrnV nxrpELU020aLKWnk+HQAZZp1oU7ItCZNfkznkR3x8UqevbTvUglt3zAbV8792vS0X2pp jENnW+lvsygCNY1UpKQPLmrNceSV/FVEqK69lSH0EhdglJrr8q3TNzfVimz73eaNvMxY /xkjSGdjjXKca3ravrI2kD6p4BbK3qYml3r4jTTXGtg+7Rc4jg50CvxwBzKKIRLXCDQ3 OG8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=FOgJsT8XU6+ZvzOawOggKENK9FSF63XEQ0k9jnHPFHk=; b=BHHy3X0ay4WvoS+WBZEIi57cFL0tFSXnZe3TUO3shYNlChcN9Eea/5YWLzkDKvHy2X qfdadz0eSqlmk3czzECyjfbW/5+K7KS3H743MN1QkAjn1sDGBf8EDDkAfXYSd7kqUB5/ baLtaHqcSRv64XEXWHfUwK5CZMgvXrY8m2vHcorC1pBs6ZVIwECTvJY1VXmo3/WAt1Rt jT1kcYTeqFMNscajVvovy0kvBzCpRcmxQXIPsphvoTQ70E+6t0ajXTMtLRoScY4iSfWP HqVtxQAIwJ6gfDFjxNcU47ixc7uHplHMA/6pEXj1dCvTj/RDsmKh/S43V1Za9vydgC8R hbLg== X-Gm-Message-State: AGi0PubJ49c0wrEwlbUhj9A72myb6fBaPN8KHzWJRokyNW/rk8i/mWBz buj0V1OnOOo2CkY5cyON2TfQBkg/UJs= X-Google-Smtp-Source: APiQypKUIHDGIjwRSQPj/CdrNLqVxGm9aYKcZFBjihx9uVAXNGT9A50m1Qxc2dzl2Ubor6D6ZdXZZQ== X-Received: by 2002:a4a:e08b:: with SMTP id w11mr404947oos.62.1586361975335; Wed, 08 Apr 2020 09:06:15 -0700 (PDT) Received: from mail-oi1-f182.google.com (mail-oi1-f182.google.com. [209.85.167.182]) by smtp.gmail.com with ESMTPSA id l22sm1373019ota.55.2020.04.08.09.06.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 08 Apr 2020 09:06:14 -0700 (PDT) Received: by mail-oi1-f182.google.com with SMTP id u20so448649oic.4; Wed, 08 Apr 2020 09:06:14 -0700 (PDT) X-Received: by 2002:aca:4f57:: with SMTP id d84mr335577oib.161.1586361973542; Wed, 08 Apr 2020 09:06:13 -0700 (PDT) MIME-Version: 1.0 References: <281e95ff-a1c2-c759-2918-783cb8edf1b7@gmail.com> <67026913-5a6d-4763-a985-e2739de9d147@gmail.com> In-Reply-To: <67026913-5a6d-4763-a985-e2739de9d147@gmail.com> From: Tomasz CEDRO Date: Wed, 8 Apr 2020 18:05:49 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: /usr/src/release/release.sh -> ports -> fetch pkg -> Bad system call (core dumped) To: Ruslan Garipov Cc: FreeBSD Questions Mailing List , FreeBSD Stable , freebsd-ports Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 48y8K62DT6z4Kq0 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=cedro.info header.s=google header.b=L2iLMLKl; dmarc=none; spf=none (mx1.freebsd.org: domain of tomek@cedro.info has no SPF policy when checking 2607:f8b0:4864:20::935) smtp.mailfrom=tomek@cedro.info X-Spamd-Result: default: False [-4.37 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[cedro.info:s=google]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; DMARC_NA(0.00)[cedro.info]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[cedro.info:+]; RCVD_IN_DNSWL_NONE(0.00)[5.3.9.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; R_SPF_NA(0.00)[]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; IP_SCORE(-2.07)[ip: (-9.54), ipnet: 2607:f8b0::/32(-0.33), asn: 15169(-0.43), country: US(-0.05)]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Apr 2020 16:06:19 -0000 On Sun, Apr 5, 2020 at 7:53 PM Ruslan Garipov wrote: > > I wrongly assumed that release will simply update this svn repo that I > > am working on.. but it fetches HEAD.. so I was trying to build > > 13/HEAD/CURRENT on 12/STABLE/RELEASE that have different ABI thus bad > > syscall.. and I need CURRENT to build CURRENT, right? :-) > I believe in order to build the source tree you just need a compatible > toolchain. So you can build the source tree for 13.0-CURRENT on > 12.1-RELEASE system. But you need CURRENT to **run** userland with ABI > from the CURRENT. Long story short I need 13-CURRENT to create a 13-CURRENT release with release(7) because on 12-STABLE/RELEASE chroot with 13-CURRENT does not work. I need to see how it works with `make release` :-) > Once again: for native build `make release` may be quite easy and fast. > release(7) guarantees "absolutely clean build environment". Will try that `make release` as well, also for 13-CURRENT on 12-STABLE, thank you! Also will compare the time cost with the one presented below :-) Creating a "release" also has this advantage that I have memstick images that I can boot from directly, test what I need, even no need to install :-) Here are my build times, for a release for AMD64/12-STABLE, I did not select DOC nor PORTS to build, only Kernel and Base :-) BUILD HOST (~$500): HP PROLIANT DL380G7X (HDD 1TB, 128GB RAM, 24vCPU = 2 x Intel Xeon X5660 @2.8GHz = 2 PACKAGES x 6 CORES x 2 HW THREADS ) INTERNET: 600/60MBit time make clean buildkernel (16x speedup with SMP): 2472.027u 291.657s 46:34.54 98.8% 38592+3123k 195123+3315182io 80167pf+0w -j12 2355.140u 282.807s 3:40.12 1198.4% 38509+3121k 190142+3361605io 71356pf+0w -j24 3672.641u 382.254s 2:54.85 2319.0% 39837+3149k 218567+3361605io 64857pf+0w -j48 3722.707u 352.940s 3:07.10 2178.3% 40328+3169k 214359+3361607io 66526pf+0w time make clean buildworld (12.5x speedup with SMP): 32223.598u 1940.942s 9:28:07.59 100.2% 46920+3430k 563493+3074126io 234706pf+0w -j12 33644.438u 1818.147s 54:46.68 1078.9% 47324+3449k 485257+3255853io 236896pf+0w -j24 50728.732u 2556.953s 45:06.66 1968.6% 47556+3455k 560905+3255862io 229433pf+0w -j48 51129.166u 2454.564s 44:38.12 2000.7% 47630+3458k 525602+3255854io 210237pf+0w release.sh (seems to auto-adjust -j optimization and below 2h looks really cool): 94556.462u 5583.273s 1:43:14.24 1616.6% 50234+3336k 1457023+16921354io 615421pf+0w -j12 94477.001u 5577.692s 1:42:59.60 1619.1% 50251+3337k 1463964+16932952io 617689pf+0w -j24 94480.274u 5574.117s 1:43:38.89 1608.8% 50213+3336k 1468685+16931170io 617425pf+0w -j48 94588.653u 5569.909s 1:43:10.62 1617.9% 50211+3336k 1460546+16925145io 611229pf+0w These times may be even smaller when SSD is used instead of HDD. Also I wonder how to utilize all RAM to speed up the compilation because I can see 8..34GB utilization while the rest of 128GB remains unused. I saw some ramdisk tricks I need to try that as well :-) Best regards :-) Tomek -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info