From owner-freebsd-current@freebsd.org Sun Aug 13 22:59:18 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 30B36DE0D98 for ; Sun, 13 Aug 2017 22:59:18 +0000 (UTC) (envelope-from vladimir@kondratyev.su) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 15B7B2CEA for ; Sun, 13 Aug 2017 22:59:18 +0000 (UTC) (envelope-from vladimir@kondratyev.su) Received: by mailman.ysv.freebsd.org (Postfix) id 11983DE0D97; Sun, 13 Aug 2017 22:59:18 +0000 (UTC) Delivered-To: current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 113F2DE0D96 for ; Sun, 13 Aug 2017 22:59:18 +0000 (UTC) (envelope-from vladimir@kondratyev.su) Received: from corp.infotel.ru (corp.infotel.ru [195.170.219.3]) by mx1.freebsd.org (Postfix) with ESMTP id BBC2D2CE9 for ; Sun, 13 Aug 2017 22:59:17 +0000 (UTC) (envelope-from vladimir@kondratyev.su) Received: from corp (corp.infotel.ru [195.170.219.3]) by corp.infotel.ru (Postfix) with ESMTP id 14F91119F1 for ; Mon, 14 Aug 2017 01:59:05 +0300 (MSK) X-Virus-Scanned: amavisd-new at corp.infotel.ru Received: from corp.infotel.ru ([195.170.219.3]) by corp (corp.infotel.ru [195.170.219.3]) (amavisd-new, port 10024) with ESMTP id hWcyEK5z44Ug for ; Mon, 14 Aug 2017 01:59:00 +0300 (MSK) Received: from mail.cicgroup.ru (unknown [195.170.219.74]) by corp.infotel.ru (Postfix) with ESMTP id C1E84119E8 for ; Mon, 14 Aug 2017 01:59:00 +0300 (MSK) Received: from mail.cicgroup.ru (localhost [127.0.0.1]) by mail.cicgroup.ru (Postfix) with ESMTP id 24A733AC8F1 for ; Mon, 14 Aug 2017 01:58:59 +0300 (MSK) X-Virus-Scanned: amavisd-new at cicgroup.ru Received: from mail.cicgroup.ru ([127.0.0.1]) by mail.cicgroup.ru (mail.cicgroup.ru [127.0.0.1]) (amavisd-new, port 10024) with SMTP id jc7QUfiMEbeb for ; Mon, 14 Aug 2017 01:58:52 +0300 (MSK) Received: from localhost (localhost [127.0.0.1]) by mail.cicgroup.ru (Postfix) with ESMTPA id 31C7C3AC8EA for ; Mon, 14 Aug 2017 01:58:52 +0300 (MSK) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Mon, 14 Aug 2017 01:58:52 +0300 From: Vladimir Kondratyev To: current@FreeBSD.org Subject: CFT: Driver for generic MS Windows 7/8/10 - compatible USB HID multi-touch touchscreens Message-ID: X-Sender: vladimir@kondratyev.su User-Agent: Roundcube Webmail/1.2.5 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 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: Sun, 13 Aug 2017 22:59:18 -0000 Hi, all Following patch [1] adds support for generic MS Windows 7/8/10 - compatible USB HID multi-touch touchscreens via evdev protocol. It is intended to be a native replacement of hid-miltitouch.c driver found in Linux distributions and multimedia/webcamd port. Patch is made for 12-CURRENT and most probably can be applied to recent 11-STABLE and 11.1-RELEASE (not tested) How to test. 1. Apply patch [1] 2. To compile this driver into the kernel, place the following lines into your kernel configuration file: device wmt device usb device evdev Alternatively, to load the driver as a module at boot time, place the following line in loader.conf(5): wmt_load="YES" 3. Install x11-drivers/xf86-input-evdev or x11-drivers/xf86-input-libinput port 4. Tell XOrg to use evdev or libinput driver for the device: Section "ServerLayout" .... InputDevice "TouchScreen0" "SendCoreEvents" EndSection Section "InputDevice" Identifier "TouchScreen0" Driver "evdev" # Driver "libinput" Option "Device" "/dev/input/eventXXX" EndSection Exact value of "/dev/input/eventXXX" can be obtained with evemu-record utility from devel/evemu. Note1: Currently, driver does not support pens or touchpads. Note2: wmt.ko should be kld-loaded before uhid driver to take precedence over it! Otherwise uhid can be kld-unloaded after loading of wmt. [1] wmt review: https://reviews.freebsd.org/D12017 Raw diff: https://reviews.freebsd.org/file/data/ruebvnmyzymnhc7ho37f/PHID-FILE-nue7bjzefxyvwjkcfepd/D12017.diff -- WBR Vladimir Kondratyev From owner-freebsd-current@freebsd.org Mon Aug 14 06:19:14 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B2FCCDD7A70; Mon, 14 Aug 2017 06:19:14 +0000 (UTC) (envelope-from ohartmann@walstatt.org) Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1781D6F47D; Mon, 14 Aug 2017 06:19:13 +0000 (UTC) (envelope-from ohartmann@walstatt.org) Received: from freyja.zeit4.iv.bundesimmobilien.de ([87.138.105.249]) by mail.gmx.com (mrgmx102 [212.227.17.168]) with ESMTPSA (Nemesis) id 0Las1k-1dJ7Ze4A2a-00kT5f; Mon, 14 Aug 2017 08:19:11 +0200 Date: Mon, 14 Aug 2017 08:19:10 +0200 From: "O. Hartmann" To: freebsd-current , freebsd-ports Subject: [poudriere] poudriere non-responsive, zombie sh Message-ID: <20170814081910.27abe60a@freyja.zeit4.iv.bundesimmobilien.de> Organization: Walstatt MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:wWu99sMZjNdZRvaes7DQxc21IVw9bKrMGP/FakTv6TuiBbxrtMI x6So1qn5P2X9dt1AF832mYLcfAas9a3tPs5bfsaS9kuHKzFSQei/BZQ1ZoI3yIo+qbtouMa kmIBVG2CciwQy+lwjd3eI772Ghm2MYweaivZnX2tHzqPpIoZdMRnSfn2TJv2EdCiDTiTxbN /yrNEkUcUbbbCv+3wtUAA== X-UI-Out-Filterresults: notjunk:1;V01:K0:2TNDc8HGlXk=:4S/V+ZSH2Q12Ug/5sjS/Jv Dbcir6fK2vT+zk1P8PENlewZ7K5kTzimNc0B6oDlC2mkprCrAosjVb2So0Ko7wxuF89mcgRBH 2voZLn/3InBK378iMiLuEwJWfwiuFS3nzq1p5x4IWkpUDG+qc+s0kN9Qqt/chQuCQX2y7E9pa kQuPr9XAO9g5BzyW+40w6vnuHvsGoH1ZF8skwAifcb0YoNMDmlU/p88XF/C7Ru031/hQM/0PB NKAYsNQNUrIb2dhcvdZlUKgSdHW9CHqlCXcXCMJeMlkzosTrRs5Qqe+rkHgxYZHB6nI8djyI1 OV1VBv51LjbHO2O2ixy/HH8KT0P353kgET9ktP8hyWNYcFRwTnBi7x5OAXO2hc01p2365Bg7m nl+RHWoDncmdGBMJ/21B/p3sNoGg7+K4oRBlXxsBKWB0tylKI2IDlNsGtN11KlHMYmsopDGzu XLzLiwi8XMJfXBj5bebA84gZQNHMqoFzJySmXF6Ldb57YqaloKq4AcXG6g9Y2q+pg8FowIKfQ uppXre3Dc5qBRyQwdJQvhTL9AiXoi62rNE0O6NMpoN0wbKX4MXYvwkkEIwQrF2c79M4J+9rT1 GoB0eT75SJmQn+ibIoSXWCZsFkN7WO+3EmifQjfBsmKg7BHZJ3oZwvtS5K4iKI7+axyKnYHtk zgYQ6CYaSNNbBME364YE6KBrO1dJAmFGvkxT/xZ8EtkRGVI2nbpCEiQJuF7TShC2JBmjDQ/ji tOmQkriAV1mDVd3SWU2A82zROmowRhMGIITLQZoZy82wULdqbGMv5+LnDXYpWQlB5wH5TCk1x LpLBxiUYyjKestNSvqVM0MSMrFfgxoGn/ar18L+GtL5eIYNfRc= X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 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: Mon, 14 Aug 2017 06:19:14 -0000 Running FreeBSD 12.0-CURRENT #87 r322472: Sun Aug 13 21:59:36 CEST 2017 amd64 with jail of the same revision, lately the poudriere build system started to get inresponsive when hitting Ctrl-C or, very often, starts to stop when showing up which package is deleted or has to be rebuild due to changed dependencies. usually, the list of deleted/to-be-rebuild packages show up and then the output flows as packages are build. This stops somehow in the middle of the output. Checking the box then via ps/top, I see the a "sh" eating up a tremendous portion of the CPU time. I have a 4 core/8 threads XEON (IvyBridge based) with 16 GB of RAM using ZFS on a RAIDZ for the poudriere stuff (which induced never problems in the past). When havin hit the Ctrl-C key, there are only two jails left not dying, I have to use "poudriere jail -k" to kill the jail. But then, the zombie-shell (sh) remains eating CPU time - no idea wht the shell is doing so far. This strange behaviour occured within the last two weeks on several poudriere hosts the same time with unchanged configurations working prior to this observation. Waiting long enough - in some cases hours! - the shell will finally die (after Ctrl-C). I haven't checked whether the poudriere jobs work to the end in the back when not showing progress on the terminal, I got impatient after a couple of hours and stopped them. Seems therer is an issue lately introduced. Can someone shed some light on it? The problem is erratic - I can not easily reproduce it, and I also can not say whether it is a ZFS or shell or kernel issue. kind regards, Oliver From owner-freebsd-current@freebsd.org Mon Aug 14 07:03:41 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 345B9DD9432; Mon, 14 Aug 2017 07:03:41 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [IPv6:2001:470:7a58:1::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id EA8E470D8D; Mon, 14 Aug 2017 07:03:40 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from [IPv6:2001:470:7a58::c934:9851:82ae:f7e1] (unknown [IPv6:2001:470:7a58:0:c934:9851:82ae:f7e1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id C018E2348E; Mon, 14 Aug 2017 09:03:38 +0200 (CEST) From: Dimitry Andric Message-Id: <356180EA-6E5F-40DC-85AC-5F3BB5D49DC3@FreeBSD.org> Content-Type: multipart/signed; boundary="Apple-Mail=_74948664-70C0-4443-AAD3-E657BB9AAD38"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: [poudriere] poudriere non-responsive, zombie sh Date: Mon, 14 Aug 2017 09:03:34 +0200 In-Reply-To: <20170814081910.27abe60a@freyja.zeit4.iv.bundesimmobilien.de> Cc: freebsd-current , freebsd-ports To: "O. Hartmann" References: <20170814081910.27abe60a@freyja.zeit4.iv.bundesimmobilien.de> X-Mailer: Apple Mail (2.3273) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 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: Mon, 14 Aug 2017 07:03:41 -0000 --Apple-Mail=_74948664-70C0-4443-AAD3-E657BB9AAD38 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 14 Aug 2017, at 08:19, O. Hartmann wrote: >=20 > Running FreeBSD 12.0-CURRENT #87 r322472: Sun Aug 13 21:59:36 CEST = 2017 amd64 > with jail of the same revision, lately the poudriere build system = started to > get inresponsive when hitting Ctrl-C or, very often, starts to stop = when > showing up which package is deleted or has to be rebuild due to = changed > dependencies. ... > Seems therer is an issue lately introduced. Can you please check whether the problem is caused by this recent commit to security/sudo, which changes the signal handling: https://svnweb.freebsd.org/ports?view=3Drevision&revision=3D447784 -Dimitry --Apple-Mail=_74948664-70C0-4443-AAD3-E657BB9AAD38 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.1 iF0EARECAB0WIQR6tGLSzjX8bUI5T82wXqMKLiCWowUCWZFLRgAKCRCwXqMKLiCW o8laAKCJXva7vosJIFUuKpijHk0FcsdnzQCeMXfd10E/+iYHeoB94uRW0w8iBPA= =2p8V -----END PGP SIGNATURE----- --Apple-Mail=_74948664-70C0-4443-AAD3-E657BB9AAD38-- From owner-freebsd-current@freebsd.org Mon Aug 14 11:57:31 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EBFAEDB75D2 for ; Mon, 14 Aug 2017 11:57:31 +0000 (UTC) (envelope-from rum1cro@yandex.ru) Received: from forward103j.mail.yandex.net (forward103j.mail.yandex.net [IPv6:2a02:6b8:0:801:2::106]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "forwards.mail.yandex.net", Issuer "Yandex CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id AA9377D94E for ; Mon, 14 Aug 2017 11:57:31 +0000 (UTC) (envelope-from rum1cro@yandex.ru) Received: from mxback4j.mail.yandex.net (mxback4j.mail.yandex.net [IPv6:2a02:6b8:0:1619::10d]) by forward103j.mail.yandex.net (Yandex) with ESMTP id 5622D34C2D01 for ; Mon, 14 Aug 2017 14:57:26 +0300 (MSK) Received: from web6g.yandex.ru (web6g.yandex.ru [95.108.252.106]) by mxback4j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id uKoOFcqHsS-vPieQXkW; Mon, 14 Aug 2017 14:57:25 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1502711845; bh=zcMZxW8zk8uJWXx13lT05xmggMD1AcaTzj6QHwRoOmk=; h=From:To:Subject:Message-Id:Date; b=GypR4o4Bth+gzjhsH970UtlMxxl0vQFssBiBJoLe2aQpBM2AQ9Lwb6zECzs/F5+XB tELJBwEzG8A1t5zoiuY7bdbXwAH+M2CW5Z25Wm35uxyZf4TMNtyDLYPW7VxS2aFO4x ZCyVvenzDWLUzwnsG0o2ig46oxcJQT4J0sID+WhY= Authentication-Results: mxback4j.mail.yandex.net; dkim=pass header.i=@yandex.ru Received: by web6g.yandex.ru with HTTP; Mon, 14 Aug 2017 14:57:25 +0300 From: Ilya A. Arkhipov Envelope-From: rum1cro@yandex.ru To: freebsd-current Current Subject: [pkg base][pormaster] Origin for base packages = "base" MIME-Version: 1.0 Message-Id: <79291502711845@web6g.yandex.ru> X-Mailer: Yamail [ http://yandex.ru ] 5.0 Date: Mon, 14 Aug 2017 14:57:25 +0300 Content-Transfer-Encoding: 7bit Content-Type: text/plain X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 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: Mon, 14 Aug 2017 11:57:32 -0000 Hi there, After upgrade my system(r322368) to pkg-base system(have 780 packages for world and kernel) I got next issue: [11:53am] root:/root # portmaster -a ===>>> Gathering distinfo list for installed ports ===>>> Starting check of installed ports for available updates ===>>> Is /usr/ports/base/Makefile missing? ===>>> Aborting update [11:53am] root:/root # cat /usr/ports/base/Makefile # $FreeBSD: head/base/Makefile 425903 2016-11-11 18:51:42Z bapt $ # Never add SUBDIRS here as the ports should not be connected to the build # .include Looks like it related with Origin in base ports: pkg info -f FreeBSD-kernel-microkernel-12.0.s20170811101514 FreeBSD-kernel-microkernel-12.0.s20170811101514 Name : FreeBSD-kernel-microkernel Version : 12.0.s20170811101514 Installed on : Fri Aug 11 18:00:03 2017 MSK Origin : base <=================== Categories : base Licenses : BSD2CLAUSE Maintainer : re@FreeBSD.org WWW : https://www.FreeBSD.org Comment : FreeBSD MICROKERNEL kernel Annotations : repo_type : binary repository : FreeBSD-base Flat size : 115MiB Description : FreeBSD MICROKERNEL kernel portmaster do a: port_ver=`pm_make -V PKGNAME` [ -z "$port_ver" ] && fail "Is $pd/$origin/Makefile missing?" and sure it will empty for $origin = base. For me I did: 1767 >---if [ "$origin" = "base" ]; then 1768 >--->---: Anybody have the same issue? -- With Best Regards, Ilya A. Arkhipov From owner-freebsd-current@freebsd.org Mon Aug 14 14:07:15 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E5CE6DCA7EC for ; Mon, 14 Aug 2017 14:07:15 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: from mail-it0-x234.google.com (mail-it0-x234.google.com [IPv6:2607:f8b0:4001:c0b::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id ABD8483594; Mon, 14 Aug 2017 14:07:15 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: by mail-it0-x234.google.com with SMTP id f16so10720259itb.0; Mon, 14 Aug 2017 07:07:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=mjLIT63/TzJLct4IeLfwAsZoLGugGPrbpcs3lcj5iqE=; b=F2l/2eEITEGrk7gDFIsmnKbXuospu6Sd5xICDZQ+u6ILC0AH3+Fz+YC3gYSpYcBRD/ Nv2RKLhvJc7S1bzpp7Dx8Ji8abfqjjY6iJkV12Z9Fg0TxzBA0zYxRRROTXLwLs534set L3IGyPCHxBKhHOwppTHrOr2SytaYakLQaJhAMzZqdnBPxZScPvws5JiGtoScuMEJa/YW E3ga+bWPSIuzTcRyCLxgSO9sSI0Q1nq4CHR0hecuiPHPZ4EUQ40e+NpJJr+Cs/qFGubu hvlG+oLkqFrr4AlFh2RHsVLp3V6+pX2gI0f2Ad84UJG47ChyQPF1DH36tJ+PDxYkTS4a VYnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=mjLIT63/TzJLct4IeLfwAsZoLGugGPrbpcs3lcj5iqE=; b=mmHPCHEd6pDUPfcsRiRAMnkYwRYkm3fm+A3eVogP1F3zEnAuL+qr0vMA1zOERr4R0C aF4Nn6IW2R9GQnOtENKf7euRB+c5s0y0hUKMLas+PrJqUEdWmsKY0mkD5v6FI3JRTGAO Dd0W9qVyRw9/CazFL3alCdg5B6UmP7yfgm2SyjqVXmWu2L43UFDxmFJwT3K+1CINII/v 0soUFD2tYUgg3aND6+eW5TwGoLsNZyb0dcaJNzhDeyC4mJChi5E1WSwsZbNha5PdUYrG 0iA85CkoYJp+Wk2xjvCptIjkHCQVD4LpNkM7hbMS2fv+TwXMPkxFgG0x0uT3y9AyLBei j8pg== X-Gm-Message-State: AHYfb5gi2bzmZkY5MhQKbLqQv8ROZRJCJdVuLV9uya9/gogy0ZF/deFS XTQc5C4kEv7IV/v1rf/1OTU554XD1g== X-Received: by 10.36.189.140 with SMTP id x134mr6274927ite.169.1502719635152; Mon, 14 Aug 2017 07:07:15 -0700 (PDT) MIME-Version: 1.0 Sender: carpeddiem@gmail.com Received: by 10.107.24.66 with HTTP; Mon, 14 Aug 2017 07:06:54 -0700 (PDT) In-Reply-To: References: <9C14A21D-1C17-44F9-882B-4A01C311E164@FreeBSD.org> <37395FD6-09E5-4C11-A189-7B3050E9A541@FreeBSD.org> From: Ed Maste Date: Mon, 14 Aug 2017 10:06:54 -0400 X-Google-Sender-Auth: kq6Jk8WHgGp4ECda9msLvh_nV7M Message-ID: Subject: Re: buildworld fails while building static clang library To: Aijaz Baig Cc: Dimitry Andric , FreeBSD Current Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 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: Mon, 14 Aug 2017 14:07:16 -0000 On 7 August 2017 at 00:32, Aijaz Baig wrote: > That was some pretty relevant information Ed. Thanks. Even though it's not a direct cause of the problem you encountered I wanted to make sure a there was comprehensive reply to Dimitry's question. > Nonetheless, as I have indicated in my previous email, I hit an error quite > late in the process now (stage 4.3) when it is apparently linking h_raw.o > into h_raw.full ( is this linking by the way? what is the .full file > there??) Yes, this is a link step - the .full file is a binary or library with debug data included, which is then split into a .debug file containing only the debug data and the binary or library with no extension. There's no indication of what the error is in your log excerpt; are there any messages in dmesg from the time of the build? From owner-freebsd-current@freebsd.org Mon Aug 14 18:01:36 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4CE41DDA710 for ; Mon, 14 Aug 2017 18:01:36 +0000 (UTC) (envelope-from mizhka@gmail.com) Received: from mail-qk0-x22a.google.com (mail-qk0-x22a.google.com [IPv6:2607:f8b0:400d:c09::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 06BE26760D for ; Mon, 14 Aug 2017 18:01:36 +0000 (UTC) (envelope-from mizhka@gmail.com) Received: by mail-qk0-x22a.google.com with SMTP id x191so54388545qka.5 for ; Mon, 14 Aug 2017 11:01:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=+BW4X/TBK4PnjcPHGnE8fkfu8W70PAUR2ggd9K6zHtI=; b=Zn/95HuBWjkO1sy1zxUNVeF26yuj8BISY30vj3xX4CXKpHnJLlcycl1o8PhFRiW861 q6aqZTvi8MjmnLImVRzoBEOi0OGvmzzBji08Mw+15nc0wJZy+8ROJUwL+tlAVe1S6oqr 2OGGOCXlGG9VlI/lDNVhfAkD6GVfs6pdqFxwxxHoNsD2FhC59Xu3tPAOHWSz57JhjAMK gWQMhdB2z9HbkTh1FuaU04lEgoPqH0bvkWKrP0HGbFDSTyQ1ZJWZpkf4k3WNoe9ISJBm lOEV8GcFF7ZEMIokFdNPfXX9wp5jRxF5reherR7v/2B+X3Fr7HECqlD8cc9gHv7wzrI+ 9/rA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=+BW4X/TBK4PnjcPHGnE8fkfu8W70PAUR2ggd9K6zHtI=; b=IHhiCHXBVunKHzeQD9gdz+G+I03T8QLNWR6YQwcLSweA2wiKyZzdh5COeO4/HcagKS emw7iCrpJ0KefSjnUKPSSIaF1yjfRRWzlAO9OdZbbQVvYMK2/Fwgn+9AwwBo7G7n6+51 FRBYdZZAoQefRuSFuGyQpblH5jkNEMW+YcVgsfgT3dv/KUaBKdvpm//6TB7wURY6P+5n FjoIzd0eo7B8apMOsATDJadFmBZgw72d5mxDJjBGRO1XVbXx3oR3KM2qMTO10BW4M90t Uoqq1LRdSEojf2v8kkSeiqu9qz5KtpyG8qHGOxmR6TedR6fEzTaJ36RUtkcioSty0uny 4wBQ== X-Gm-Message-State: AHYfb5jdvpq1xCtuST5xD4N9gAhKTy6Ztqx3tCvpykHpMEHezTrR5Flf QcwH2Zgz/pHefGxwaaqjmuXst4eqDQ== X-Received: by 10.55.42.148 with SMTP id q20mr8585961qkq.66.1502733695201; Mon, 14 Aug 2017 11:01:35 -0700 (PDT) MIME-Version: 1.0 Received: by 10.140.82.37 with HTTP; Mon, 14 Aug 2017 11:01:34 -0700 (PDT) Received: by 10.140.82.37 with HTTP; Mon, 14 Aug 2017 11:01:34 -0700 (PDT) In-Reply-To: <79291502711845@web6g.yandex.ru> References: <79291502711845@web6g.yandex.ru> From: Michael Zhilin Date: Mon, 14 Aug 2017 21:01:34 +0300 Message-ID: Subject: Re: [pkg base][pormaster] Origin for base packages = "base" To: "Ilya A. Arkhipov" Cc: freebsd-current Current Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 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: Mon, 14 Aug 2017 18:01:36 -0000 Hi Ilya, I saw same issue yesterday. I suppose it's easy to fix postmaster, but pkgbase is still experimental. Best regards, Michael 14 =D0=B0=D0=B2=D0=B3. 2017 =D0=B3. 2:57 =D0=9F=D0=9F =D0=BF=D0=BE=D0=BB=D1= =8C=D0=B7=D0=BE=D0=B2=D0=B0=D1=82=D0=B5=D0=BB=D1=8C "Ilya A. Arkhipov" =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=D0=BB: > Hi there, > > After upgrade my system(r322368) to pkg-base system(have 780 packages for > world and kernel) I got next issue: > [11:53am] root:/root # portmaster -a > =3D=3D=3D>>> Gathering distinfo list for installed ports > > =3D=3D=3D>>> Starting check of installed ports for available updates > > > =3D=3D=3D>>> Is /usr/ports/base/Makefile missing? > =3D=3D=3D>>> Aborting update > > [11:53am] root:/root # cat /usr/ports/base/Makefile > # $FreeBSD: head/base/Makefile 425903 2016-11-11 18:51:42Z bapt $ > > # Never add SUBDIRS here as the ports should not be connected to the > build > # > .include > > > Looks like it related with Origin in base ports: > > pkg info -f FreeBSD-kernel-microkernel-12.0.s20170811101514 > FreeBSD-kernel-microkernel-12.0.s20170811101514 > Name : FreeBSD-kernel-microkernel > Version : 12.0.s20170811101514 > Installed on : Fri Aug 11 18:00:03 2017 MSK > Origin : base <=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D > Categories : base > Licenses : BSD2CLAUSE > Maintainer : re@FreeBSD.org > WWW : https://www.FreeBSD.org > Comment : FreeBSD MICROKERNEL kernel > Annotations : > repo_type : binary > repository : FreeBSD-base > Flat size : 115MiB > Description : > FreeBSD MICROKERNEL kernel > > > portmaster do a: > port_ver=3D`pm_make -V PKGNAME` > [ -z "$port_ver" ] && fail "Is $pd/$origin/Makefile > missing?" > and sure it will empty for $origin =3D base. > > For me I did: > 1767 >---if [ "$origin" =3D "base" ]; then > 1768 >--->---: > > Anybody have the same issue? > > -- > With Best Regards, > Ilya A. Arkhipov > _______________________________________________ > freebsd-current@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org= " > From owner-freebsd-current@freebsd.org Mon Aug 14 18:36:50 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 48A61DDC595 for ; Mon, 14 Aug 2017 18:36:50 +0000 (UTC) (envelope-from aijazbaig1@gmail.com) Received: from mail-vk0-x22b.google.com (mail-vk0-x22b.google.com [IPv6:2607:f8b0:400c:c05::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id F1EBE689E4; Mon, 14 Aug 2017 18:36:49 +0000 (UTC) (envelope-from aijazbaig1@gmail.com) Received: by mail-vk0-x22b.google.com with SMTP id g189so34202048vke.5; Mon, 14 Aug 2017 11:36:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=dd4fgBCbIAkNODkbKcXUGtGc02itdTJMinvph55NQz0=; b=VjiF1YLwDIzNq1PpMcUoVCUeUJVMIcziu4qIyz80V/XmRMi6ZRBgYIoeXa8lJoS4mg PW21wNy6GIm00ew02LW17F/viinbJiZAlytvarVpacFky52i4TkD0w1dFojwTg8sNhZO bMjjESQK42sBsB2RJIKc/2wb0woC2X1dij2b6ZRVm3CzWNd4PCiD9LKkjU6OcJMB0BoT Ii89gK/j2HTBhodcMlWV1+//lRc9C4XCqBxZiQIRDJRO4fhIjdCO5gqI585h9JDeFJ77 QXrNG2jRb9noaDeRiplTbnFdrgVdJbjuWTUPZa0BUr3SyB6TDFP7DkrUSTBlvP/QNvFa REiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=dd4fgBCbIAkNODkbKcXUGtGc02itdTJMinvph55NQz0=; b=Sjs6RJoZhZKOQNpTwzDiw8aWv2G3mvkpxNt3fHLPxGGs/47XUL9Ob8Hvjcws8eVVh+ pqiPuyyHsgzohbfYBZt9U2hMj8PftCZJA9aJfnsOq/pgVH2R0+d4nebVLfgUmZdwPCSX ZCCrFxyaR8mn7+bjWzZWKQtloV79ejQL+fSVmUq+nQLAXr09RYkWTiJIVq5iUbMHUfjn 8ajoMADMP2MP/5fXOHPMMJC3cVh957sOT56o+chA7vsZXQ+e/XAOIFfET4vpYUd2+67k JgbTvkXBprkT/13AwpQGiRVMZTLKxqYsm0rucyUGyhPANkLOPicX0/NsVaMjVSA6WCM6 tirQ== X-Gm-Message-State: AHYfb5iqTAWwqSStA3YSlh7gwcvGTo+C5G727a+zNY3C+ieO/En58d4U 1KYNLujbphQMh0Zs2Im51PrinvkUig== X-Received: by 10.31.227.6 with SMTP id a6mr14000756vkh.15.1502735808389; Mon, 14 Aug 2017 11:36:48 -0700 (PDT) MIME-Version: 1.0 Received: by 10.31.55.198 with HTTP; Mon, 14 Aug 2017 11:36:47 -0700 (PDT) In-Reply-To: References: <9C14A21D-1C17-44F9-882B-4A01C311E164@FreeBSD.org> <37395FD6-09E5-4C11-A189-7B3050E9A541@FreeBSD.org> From: Aijaz Baig Date: Tue, 15 Aug 2017 00:06:47 +0530 Message-ID: Subject: Re: buildworld fails while building static clang library To: Ed Maste Cc: Dimitry Andric , FreeBSD Current Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 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: Mon, 14 Aug 2017 18:36:50 -0000 Hi Ed Yes how do I get those logs? I will be checking dmesg from time to time (is there a way to tail it by the way??) but then how do I enable verbose logging while building world? I tried finding out the same by searching on the internet and by reading the manual page for make.conf but couldn't figure it out Is it even possible to have a verbose output? On Mon, Aug 14, 2017 at 7:36 PM, Ed Maste wrote: > On 7 August 2017 at 00:32, Aijaz Baig wrote: > > That was some pretty relevant information Ed. Thanks. > > Even though it's not a direct cause of the problem you encountered I > wanted to make sure a there was comprehensive reply to Dimitry's > question. > > > Nonetheless, as I have indicated in my previous email, I hit an error > quite > > late in the process now (stage 4.3) when it is apparently linking > h_raw.o > > into h_raw.full ( is this linking by the way? what is the .full file > > there??) > > Yes, this is a link step - the .full file is a binary or library with > debug data included, which is then split into a .debug file containing > only the debug data and the binary or library with no extension. > > There's no indication of what the error is in your log excerpt; are > there any messages in dmesg from the time of the build? > -- Best Regards, Aijaz Baig From owner-freebsd-current@freebsd.org Mon Aug 14 18:43:02 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3AA7ADDCBC5; Mon, 14 Aug 2017 18:43:02 +0000 (UTC) (envelope-from paggas1@yandex.com) Received: from forward100j.mail.yandex.net (forward100j.mail.yandex.net [IPv6:2a02:6b8:0:801:2::100]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "forwards.mail.yandex.net", Issuer "Yandex CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E8910693A3; Mon, 14 Aug 2017 18:43:01 +0000 (UTC) (envelope-from paggas1@yandex.com) Received: from mxback4g.mail.yandex.net (mxback4g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:165]) by forward100j.mail.yandex.net (Yandex) with ESMTP id C02E55D82666; Mon, 14 Aug 2017 21:42:58 +0300 (MSK) Received: from smtp2o.mail.yandex.net (smtp2o.mail.yandex.net [2a02:6b8:0:1a2d::26]) by mxback4g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id NIvVtZV6ah-gwbe4urS; Mon, 14 Aug 2017 21:42:58 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.com; s=mail; t=1502736178; bh=PlfwI7gREOYNjoQ48LUIWSOQ2dUD1R/UIj6Kg33cyJM=; h=To:From:Subject:Message-ID:Date; b=Aa6Y8pBWGJmtep6Dpc/eA0XkyDS4u/xadTEJltpgmnPyMrzj0IGE3DVMB1b8zy4Us Ow+ZwwtuTDG6PE2KcZTT6gC+D7D4u6URiXlI1cFUTDlpk7NTt77edUll+p4U/zThCw hHE9MKj3/Fe1+pEzhzoMxmHgQ7kTRfxxSK+paAkY= Received: by smtp2o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id 6WW1U4HRaX-gv2qCNFo; Mon, 14 Aug 2017 21:42:57 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.com; s=mail; t=1502736178; bh=PlfwI7gREOYNjoQ48LUIWSOQ2dUD1R/UIj6Kg33cyJM=; h=To:From:Subject:Message-ID:Date; b=Aa6Y8pBWGJmtep6Dpc/eA0XkyDS4u/xadTEJltpgmnPyMrzj0IGE3DVMB1b8zy4Us Ow+ZwwtuTDG6PE2KcZTT6gC+D7D4u6URiXlI1cFUTDlpk7NTt77edUll+p4U/zThCw hHE9MKj3/Fe1+pEzhzoMxmHgQ7kTRfxxSK+paAkY= Authentication-Results: smtp2o.mail.yandex.net; dkim=pass header.i=@yandex.com To: FreeBSD Current , "freebsd-hackers@freebsd.org" From: Panagiotes Mousikides Subject: Install FreeBSD from source into VM image Message-ID: <8888acfa-4dc8-a68f-8ca8-c4df84e5e74a@yandex.com> Date: Mon, 14 Aug 2017 18:42:57 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 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: Mon, 14 Aug 2017 18:43:02 -0000 Hello everybody! I am working on the FreeBSD test suite, and need to create an image file from source. How can I do that? I need to run something similar to make installkernel && make installworld with an image file as the target, such that the end result is a ready-made FreeBSD system that can be started up with bhyve. How can I do that, including creating the correct /etc files, and the correct boot code and partitioning? Following the FreeBSD handbook [0] didn't work, as that concerns updating the current system from source only. [0]: https://www.freebsd.org/doc/handbook/makeworld.html Any help would be kindly appreciated! Best regards, Panagiotes From owner-freebsd-current@freebsd.org Mon Aug 14 18:49:37 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7B011DDD273; Mon, 14 Aug 2017 18:49:37 +0000 (UTC) (envelope-from matt.joras@gmail.com) Received: from mail-qt0-f194.google.com (mail-qt0-f194.google.com [209.85.216.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 422FD69744; Mon, 14 Aug 2017 18:49:36 +0000 (UTC) (envelope-from matt.joras@gmail.com) Received: by mail-qt0-f194.google.com with SMTP id d10so10420747qtb.4; Mon, 14 Aug 2017 11:49:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=bRgszLATcv5yYWIJdZGI6ujptpdXwEcPjLrTvZdAsjU=; b=m9iaugAWjdLJSaFurAigP2YmkYNYVdZvdum0MJTA759owxbs6DDyAx2UQCJXOlK8jU nNpHDZ6fgZUJaeCJOmNNkcUjjZWnV17o1/QUNe2s1KwWxATfVdJkcnI7NI6PytsEwCan 2pxjKXT9Pr6hKRNPbaSs4sl0xIQO90ZKV/XcNdmpWChxAj2udaa8KZZi7sGS8YOhdFJ8 fbl7NS2hkL5+3CSQaxhHevf+GbilM97Z5dk53r4Dir+aJb2hd8x03Y4T3mUBclEwF+Oa +f4fcfXkqkxIhRecvqd8B0NkkhvR5DCaDItfTWQg4umfRpFEQ+v+XXabupEttIwkVBqQ eM4Q== X-Gm-Message-State: AHYfb5gE0u6WFvTuYTwFaBg5p2nNF/oDHmFK4jpoD05itHb+FIu2Pykj w+j8Z9FydZabStQFX7Y= X-Received: by 10.200.38.243 with SMTP id 48mr32777657qtp.130.1502736569873; Mon, 14 Aug 2017 11:49:29 -0700 (PDT) Received: from [192.168.2.122] (71-212-76-202.tukw.qwest.net. [71.212.76.202]) by smtp.gmail.com with ESMTPSA id s22sm5711944qte.92.2017.08.14.11.49.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 14 Aug 2017 11:49:29 -0700 (PDT) Subject: Re: Install FreeBSD from source into VM image To: Panagiotes Mousikides , FreeBSD Current , "freebsd-hackers@freebsd.org" References: <8888acfa-4dc8-a68f-8ca8-c4df84e5e74a@yandex.com> From: Matt Joras Message-ID: <97d0475c-9603-03d8-144d-dc803e5530c7@FreeBSD.org> Date: Mon, 14 Aug 2017 11:49:27 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.1.0 MIME-Version: 1.0 In-Reply-To: <8888acfa-4dc8-a68f-8ca8-c4df84e5e74a@yandex.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 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: Mon, 14 Aug 2017 18:49:37 -0000 On 08/14/2017 11:42, Panagiotes Mousikides wrote: > I am working on the FreeBSD test suite, and need to create an image > file from source. How can I do that? > > I need to run something similar to make installkernel && make > installworld with an image file as the target, such that the end > result is a ready-made FreeBSD system that can be started up with > bhyve. How can I do that, including creating the correct /etc files, > and the correct boot code and partitioning? > See release(7), https://www.freebsd.org/cgi/man.cgi?release(7). The relevant section is under virtual machine disk images and the vm-image target. The VMFORMATS for bhyve is "raw". That will generate an image that "just works" with vmrun.sh Matt Joras From owner-freebsd-current@freebsd.org Mon Aug 14 19:12:38 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0E068DDE96D for ; Mon, 14 Aug 2017 19:12:38 +0000 (UTC) (envelope-from nbari@codigo.io) Received: from mail-wr0-x22e.google.com (mail-wr0-x22e.google.com [IPv6:2a00:1450:400c:c0c::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 98F876B10B for ; Mon, 14 Aug 2017 19:12:37 +0000 (UTC) (envelope-from nbari@codigo.io) Received: by mail-wr0-x22e.google.com with SMTP id l9so14810371wrl.1 for ; Mon, 14 Aug 2017 12:12:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codigo.io; s=google; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=O8Js2xuiVg7LlaI3u/tNW+WD6wm+ETYyaab8640wJd0=; b=chRVl+cGzDu4KK8WIis0bl3o0dK7zQRvLsztooQufTMroANHNq2or2DI+xeSGBjaFR HQHoHr/H2FV7koGG+H5wXthtUHJewd+GIKd8rApVh82zFnu9cpgmQ3A2g195ELEaGhbZ /qInAx+P+hPCQPHFnaIpdPT4U7uxsFPZ120qOtcrKZ6SCpW7N8xAsmKCB4oENGEoeDvJ ogcnBjcONu0I6NA5072ElUzzlAxJc53hvd9V9MKEtvSOuYAVjSlvZRa+vxWh+j/Q4WqG gA30ju9CA1Agc9MymOg96+VBHbxLS24KqlE2omDoDUn6akKaRTvGu13h4LGqO5gfxYpI D4bg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tequila.io; s=google; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=O8Js2xuiVg7LlaI3u/tNW+WD6wm+ETYyaab8640wJd0=; b=E0P4GHL/JMZ2798Z+d83H7h+WI9YwLb+Ju9kT9krWDHmsrXj2YL86d0GH/jjH38g5g 3czr0Uguq4C+Hk30KWpdgHl5eIlSmcIafBtvON2eLzsIex/Cayc6zEAsHXAwbF/miehr eRhWixcmVNUN336qCoEJhoNiJHbl/jm4/T6Bit1oiZVT+vKYf4q02W9bCEXg7K7tnCHJ XZvqP3Hlr5w3S1y4thhYU3GO429O0JvJAn4T78+T2uh96NO7kxsCc3hutSF2sdma6K+P 5W+ODbRxqY0UGQ/AE5lfbqLPC7+gW+FtG9ZoslgQM6pLtS3mSkURewMN1iG7AIcUyaYB 7Guw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=O8Js2xuiVg7LlaI3u/tNW+WD6wm+ETYyaab8640wJd0=; b=sus3qI5pYOsMxtiOiPzAGqneOBSwrZ8oJsmp0IdAhK6i/ngl5IDSlFC+jaQAVN2dL1 6Ps/YcEHtt6yZUG42eSDSufaBBRekgtbqOdPNuug76ydNnXLGVpnklBgDCr2xQ8/xe7S kmx7yfpueBggjFhFj4bTRa7Lit1UkXKDCH16rqgKzwoj+1Au23lIi70pjp2ZQeztB6Jd odrgOjTJIdAeU489b89hQSZJbnHV7Xi1Q1o1QlgCqYhnVSy8J1zDTlldrU7lGf3/cVZk BTOfS6ZbXqKtHH7b5CqZjuoRcIVeu//vOrcK4un2qhtNGV+0Qh4nyPEj7UXGRoW8fksQ BMYQ== X-Gm-Message-State: AHYfb5hzY/mXvP/JNQWGSctKuqPQqZscAqiJITqNuyY9kGcW8imnn4ip qj9VbsfqD89Q3W5rWzcvFj81LwPV18/g X-Received: by 10.223.170.140 with SMTP id h12mr16140426wrc.79.1502737955774; Mon, 14 Aug 2017 12:12:35 -0700 (PDT) MIME-Version: 1.0 Sender: nbari@codigo.io Received: by 10.223.146.161 with HTTP; Mon, 14 Aug 2017 12:12:35 -0700 (PDT) X-Originating-IP: [91.64.191.181] In-Reply-To: <8888acfa-4dc8-a68f-8ca8-c4df84e5e74a@yandex.com> References: <8888acfa-4dc8-a68f-8ca8-c4df84e5e74a@yandex.com> From: Nicolas Embriz Date: Mon, 14 Aug 2017 21:12:35 +0200 X-Google-Sender-Auth: P2fMcU9byy2CslrxqywfkVtyC7E Message-ID: Subject: Re: Install FreeBSD from source into VM image To: Panagiotes Mousikides Cc: FreeBSD Current , "freebsd-hackers@freebsd.org" X-Mailman-Approved-At: Mon, 14 Aug 2017 19:49:24 +0000 Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 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: Mon, 14 Aug 2017 19:12:38 -0000 Hi, maybe this can help you to start https://fabrik.red, https://github.com/fabrik-red/images a set of scripts to create an image. regards. On Mon, Aug 14, 2017 at 8:42 PM, Panagiotes Mousikides wrote: > Hello everybody! > > I am working on the FreeBSD test suite, and need to create an image file > from source. How can I do that? > > I need to run something similar to make installkernel && make installworld > with an image file as the target, such that the end result is a ready-made > FreeBSD system that can be started up with bhyve. How can I do that, > including creating the correct /etc files, and the correct boot code and > partitioning? > > Following the FreeBSD handbook [0] didn't work, as that concerns updating > the current system from source only. > > [0]: https://www.freebsd.org/doc/handbook/makeworld.html > > Any help would be kindly appreciated! > > Best regards, > Panagiotes > > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > From owner-freebsd-current@freebsd.org Wed Aug 16 01:14:56 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 61028DDB2D6 for ; Wed, 16 Aug 2017 01:14:56 +0000 (UTC) (envelope-from kiri@kx.openedu.org) Received: from kx.openedu.org (flets-sg1027.kamome.or.jp [202.216.24.27]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id F226D68526 for ; Wed, 16 Aug 2017 01:14:54 +0000 (UTC) (envelope-from kiri@kx.openedu.org) Received: from kx.openedu.org (kx.openedu.org [202.216.24.27]) by kx.openedu.org (8.14.5/8.14.5) with ESMTP id v7G1EkxS079546 for ; Wed, 16 Aug 2017 10:14:46 +0900 (JST) (envelope-from kiri@kx.openedu.org) Message-Id: <201708160114.v7G1EkxS079546@kx.openedu.org> Date: Wed, 16 Aug 2017 10:14:46 +0900 From: KIRIYAMA Kazuhiko To: freebsd-current Current Subject: BSD awk bug ? User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL/10.6 MULE XEmacs/21.4 (patch 22) (Instant Classic) (amd64--freebsd) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 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: Wed, 16 Aug 2017 01:14:56 -0000 admin@tbedfpc:~/tmp % ll total 12 -rw-r--r-- 1 admin admin 235 Aug 16 10:01 regex-1.sh -rw-r--r-- 1 admin admin 236 Aug 16 10:01 regex-2.sh -rw-r--r-- 1 admin admin 260 Aug 16 10:01 regex.sh admin@tbedfpc:~/tmp % cat regex.sh #!/bin/sh data='1 2 3 4 5 6 1 2 3 4 5 1 2 3 4 5 6 1 2 3 4 5 6 1 2 3 4 1 2 3' IFS=$'\n' for datum in $data; do if echo "$datum" | egrep -q '^([^[:space:]]+[[:space:]]+){5}'; then echo "$datum" else echo "Not 6 components! : \"$datum\"" fi done admin@tbedfpc:~/tmp % sh ./regex.sh 1 2 3 4 5 6 Not 6 components! : "1 2 3 4 5" 1 2 3 4 5 6 1 2 3 4 5 6 Not 6 components! : "1 2 3 4" Not 6 components! : "1 2 3" admin@tbedfpc:~/tmp % cat regex-1.sh #!/bin/sh _f_awk=' { if ($0 ~ /^([^[:space:]]+[[:space:]]+){5}/) { print $0 } else { print "Not 6 components! : \"" $0 "\"" } }' data='1 2 3 4 5 6 1 2 3 4 5 1 2 3 4 5 6 1 2 3 4 5 6 1 2 3 4 1 2 3' echo "$data" | awk "$_f_awk" admin@tbedfpc:~/tmp % sh ./regex-1.sh Not 6 components! : "1 2 3 4 5 6" Not 6 components! : "1 2 3 4 5" Not 6 components! : "1 2 3 4 5 6" Not 6 components! : "1 2 3 4 5 6" Not 6 components! : "1 2 3 4" Not 6 components! : "1 2 3" admin@tbedfpc:~/tmp % cat regex-2.sh #!/bin/sh _f_awk=' { if ($0 ~ /^([^[:space:]]+[[:space:]]+){5}/) { print $0 } else { print "Not 6 components! : \"" $0 "\"" } }' data='1 2 3 4 5 6 1 2 3 4 5 1 2 3 4 5 6 1 2 3 4 5 6 1 2 3 4 1 2 3' echo "$data" | gawk "$_f_awk" admin@tbedfpc:~/tmp % sh ./regex-2.sh 1 2 3 4 5 6 Not 6 components! : "1 2 3 4 5" 1 2 3 4 5 6 1 2 3 4 5 6 Not 6 components! : "1 2 3 4" Not 6 components! : "1 2 3" admin@tbedfpc:~/tmp % uname -a FreeBSD tbedfpc 12.0-CURRENT FreeBSD 12.0-CURRENT #0 r321597: Thu Jul 27 12:30:57 UTC 2017 root@tbedfc:/usr/obj/usr/src/sys/GENERIC amd64 admin@tbedfpc:~/tmp % pkg info -aI|grep gawk gawk-4.1.4_1 GNU version of Awk admin@tbedfpc:~/tmp % Is this the BSD awk (/usr/bin/awk) bug ? --- KIRIYAMA Kazuhiko From owner-freebsd-current@freebsd.org Wed Aug 16 01:43:08 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 84FF4DDD467 for ; Wed, 16 Aug 2017 01:43:08 +0000 (UTC) (envelope-from t@tomoyat1.com) Received: from mail.tomoyat1.com (tomoyat1.com [133.130.119.65]) (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 5C55D69B4B for ; Wed, 16 Aug 2017 01:43:07 +0000 (UTC) (envelope-from t@tomoyat1.com) Received: from tomoyat1.com (KD182251122206.au-net.ne.jp [182.251.122.206]) by mail.tomoyat1.com (Postfix) with ESMTPSA id 2504D5F82 for ; Wed, 16 Aug 2017 10:36:38 +0900 (JST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tomoyat1.com; s=tomoyat1; t=1502847398; bh=yvum10c/eF9aIYdNI+Td9VF6uRCnQu46WGMozpvrvws=; h=Date:From:To:Subject:Message-ID:From:Sender:To:CC:Subject: Message-Id:Date; b=GH4tw5BCq5cDV+fgyCJPO5TwobVinZuP6PSzWcVyAyEtWTxTnM+krd2MB0BruvwMO PeBQYKmJIpBSljAT5uKzYz2vaK6HO8dfhX5Obe0aifzyLKxiutFPiLlXWDcfkXEVdk rb93ysyBytIM8IRJ/zMq+8MUuZX8oiMPgkF1oA2I= Date: Wed, 16 Aug 2017 10:36:36 +0900 From: Tomoya Tabuchi To: freebsd-current@freebsd.org Subject: Re: BSD awk bug ? Message-ID: <20170816013634.GA8152@tomoyat1.com> Mail-Followup-To: freebsd-current@freebsd.org References: <201708160114.v7G1EkxS079546@kx.openedu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201708160114.v7G1EkxS079546@kx.openedu.org> User-Agent: Mutt/1.7.2 (2016-11-26) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 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: Wed, 16 Aug 2017 01:43:08 -0000 On Wed, Aug 16, 2017 at 10:14:46AM +0900, KIRIYAMA Kazuhiko wrote: > admin@tbedfpc:~/tmp % ll > total 12 > -rw-r--r-- 1 admin admin 235 Aug 16 10:01 regex-1.sh > -rw-r--r-- 1 admin admin 236 Aug 16 10:01 regex-2.sh > -rw-r--r-- 1 admin admin 260 Aug 16 10:01 regex.sh > admin@tbedfpc:~/tmp % cat regex.sh > #!/bin/sh > > data='1 2 3 4 5 6 > 1 2 3 4 5 > 1 2 3 4 5 6 > 1 2 3 4 5 6 > 1 2 3 4 > 1 2 3' > > IFS=$'\n' > for datum in $data; do > if echo "$datum" | egrep -q '^([^[:space:]]+[[:space:]]+){5}'; then > echo "$datum" > else > echo "Not 6 components! : \"$datum\"" > fi > done > admin@tbedfpc:~/tmp % sh ./regex.sh > 1 2 3 4 5 6 > Not 6 components! : "1 2 3 4 5" > 1 2 3 4 5 6 > 1 2 3 4 5 6 > Not 6 components! : "1 2 3 4" > Not 6 components! : "1 2 3" > admin@tbedfpc:~/tmp % cat regex-1.sh > #!/bin/sh > > _f_awk=' > { > if ($0 ~ /^([^[:space:]]+[[:space:]]+){5}/) { > print $0 > } else { > print "Not 6 components! : \"" $0 "\"" > } > }' > > data='1 2 3 4 5 6 > 1 2 3 4 5 > 1 2 3 4 5 6 > 1 2 3 4 5 6 > 1 2 3 4 > 1 2 3' > > echo "$data" | awk "$_f_awk" > admin@tbedfpc:~/tmp % sh ./regex-1.sh > Not 6 components! : "1 2 3 4 5 6" > Not 6 components! : "1 2 3 4 5" > Not 6 components! : "1 2 3 4 5 6" > Not 6 components! : "1 2 3 4 5 6" > Not 6 components! : "1 2 3 4" > Not 6 components! : "1 2 3" > admin@tbedfpc:~/tmp % cat regex-2.sh > #!/bin/sh > > _f_awk=' > { > if ($0 ~ /^([^[:space:]]+[[:space:]]+){5}/) { > print $0 > } else { > print "Not 6 components! : \"" $0 "\"" > } > }' > > data='1 2 3 4 5 6 > 1 2 3 4 5 > 1 2 3 4 5 6 > 1 2 3 4 5 6 > 1 2 3 4 > 1 2 3' > > echo "$data" | gawk "$_f_awk" > admin@tbedfpc:~/tmp % sh ./regex-2.sh > 1 2 3 4 5 6 > Not 6 components! : "1 2 3 4 5" > 1 2 3 4 5 6 > 1 2 3 4 5 6 > Not 6 components! : "1 2 3 4" > Not 6 components! : "1 2 3" > admin@tbedfpc:~/tmp % uname -a > FreeBSD tbedfpc 12.0-CURRENT FreeBSD 12.0-CURRENT #0 r321597: Thu Jul 27 12:30:57 UTC 2017 root@tbedfc:/usr/obj/usr/src/sys/GENERIC amd64 > admin@tbedfpc:~/tmp % pkg info -aI|grep gawk > gawk-4.1.4_1 GNU version of Awk > admin@tbedfpc:~/tmp % > > > Is this the BSD awk (/usr/bin/awk) bug ? > > --- > KIRIYAMA Kazuhiko > _______________________________________________ > freebsd-current@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" Hello Kiriyama-san, The man page awk(1) says that {m,n} matcning is not supported. The "{5}" part matches the literal sequence of characters it's made out of, I suppose. Someone please correct me if I'm wrong. Regards, Tomoya From owner-freebsd-current@freebsd.org Wed Aug 16 03:15:51 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 018EADE24EB for ; Wed, 16 Aug 2017 03:15:51 +0000 (UTC) (envelope-from kiri@kx.openedu.org) Received: from kx.openedu.org (flets-sg1027.kamome.or.jp [202.216.24.27]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 94C126CC18 for ; Wed, 16 Aug 2017 03:15:49 +0000 (UTC) (envelope-from kiri@kx.openedu.org) Received: from kx.openedu.org (kx.openedu.org [202.216.24.27]) by kx.openedu.org (8.14.5/8.14.5) with ESMTP id v7G3FlAV081765 for ; Wed, 16 Aug 2017 12:15:47 +0900 (JST) (envelope-from kiri@kx.openedu.org) Message-Id: <201708160315.v7G3FlAV081765@kx.openedu.org> Date: Wed, 16 Aug 2017 12:15:47 +0900 From: KIRIYAMA Kazuhiko To: freebsd-current@freebsd.org Subject: Re: BSD awk bug ? In-Reply-To: <20170816013634.GA8152@tomoyat1.com> References: <201708160114.v7G1EkxS079546@kx.openedu.org> <20170816013634.GA8152@tomoyat1.com> User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL/10.6 MULE XEmacs/21.4 (patch 22) (Instant Classic) (amd64--freebsd) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 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: Wed, 16 Aug 2017 03:15:51 -0000 At Wed, 16 Aug 2017 10:36:36 +0900, Tomoya Tabuchi wrote: > > On Wed, Aug 16, 2017 at 10:14:46AM +0900, KIRIYAMA Kazuhiko wrote: > > admin@tbedfpc:~/tmp % ll > > total 12 > > -rw-r--r-- 1 admin admin 235 Aug 16 10:01 regex-1.sh > > -rw-r--r-- 1 admin admin 236 Aug 16 10:01 regex-2.sh > > -rw-r--r-- 1 admin admin 260 Aug 16 10:01 regex.sh > > admin@tbedfpc:~/tmp % cat regex.sh > > #!/bin/sh > > > > data='1 2 3 4 5 6 > > 1 2 3 4 5 > > 1 2 3 4 5 6 > > 1 2 3 4 5 6 > > 1 2 3 4 > > 1 2 3' > > > > IFS=$'\n' > > for datum in $data; do > > if echo "$datum" | egrep -q '^([^[:space:]]+[[:space:]]+){5}'; then > > echo "$datum" > > else > > echo "Not 6 components! : \"$datum\"" > > fi > > done > > admin@tbedfpc:~/tmp % sh ./regex.sh > > 1 2 3 4 5 6 > > Not 6 components! : "1 2 3 4 5" > > 1 2 3 4 5 6 > > 1 2 3 4 5 6 > > Not 6 components! : "1 2 3 4" > > Not 6 components! : "1 2 3" > > admin@tbedfpc:~/tmp % cat regex-1.sh > > #!/bin/sh > > > > _f_awk=' > > { > > if ($0 ~ /^([^[:space:]]+[[:space:]]+){5}/) { > > print $0 > > } else { > > print "Not 6 components! : \"" $0 "\"" > > } > > }' > > > > data='1 2 3 4 5 6 > > 1 2 3 4 5 > > 1 2 3 4 5 6 > > 1 2 3 4 5 6 > > 1 2 3 4 > > 1 2 3' > > > > echo "$data" | awk "$_f_awk" > > admin@tbedfpc:~/tmp % sh ./regex-1.sh > > Not 6 components! : "1 2 3 4 5 6" > > Not 6 components! : "1 2 3 4 5" > > Not 6 components! : "1 2 3 4 5 6" > > Not 6 components! : "1 2 3 4 5 6" > > Not 6 components! : "1 2 3 4" > > Not 6 components! : "1 2 3" > > admin@tbedfpc:~/tmp % cat regex-2.sh > > #!/bin/sh > > > > _f_awk=' > > { > > if ($0 ~ /^([^[:space:]]+[[:space:]]+){5}/) { > > print $0 > > } else { > > print "Not 6 components! : \"" $0 "\"" > > } > > }' > > > > data='1 2 3 4 5 6 > > 1 2 3 4 5 > > 1 2 3 4 5 6 > > 1 2 3 4 5 6 > > 1 2 3 4 > > 1 2 3' > > > > echo "$data" | gawk "$_f_awk" > > admin@tbedfpc:~/tmp % sh ./regex-2.sh > > 1 2 3 4 5 6 > > Not 6 components! : "1 2 3 4 5" > > 1 2 3 4 5 6 > > 1 2 3 4 5 6 > > Not 6 components! : "1 2 3 4" > > Not 6 components! : "1 2 3" > > admin@tbedfpc:~/tmp % uname -a > > FreeBSD tbedfpc 12.0-CURRENT FreeBSD 12.0-CURRENT #0 r321597: Thu Jul 27 12:30:57 UTC 2017 root@tbedfc:/usr/obj/usr/src/sys/GENERIC amd64 > > admin@tbedfpc:~/tmp % pkg info -aI|grep gawk > > gawk-4.1.4_1 GNU version of Awk > > admin@tbedfpc:~/tmp % > > > > > > Is this the BSD awk (/usr/bin/awk) bug ? > > > > --- > > KIRIYAMA Kazuhiko > > _______________________________________________ > > freebsd-current@freebsd.org mailing list > > https://lists.freebsd.org/mailman/listinfo/freebsd-current > > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" > > Hello Kiriyama-san, > > The man page awk(1) says that {m,n} matcning is not supported. The "{5}" > part matches the literal sequence of characters it's made out of, I suppose. Oops. I missed "STANDARDS" section. Thanks for pointed out. # But as it says in front "awk supports extended regular # expressions (EREs). See re_format(7) for more information # on regular expressions.", I'd like to coinside with # re_format(7) spec. > > Someone please correct me if I'm wrong. > > Regards, > Tomoya > _______________________________________________ > freebsd-current@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" > --- KIRIYAMA Kazuhiko From owner-freebsd-current@freebsd.org Wed Aug 16 02:02:21 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 46E69DDE625 for ; Wed, 16 Aug 2017 02:02:21 +0000 (UTC) (envelope-from j.a.mclaughlin@newcastle.ac.uk) Received: from mailhub-mx2.ncl.ac.uk (mailhub-mx2.ncl.ac.uk [128.240.234.82]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "spam.ncl.ac.uk", Issuer "QuoVadis Global SSL ICA G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A0A2C6A5FB for ; Wed, 16 Aug 2017 02:02:20 +0000 (UTC) (envelope-from j.a.mclaughlin@newcastle.ac.uk) Received: (Haraka outbound); Wed, 16 Aug 2017 03:01:06 +0100 Authentication-Results: mailhub-mx2.ncl.ac.uk; spf=pass smtp.mailfrom=newcastle.ac.uk X-Haraka-RcptSummary: valid=0/0 invalid=0/0 unverified=0/0 relay=1/1 norelay=0/0 X-Haraka-Relay: true Received-SPF: Pass (mailhub-mx2.ncl.ac.uk: domain of newcastle.ac.uk designates 10.3.192.247 as permitted sender) receiver=mailhub-mx2.ncl.ac.uk; identity=mailfrom; client-ip=10.3.192.247; helo=mailhub-ncl1; envelope-from= Received: from mailhub-ncl1 ([10.3.192.247]) by mailhub-mx2.ncl.ac.uk (DefenderMX/2.7.3) with ESMTPS id F3D393E3-AC58-492B-88C9-D88257FC9DDB.1 envelope-from (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 verify=FAIL); Wed, 16 Aug 2017 03:01:06 +0100 Received: from exhubvm01.ncl.ac.uk ([128.240.234.86] helo=EXHUBVM01.campus.ncl.ac.uk) by mailhub-ncl1 with esmtp (Exim 4.84_2) (envelope-from ) id 1dhndp-0003ZZ-KY for freebsd-current@freebsd.org; Wed, 16 Aug 2017 03:01:05 +0100 Received: from EUR02-HE1-obe.outbound.protection.outlook.com (213.199.180.176) by exhub.ncl.ac.uk (128.240.234.86) with Microsoft SMTP Server (TLS) id 14.3.361.1; Wed, 16 Aug 2017 03:01:05 +0100 Received: from DB6PR07MB3190.eurprd07.prod.outlook.com (10.175.232.153) by DB6PR07MB3399.eurprd07.prod.outlook.com (10.175.234.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.1362.12; Wed, 16 Aug 2017 02:01:03 +0000 Received: from DB6PR07MB3190.eurprd07.prod.outlook.com ([fe80::d99d:76b5:3ed1:877c]) by DB6PR07MB3190.eurprd07.prod.outlook.com ([fe80::d99d:76b5:3ed1:877c%13]) with mapi id 15.01.1362.018; Wed, 16 Aug 2017 02:01:03 +0000 From: "James Alastair McLaughlin (PGR)" To: "freebsd-current@freebsd.org" Subject: Status of SO_PASSCRED in Linux compatibility Thread-Topic: Status of SO_PASSCRED in Linux compatibility Thread-Index: AQHTFiYdbGcTkCs010+9xYyGKShb/g== Date: Wed, 16 Aug 2017 02:01:03 +0000 Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [79.70.156.4] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; DB6PR07MB3399; 6:f2WK89VegIIWKSqMwABLraSuFwrM+x514DG2+QLcRIwb2RrZdQDSY+R74xSyBaQWM9t3uV/W2qkv5hE629j6i3+M1aCjESA+OnrGY0cXWR14VLWCvnEw4PaDVvyE0Ge4d5YRJNypiFIvQRRQeIE/VIjoHLfVVZ1m1L/uj78F4Ua/7sFaSDfaz8sBpP65Aunrv2KZg8CILyt77iXbA6XtnFiWwgiDS+jg0uxsheS9a71tgSHhxInLc3GayHEejp7Nw/blTA2BDtvnPRQ4XGFH2gXoiJXcF/cQM33rM65LYgmwIa+UcSX2ASdQe17aAfLI3Pj5wB+Jrsctwd4IW8MQQg==; 5:QE5VWGn/NI7NGvOuzZRfdpx69OFiFwxWvv4YL7LalcMhtopJChP65xzamhkHCI64GLaWNqfw9n6oHYhrzvlwRfdhQmTWP3+8NE0KPGfNV8TtCJmM8TkS6zJLfjyM5wc2cmxVOmauwh5wh5uFJvIZLw==; 24:xuybrGOXozQmmbHtt8dOUmdn0P1C4g4Py34IMKfXLfsrw4dOUEWRrzAx5NwPMpL7F5HvgTq4XyD2DXIrHsIy+whEEKq0R2SShYgDDpJ9u/g=; 7:ih8XdmKcITZnu6kXxVqQKmaiLXqCe2yOu0MBjm8FP1j+bnCNB3TwYEpkDD9vjjJR2IS1iIo6ouyp+pM3OC0D2uSYD4QGswFbL25IJxNXT8U6NJEFfxie82+3rqClAtNoJYazqtptWIwkvutQi2a3K3T8ix3rwIRRMbMdG12lTcx/w+YXx4zPfYD9Js6U0JRlFlderMg4fngkghtUNzxcL+ykFjPuAaEr9xE6ebULw40= x-ms-office365-filtering-correlation-id: f75af62b-2303-4f01-92b7-08d4e44aa696 x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(300000503095)(300135400095)(2017052603151)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:DB6PR07MB3399; x-ms-traffictypediagnostic: DB6PR07MB3399: x-exchange-antispam-report-test: UriScan:(278428928389397)(166708455590820); x-microsoft-antispam-prvs: x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(8121501046)(100000703101)(100105400095)(3002001)(93006095)(93001095)(10201501046)(6041248)(201703131423075)(201702281529075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(20161123560025)(20161123555025)(20161123562025)(20161123564025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:DB6PR07MB3399; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:DB6PR07MB3399; x-forefront-prvs: 0401647B7F x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(189002)(199003)(2900100001)(53936002)(236005)(81156014)(2351001)(7736002)(81166006)(106356001)(8676002)(19627405001)(5640700003)(110136004)(99286003)(105586002)(3660700001)(8936002)(54896002)(6306002)(6512007)(3280700002)(3846002)(83716003)(66066001)(102836003)(2906002)(5660300001)(6436002)(6116002)(2501003)(5250100002)(82746002)(6506006)(6486002)(97736004)(74482002)(478600001)(6916009)(25786009)(45080400002)(36756003)(189998001)(606006)(575784001)(68736007)(33656002)(42882006)(86362001)(14454004)(966005)(413944005)(101416001)(54356999)(50986999); DIR:OUT; SFP:1101; SCL:1; SRVR:DB6PR07MB3399; H:DB6PR07MB3190.eurprd07.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; received-spf: None (protection.outlook.com: newcastle.ac.uk does not designate permitted sender hosts) spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Aug 2017 02:01:03.8899 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 9c5012c9-b616-44c2-a917-66814fbe3e87 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR07MB3399 X-OriginatorOrg: newcastle.ac.uk X-NCL-mrate: cflags=() mflags=() X-Haraka-Syntax: mail_case=upper mail_leading_spaces=N mail_trailing_spaces=N mail_missing_brackets=N rcpt_case=upper rcpt_leading_spaces=N rcpt_missing_brackets=N rcpt_trailing_spaces=N X-Haraka-GeoIP-Received: 79.70.156.4:undefined X-Haraka-HostID: 10.3.192.247 X-Haraka-SenderAuth: 10.3.192.247 newcastle.ac.uk X-Haraka-AccessMap: connect:10 OK X-Haraka-Domain-Info: domain="newcastle.ac.uk" last_update=1 primary_ns="dns0.ncl.ac.uk" serial=2017081516 refresh=10800 retry=3600 expiration=604800 minimum=3600 flags="SOA_UPDATE_1" X-Haraka-Virus: Heuristics.Structured.SSN X-Haraka-SubjectNonLatin: 0 X-Haraka-NonLatin: 0 References: <7174F105-C70E-40C6-BDEB-FBD6E6CD1DB6@newcastle.ac.uk> Message-Id: X-Mailman-Approved-At: Wed, 16 Aug 2017 03:55:06 +0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 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: Wed, 16 Aug 2017 02:02:21 -0000 RGVhciBhbGwsDQoNCg0KSSd2ZSBiZWVuIGF0dGVtcHRpbmcgdG8gcnVuIFZpc3VhbCBTdHVkaW8g Q29kZVsxXSBpbiBhbiBVYnVudHUgMTYuMDQgY2hyb290LiBWUyBDb2RlIGlzIGJ1aWx0IHVzaW5n IEVsZWN0cm9uLCB3aGljaCBpcyBiYXNpY2FsbHkgYSBtaW5pbWFsIGNocm9taXVtIHRvIGVuYWJs ZSBidWlsZGluZyBkZXNrdG9wIGFwcGxpY2F0aW9ucyB1c2luZyB3ZWIgdGVjaG5vbG9neS4NCg0K DQpXaGlsZSBJIHdhcyBhYmxlIHRvIGluc3RhbGwgVlMgQ29kZSBhbmQgYWxsIGl0cyBkZXBlbmRl bmNpZXMgaW4gbXkgY2hyb290LCBJJ20gbm93IHN0dWNrIHdpdGggdGhlIGZvbGxvd2luZyBlcnJv ciBvbiBhdHRlbXB0aW5nIHRvIHJ1biBpdDoNCg0KDQogICAgWzUyNjk6MDgxNi8wMDEzMjAuOTE4 MjM0OkZBVEFMOnp5Z290ZV9ob3N0X2ltcGxfbGludXguY2MoMTQwKV0gQ2hlY2sgZmFpbGVkOiBi YXNlOjpVbml4RG9tYWluU29ja2V0OjpFbmFibGVSZWNlaXZlUHJvY2Vzc0lkKGZkc1swXSkuDQoN Cg0KQWZ0ZXIgaW52ZXN0aWdhdGluZyB0aGUgQ2hyb21pdW0gc291cmNlIGNvZGUsIEkndmUgZm91 bmQgdGhhdCB0aGUgRW5hYmxlUmVjZWl2ZVByb2Nlc3NJZCBmdW5jdGlvbiBjYWxscyBzZXRzb2Nr b3B0KDIpIHdpdGggdGhlIFNPTF9TT0NLRVQgbGV2ZWwgYW5kIHRoZSBvcHRpb24gbmFtZSBTT19Q QVNTQ1JFRC4gIFRoaXMgZmFpbHMgYmVjYXVzZSBTT19QQVNTQ1JFRCBJcyBub3QgaW1wbGVtZW50 ZWQgaW4gdGhlIExpbnV4IHNvY2tldCBjb21wYXRpYmlsaXR5IGxheWVyWzJdLg0KDQoNCkFmdGVy IHNvbWUgZ29vZ2xpbmcsIEkndmUgZm91bmQgYSBwYXRjaFszXSBmcm9tIDIwMTAgdG8gaW1wbGVt ZW50IFNPX1BBU1NDUkVEIHRoYXQgaXQgc2VlbXMgaGFzIG5ldmVyIGJlZW4gbWVyZ2VkLiAgRG9l cyBhbnlvbmUga25vdyB3aHksIGFuZCBpZiB0aGVyZSBhcmUgYW55IHBsYW5zIHRvIG1lcmdlIGl0 Pw0KDQoNClRoYW5rcywNCg0KDQpKYW1lcw0KDQoNCg0KWzFdIGh0dHBzOi8vZ2l0aHViLmNvbS9N aWNyb3NvZnQvdnNjb2RlDQoNClsyXSBodHRwczovL2dpdGh1Yi5jb20vZnJlZWJzZC9mcmVlYnNk L2Jsb2IvNTQ1MTgwNDEwN2JkN2ZkOGFiMGZjY2JhMDI5M2YzZGVmNmNjZjBiZS9zeXMvY29tcGF0 L2xpbnV4L2xpbnV4X3NvY2tldC5jDQoNClszXSBodHRwczovL3Blb3BsZS5mcmVlYnNkLm9yZy9+ bm94L2xpbnV4LXNvX3Bhc3NjcmVkLnBhdGNoPGh0dHBzOi8vcGVvcGxlLmZyZWVic2Qub3JnLyU3 RW5veC9saW51eC1zb19wYXNzY3JlZC5wYXRjaD4NCg0KDQo= From owner-freebsd-current@freebsd.org Wed Aug 16 04:54:30 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E7092DC2F6B for ; Wed, 16 Aug 2017 04:54:30 +0000 (UTC) (envelope-from pi@opsec.eu) Received: from home.opsec.eu (home.opsec.eu [IPv6:2001:14f8:200::1]) (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 AA2416FBF9 for ; Wed, 16 Aug 2017 04:54:30 +0000 (UTC) (envelope-from pi@opsec.eu) Received: from pi by home.opsec.eu with local (Exim 4.89 (FreeBSD)) (envelope-from ) id 1dhqLb-0005S7-O1; Wed, 16 Aug 2017 06:54:27 +0200 Date: Wed, 16 Aug 2017 06:54:27 +0200 From: Kurt Jaeger To: "James Alastair McLaughlin (PGR)" Cc: "freebsd-current@freebsd.org" Subject: Re: Status of SO_PASSCRED in Linux compatibility Message-ID: <20170816045427.GN81427@home.opsec.eu> References: <7174F105-C70E-40C6-BDEB-FBD6E6CD1DB6@newcastle.ac.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Mailman-Approved-At: Wed, 16 Aug 2017 05:27:18 +0000 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 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: Wed, 16 Aug 2017 04:54:31 -0000 Hi! > After some googling, I've found a patch[3] from 2010 to implement > SO_PASSCRED that it seems has never been merged. Does anyone know > why, and if there are any plans to merge it? Can you test if the patch still applies ? And that it works ? Then submit it via bugs.freebsd.org ? -- pi@opsec.eu +49 171 3101372 3 years to go ! From owner-freebsd-current@freebsd.org Wed Aug 16 06:28:53 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 55E42DC7F94 for ; Wed, 16 Aug 2017 06:28:53 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: from mail-pf0-x22a.google.com (mail-pf0-x22a.google.com [IPv6:2607:f8b0:400e:c00::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2112D7217E for ; Wed, 16 Aug 2017 06:28:53 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: by mail-pf0-x22a.google.com with SMTP id c28so2377254pfe.3 for ; Tue, 15 Aug 2017 23:28:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:mime-version:from:in-reply-to:date:cc:message-id:references :to; bh=An2p4t310vhpHcZLddMm66CyfIGLBcDw5w6fdBinOUs=; b=dME2Y7cVk0OoFogjUzunogKV2ty3E+p7njgk85MIZ5bf6VQvytCHUtgyigh/MO3F2u F+HY/5m3kPvW33olH2yiNQWCSQLaE6Rw8ozouZq6pNuY01nPgOaZ6ttZwPy8nRbXmOyx mdQelF+wp8lA2UeAZR7gYqZzQQ+jToDG4z740fjerAcZ/xO4BI5nS5ypYwvOvVw2A19W Rb7w2kyjgBz256+fB3KEKaenc4vQS4Lg445a+UqHJl3N9q2jSSklBHkAi+iQesr07JeF IzzWz3ETx7eAYPiYH0Pg9A4kbEDIceGuGpqTZ18lP3HJK8NS8tIyuOCPPUXd7YS2Qdsd mK8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:mime-version:from:in-reply-to:date:cc :message-id:references:to; bh=An2p4t310vhpHcZLddMm66CyfIGLBcDw5w6fdBinOUs=; b=Jw1QruU8VMueUiXaryd9mtycJ1T1keHRRbXgGn+jJPXuX/SqQXjnhodtBVM//HdrXb QaGURBIyR2CAMIXbv00r9MlY2Ik9rrXXElFPtmwN9Ke8TdJ3OMEwmlLAsk11cbfE80T8 xfV4HYBN2rLvbACuPu/k+YJn78idCzFF4LGXS4E/qYXHW72lzhe3/kbJVa3ZCFugt3PL Zihp2VQjrs+gVcCt/ZneVlwTZDM13qyKNiZVgYT3SRpk0SVIFa4yh9Tg277bzveyjY70 +nY1yFZcM6LW+8MDLozxmseqxmOZNRAIhfNyihFvPnt3zOP43D5G0yYA+uouQgJ8I5wI cx8g== X-Gm-Message-State: AHYfb5irmONu1iQJcscT+ENLz0zcC+1UKKBygu0bvtKW/DprVitvGiMG bw9OKJnQBPAxOrfAlQg= X-Received: by 10.98.157.206 with SMTP id a75mr633398pfk.169.1502864932489; Tue, 15 Aug 2017 23:28:52 -0700 (PDT) Received: from pinklady.local (c-73-19-52-228.hsd1.wa.comcast.net. [73.19.52.228]) by smtp.gmail.com with ESMTPSA id u69sm386084pfa.70.2017.08.15.23.28.51 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 15 Aug 2017 23:28:51 -0700 (PDT) Subject: Re: BSD awk bug ? Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Content-Type: multipart/signed; boundary="Apple-Mail=_2169727D-6ABE-4924-84C1-CCD1EBF55871"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Pgp-Agent: GPGMail From: "Ngie Cooper (yaneurabeya)" In-Reply-To: <201708160315.v7G3FlAV081765@kx.openedu.org> Date: Tue, 15 Aug 2017 23:28:50 -0700 Cc: freebsd-current@freebsd.org Message-Id: <01859567-67AA-4706-BB90-84AF8E0C6208@gmail.com> References: <201708160114.v7G1EkxS079546@kx.openedu.org> <20170816013634.GA8152@tomoyat1.com> <201708160315.v7G3FlAV081765@kx.openedu.org> To: KIRIYAMA Kazuhiko X-Mailer: Apple Mail (2.3124) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 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: Wed, 16 Aug 2017 06:28:53 -0000 --Apple-Mail=_2169727D-6ABE-4924-84C1-CCD1EBF55871 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Aug 15, 2017, at 20:15, KIRIYAMA Kazuhiko = wrote: >=20 > At Wed, 16 Aug 2017 10:36:36 +0900, > Tomoya Tabuchi wrote: >>=20 >> On Wed, Aug 16, 2017 at 10:14:46AM +0900, KIRIYAMA Kazuhiko wrote: >>> admin@tbedfpc:~/tmp % ll >>> total 12 >>> -rw-r--r-- 1 admin admin 235 Aug 16 10:01 regex-1.sh >>> -rw-r--r-- 1 admin admin 236 Aug 16 10:01 regex-2.sh >>> -rw-r--r-- 1 admin admin 260 Aug 16 10:01 regex.sh >>> admin@tbedfpc:~/tmp % cat regex.sh >>> #!/bin/sh >>>=20 >>> data=3D'1 2 3 4 5 6 >>> 1 2 3 4 5 >>> 1 2 3 4 5 6 >>> 1 2 3 4 5 6 >>> 1 2 3 4 >>> 1 2 3' >>>=20 >>> IFS=3D$'\n' >>> for datum in $data; do >>> if echo "$datum" | egrep -q '^([^[:space:]]+[[:space:]]+){5}'; = then >>> echo "$datum" >>> else >>> echo "Not 6 components! : \"$datum\"" >>> fi >>> done >>> admin@tbedfpc:~/tmp % sh ./regex.sh >>> 1 2 3 4 5 6 >>> Not 6 components! : "1 2 3 4 5" >>> 1 2 3 4 5 6 >>> 1 2 3 4 5 6 >>> Not 6 components! : "1 2 3 4" >>> Not 6 components! : "1 2 3" >>> admin@tbedfpc:~/tmp % cat regex-1.sh >>> #!/bin/sh >>>=20 >>> _f_awk=3D' >>> { >>> if ($0 ~ /^([^[:space:]]+[[:space:]]+){5}/) { >>> print $0 >>> } else { >>> print "Not 6 components! : \"" $0 "\"" >>> } >>> }' >>>=20 >>> data=3D'1 2 3 4 5 6 >>> 1 2 3 4 5 >>> 1 2 3 4 5 6 >>> 1 2 3 4 5 6 >>> 1 2 3 4 >>> 1 2 3' >>>=20 >>> echo "$data" | awk "$_f_awk" >>> admin@tbedfpc:~/tmp % sh ./regex-1.sh >>> Not 6 components! : "1 2 3 4 5 6" >>> Not 6 components! : "1 2 3 4 5" >>> Not 6 components! : "1 2 3 4 5 6" >>> Not 6 components! : "1 2 3 4 5 6" >>> Not 6 components! : "1 2 3 4" >>> Not 6 components! : "1 2 3" >>> admin@tbedfpc:~/tmp % cat regex-2.sh >>> #!/bin/sh >>>=20 >>> _f_awk=3D' >>> { >>> if ($0 ~ /^([^[:space:]]+[[:space:]]+){5}/) { >>> print $0 >>> } else { >>> print "Not 6 components! : \"" $0 "\"" >>> } >>> }' >>>=20 >>> data=3D'1 2 3 4 5 6 >>> 1 2 3 4 5 >>> 1 2 3 4 5 6 >>> 1 2 3 4 5 6 >>> 1 2 3 4 >>> 1 2 3' >>>=20 >>> echo "$data" | gawk "$_f_awk" >>> admin@tbedfpc:~/tmp % sh ./regex-2.sh >>> 1 2 3 4 5 6 >>> Not 6 components! : "1 2 3 4 5" >>> 1 2 3 4 5 6 >>> 1 2 3 4 5 6 >>> Not 6 components! : "1 2 3 4" >>> Not 6 components! : "1 2 3" >>> admin@tbedfpc:~/tmp % uname -a >>> FreeBSD tbedfpc 12.0-CURRENT FreeBSD 12.0-CURRENT #0 r321597: Thu = Jul 27 12:30:57 UTC 2017 root@tbedfc:/usr/obj/usr/src/sys/GENERIC = amd64 >>> admin@tbedfpc:~/tmp % pkg info -aI|grep gawk >>> gawk-4.1.4_1 GNU version of Awk >>> admin@tbedfpc:~/tmp % >>>=20 >>>=20 >>> Is this the BSD awk (/usr/bin/awk) bug ? >>=20 >> Hello Kiriyama-san, >>=20 >> The man page awk(1) says that {m,n} matcning is not supported. The = "{5}" >> part matches the literal sequence of characters it's made out of, I = suppose. >=20 > Oops. I missed "STANDARDS" section. Thanks for pointed out. >=20 > # But as it says in front "awk supports extended regular > # expressions (EREs). See re_format(7) for more information > # on regular expressions.", I'd like to coinside with > # re_format(7) spec. Hello Kiriyama-san, I asked this same question a while back and was told that the = {n} form didn=E2=80=99t work with nawk. I=E2=80=99ll have to dig up the = exact post if it=E2=80=99s somewhere public. Cheers, -Ngie --Apple-Mail=_2169727D-6ABE-4924-84C1-CCD1EBF55871 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJZk+YiAAoJEPWDqSZpMIYVU14P/0nDFQM3l1iLXHR+ezDBNbVg mIxRAl7a2lgSeZLr+pt7GENf7M9WJMxZ7ErV7wtk6J6BhAUvKQMwdBGVzvCP1g9I FKxM4onLvxuVTY/pO93jhZrHLPn+VslD3vQTRuPKae6jELeK4HE6srmKHfrmhMeV 9EPent0o49Bgy+OWTOT0L2xaDdcCtQSfggYa/zCkMYcq9gvTaeYt0ZOd0pTsjmTt ht5t7BfPBu2wAnijVfmn4BEiycuk0tsWCOaPrtsoLcoO4nAUOayF6hgqrzVkYMdO Rl4H9OvZYF4cOBFDA0/Y56rgCKwwgzhyBTYoZbBoRrx4R029PeostM1cosWwewEg PjNA2RHc5ICWZIqFgJZlSiBzrk/W7Nk12MAOxmQQzgpBe2ceNwKBIlk19BQDY9Rs M+2WJMl0LA0tVK7koap++bTFRNxzN+433GwejPHc4/CRj+g1zMC3YzIVYfi3RXTP YXyXyLXXRM6a/F2bPkwpto1t4MmyTsOFomiVnh0F/eT7zLo223q9Yl579H5mjG6t DwppEaCFgNQ+nT2AitBY7KFCU1VRgWlZ3kncWqHRPT02MKShuKf/9UYed9qGeSqZ uJ+MShppBP9BDC4UatAMu6+4VuY6xp7ekn3PpunFELKvH1l8XXP0+N2HbUw7bR3/ q5wHXDm2Ik/DokXXKvNY =Z11A -----END PGP SIGNATURE----- --Apple-Mail=_2169727D-6ABE-4924-84C1-CCD1EBF55871-- From owner-freebsd-current@freebsd.org Wed Aug 16 12:57:31 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 88F8FDDA6B9; Wed, 16 Aug 2017 12:57:31 +0000 (UTC) (envelope-from paggas1@yandex.com) Received: from forward102j.mail.yandex.net (forward102j.mail.yandex.net [IPv6:2a02:6b8:0:801:2::102]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "forwards.mail.yandex.net", Issuer "Yandex CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 403C6822CE; Wed, 16 Aug 2017 12:57:31 +0000 (UTC) (envelope-from paggas1@yandex.com) Received: from mxback5g.mail.yandex.net (mxback5g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:166]) by forward102j.mail.yandex.net (Yandex) with ESMTP id 42A0156039FD; Wed, 16 Aug 2017 15:57:27 +0300 (MSK) Received: from smtp2p.mail.yandex.net (smtp2p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:7]) by mxback5g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 34GbflkV8K-vRoCI82p; Wed, 16 Aug 2017 15:57:27 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.com; s=mail; t=1502888247; bh=NkwE5CrTfie/hITH7u+LgZQ9tTX/QWJM03tMQFxHSeo=; h=Subject:To:References:From:Message-ID:Date:In-Reply-To; b=VPDL3mbK9EkyeLScmLcA47K/mAFi0FZ2GVC3sfx62bekgBjllMOUQF7oN1YAiSENI R1BneKa+BkBOz+yo2yfAQsSzUYC+M68TVfR4zG/hd1m1Cn84d2nFoU7hgwZPN1Qgod 10XoY5bQjDofmIWqtGJeFvzwTzyj/bgud1brvx0I= Received: by smtp2p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id 4Z2x1DThGp-vQdWHAlZ; Wed, 16 Aug 2017 15:57:26 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.com; s=mail; t=1502888246; bh=NkwE5CrTfie/hITH7u+LgZQ9tTX/QWJM03tMQFxHSeo=; h=Subject:To:References:From:Message-ID:Date:In-Reply-To; b=dXxjTTkIGnnCUbMjZjajoaGycrphAjNwfUt1qbK8u+73R/Cq5pnIhva5H9EYAksaf yFVtK31h56jvwE09hQdl4nom5npYuBvYhhlkT72iXHoLPic8nxQQ+Vd7m2fsmf3fAz M9zn4AHxvBxnXd9MgjabX8+gQtD4iuEnEjOtMHHM= Authentication-Results: smtp2p.mail.yandex.net; dkim=pass header.i=@yandex.com Subject: Re: Install FreeBSD from source into VM image To: Matt Joras , FreeBSD Current , "freebsd-hackers@freebsd.org" References: <8888acfa-4dc8-a68f-8ca8-c4df84e5e74a@yandex.com> <97d0475c-9603-03d8-144d-dc803e5530c7@FreeBSD.org> From: Panagiotes Mousikides Message-ID: <9152fc29-125d-1c01-ecfa-740a1cfcaadd@yandex.com> Date: Wed, 16 Aug 2017 12:57:25 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <97d0475c-9603-03d8-144d-dc803e5530c7@FreeBSD.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 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: Wed, 16 Aug 2017 12:57:31 -0000 Den 2017-08-14 kl. 18:49, skrev Matt Joras: > On 08/14/2017 11:42, Panagiotes Mousikides wrote: >> I am working on the FreeBSD test suite, and need to create an image >> file from source. How can I do that? >> >> I need to run something similar to make installkernel && make >> installworld with an image file as the target, such that the end >> result is a ready-made FreeBSD system that can be started up with >> bhyve. How can I do that, including creating the correct /etc files, >> and the correct boot code and partitioning? >> > See release(7), https://www.freebsd.org/cgi/man.cgi?release(7). The > relevant section is under virtual machine disk images and the vm-image > target. The VMFORMATS for bhyve is "raw". That will generate an image > that "just works" with vmrun.sh > > Matt Joras > Hi Matt! Thank you so much for the tip! I tried what you recommended, the command I ran specifically was (inside release/) sudo make vm-image WITH_VMIMAGES=1 VMBASE=aaaa VMSIZE=2G VMFORMATS=raw VMSIZE=2G vm-image followed by sudo sh /usr/share/examples/bhyve/vmrun.sh -d aaaa.raw vm-aaaa but apparently the image generated doesn't work. The error I'm getting after hitting "1" at the boot screen is Error return from kevent monitor: Not permitted in capability mode repeatedly cascading through the screen. Any ideas? I would greatly appreciate your help! Best regards, Panagiotes From owner-freebsd-current@freebsd.org Wed Aug 16 20:32:05 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 74F45DCF2D4; Wed, 16 Aug 2017 20:32:05 +0000 (UTC) (envelope-from peixotocassiano@gmail.com) Received: from mail-qk0-x233.google.com (mail-qk0-x233.google.com [IPv6:2607:f8b0:400d:c09::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3424B6EACA; Wed, 16 Aug 2017 20:32:05 +0000 (UTC) (envelope-from peixotocassiano@gmail.com) Received: by mail-qk0-x233.google.com with SMTP id z18so26704625qka.4; Wed, 16 Aug 2017 13:32:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=PLAT+npSQtEx5+twCyGzEUGl/krTmQiNNTQF+Rn3qaM=; b=YiKSPEqVetmxlq3LfEFuYx/SlZWl58IIU0il6NOm3Jgfl1ShI75FwIGa5ZX4eUQUaL NwBlwz46sMrArYHla6NN0dc83zeCF7gn0arbVDuJH2J9dlk9O0Q6Q9R/4U1h3n7acZUt o6FPO6dkvXJO5MllNhkPnZcRgb8ZMluudx4XtsDKBfXf0eTzfCeIvM2MmrqeKc7oiEMb kIC3lQYVTXNN6xZYoDvw3Ctgr1eaPBE9WUEHxHxCsaRZ35HBx1MkKpEMHqXuFZCBE0/w Lyw9gIn/2ITERxahuhUZV65OjxUy9fZMjpk9+58eEeCanf8AyVP76V1qOutLC6mvay/i Hqqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=PLAT+npSQtEx5+twCyGzEUGl/krTmQiNNTQF+Rn3qaM=; b=uBC2Gn7YnW/pMMy9InuyJOJVN6TiwTc+/EyZACsr/gzczXQEha8pVLj6M6fTpDE7nj I3FXRYmK5PB6MQp/yqqHzOUCfsP6TiS+PA7+vW6DU/qeM3qmrzuZ0TWxoUVg88sRE/5K 124PvfXkxtrjDwcj2xxJiCZhaTjWPTvcMaeqs20rj8GCwjtLZKgG7vK5DXefddq+YDeR 3Hpbf9KUOz/DalPUsCe7maeZqEXV4n+cR31sktJcGmRs9oWPAzCkwXbdCSUfW6BT93DH pKL0ZLsJvKrwtA61Bf6Jeu3tveIo97CkzoG/wWWOXKA9g0MgAuM0PFIVp41PkjIlE5Ot FHNA== X-Gm-Message-State: AHYfb5jQL2HL6Pim/QOBq/V7fYpkQ14+qie0w8tN8QfbxkAaSGfdzfm6 rVjJKIpFc7Od+rSZecHV5HbCKfpmRXEF X-Received: by 10.55.123.197 with SMTP id w188mr3799833qkc.282.1502915524194; Wed, 16 Aug 2017 13:32:04 -0700 (PDT) MIME-Version: 1.0 Received: by 10.200.47.72 with HTTP; Wed, 16 Aug 2017 13:32:03 -0700 (PDT) From: Cassiano Peixoto Date: Wed, 16 Aug 2017 17:32:03 -0300 Message-ID: Subject: Denverton CPU on FreeBSD To: freebsd-stable@freebsd.org, freebsd-current@freebsd.org X-Mailman-Approved-At: Wed, 16 Aug 2017 21:32:57 +0000 Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 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: Wed, 16 Aug 2017 20:32:05 -0000 Hi there, Is someone playing with Denverton CPU On FreeBSD? I'm trying to use serial console on FreeBSD with Denverton CPU but doesn't work. I can see the boot process but it stops and I do not have the login prompt. My keyboard doesn't answer as well. I tried it with FreeBSD 10, 11 and 12-CURRENT. Same configuration is working with Rangeley CPU. Any help is welcome. Thanks. From owner-freebsd-current@freebsd.org Wed Aug 16 22:41:52 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6F572DD7087; Wed, 16 Aug 2017 22:41:52 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from mail.baldwin.cx (bigwig.baldwin.cx [96.47.65.170]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4622472D35; Wed, 16 Aug 2017 22:41:51 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from ralph.baldwin.cx (c-73-231-226-104.hsd1.ca.comcast.net [73.231.226.104]) by mail.baldwin.cx (Postfix) with ESMTPSA id 0394510AF07; Wed, 16 Aug 2017 18:41:49 -0400 (EDT) From: John Baldwin To: freebsd-current@freebsd.org Cc: Panagiotes Mousikides , Matt Joras , "freebsd-hackers@freebsd.org" , allanjude@freebsd.org, "Peter Grehan (grehan@freebsd.org)" Subject: Re: Install FreeBSD from source into VM image Date: Wed, 16 Aug 2017 15:40:33 -0700 Message-ID: <25569442.iT463nDDSg@ralph.baldwin.cx> User-Agent: KMail/4.14.10 (FreeBSD/11.1-STABLE; KDE/4.14.30; amd64; ; ) In-Reply-To: <9152fc29-125d-1c01-ecfa-740a1cfcaadd@yandex.com> References: <8888acfa-4dc8-a68f-8ca8-c4df84e5e74a@yandex.com> <97d0475c-9603-03d8-144d-dc803e5530c7@FreeBSD.org> <9152fc29-125d-1c01-ecfa-740a1cfcaadd@yandex.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.4.3 (mail.baldwin.cx); Wed, 16 Aug 2017 18:41:49 -0400 (EDT) X-Virus-Scanned: clamav-milter 0.99.2 at mail.baldwin.cx X-Virus-Status: Clean X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 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: Wed, 16 Aug 2017 22:41:52 -0000 On Wednesday, August 16, 2017 12:57:25 PM Panagiotes Mousikides wrote: > Den 2017-08-14 kl. 18:49, skrev Matt Joras: > > On 08/14/2017 11:42, Panagiotes Mousikides wrote: > >> I am working on the FreeBSD test suite, and need to create an image > >> file from source. How can I do that? > >> > >> I need to run something similar to make installkernel && make > >> installworld with an image file as the target, such that the end > >> result is a ready-made FreeBSD system that can be started up with > >> bhyve. How can I do that, including creating the correct /etc files, > >> and the correct boot code and partitioning? > >> > > See release(7), https://www.freebsd.org/cgi/man.cgi?release(7). The > > relevant section is under virtual machine disk images and the vm-image > > target. The VMFORMATS for bhyve is "raw". That will generate an image > > that "just works" with vmrun.sh > > > > Matt Joras > > > Hi Matt! > > Thank you so much for the tip! I tried what you recommended, the > command I ran specifically was (inside release/) > > sudo make vm-image WITH_VMIMAGES=1 VMBASE=aaaa VMSIZE=2G > VMFORMATS=raw VMSIZE=2G vm-image > > followed by > > sudo sh /usr/share/examples/bhyve/vmrun.sh -d aaaa.raw vm-aaaa > > but apparently the image generated doesn't work. The error I'm getting > after hitting "1" at the boot screen is > > Error return from kevent monitor: Not permitted in capability mode > > repeatedly cascading through the screen. Any ideas? I would greatly > appreciate your help! This sounds like an issue with the bhyve capsicum work. I've cc'd Allan and Peter who might be able to help track that down. It might be useful if you can run bhyve under ktrace, e.g.: sudo ktrace -i -t p sh /usr/share/examples/bhyve/vmrun.sh -d aaaa.raw vm-aaaa And then post the output of 'sudo kdump' -- John Baldwin From owner-freebsd-current@freebsd.org Wed Aug 16 23:40:37 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B9A97DDA827 for ; Wed, 16 Aug 2017 23:40:37 +0000 (UTC) (envelope-from grehan@freebsd.org) Received: from alto.onthenet.com.au (alto.OntheNet.com.au [203.13.68.12]) by mx1.freebsd.org (Postfix) with ESMTP id 78C3774D1A for ; Wed, 16 Aug 2017 23:40:37 +0000 (UTC) (envelope-from grehan@freebsd.org) Received: from iredmail.onthenet.com.au (iredmail.onthenet.com.au [203.13.68.150]) by alto.onthenet.com.au (Postfix) with ESMTPS id 1C158201B3CA for ; Thu, 17 Aug 2017 09:40:30 +1000 (AEST) Received: from localhost (iredmail.onthenet.com.au [127.0.0.1]) by iredmail.onthenet.com.au (Postfix) with ESMTP id 0F69D2809D5 for ; Thu, 17 Aug 2017 09:40:30 +1000 (AEST) X-Amavis-Modified: Mail body modified (using disclaimer) - iredmail.onthenet.com.au Received: from iredmail.onthenet.com.au ([127.0.0.1]) by localhost (iredmail.onthenet.com.au [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id m0KwFFNmG_uh for ; Thu, 17 Aug 2017 09:40:29 +1000 (AEST) Received: from Peters-MacBook-Pro-2.local (96-82-80-65-static.hfc.comcastbusiness.net [96.82.80.65]) by iredmail.onthenet.com.au (Postfix) with ESMTPSA id C98E128099E; Thu, 17 Aug 2017 09:40:26 +1000 (AEST) Subject: Re: Install FreeBSD from source into VM image To: John Baldwin , freebsd-current@freebsd.org Cc: Panagiotes Mousikides , Matt Joras , "freebsd-hackers@freebsd.org" , allanjude@freebsd.org References: <8888acfa-4dc8-a68f-8ca8-c4df84e5e74a@yandex.com> <97d0475c-9603-03d8-144d-dc803e5530c7@FreeBSD.org> <9152fc29-125d-1c01-ecfa-740a1cfcaadd@yandex.com> <25569442.iT463nDDSg@ralph.baldwin.cx> From: Peter Grehan Message-ID: Date: Wed, 16 Aug 2017 16:40:23 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <25569442.iT463nDDSg@ralph.baldwin.cx> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-CMAE-Score: 0 X-CMAE-Analysis: v=2.2 cv=XKlAcUpE c=1 sm=1 tr=0 a=A6CF0fG5TOl4vs6YHvqXgw==:117 a=mwgbnDbW7alINpy3vhoKyg==:17 a=IkcTkHD0fZMA:10 a=KeKAF7QvOSUA:10 a=a-xowN3dLo-_p0TWiDMA:9 a=QEXdDO2ut3YA:10 wl=host:3 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 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: Wed, 16 Aug 2017 23:40:37 -0000 >> Error return from kevent monitor: Not permitted in capability mode ... > This sounds like an issue with the bhyve capsicum work. I've cc'd Allan > and Peter who might be able to help track that down. It might be useful > if you can run bhyve under ktrace, e.g.: > > sudo ktrace -i -t p sh /usr/share/examples/bhyve/vmrun.sh -d aaaa.raw vm-aaaa > > And then post the output of 'sudo kdump' I think this is the error now returned when a file doesn't exist or can't be accessed - the code probably needs to be reworked to test for existence before entering capability mode to make the error more meaningful. later, Peter. From owner-freebsd-current@freebsd.org Thu Aug 17 00:37:34 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B8178DDDE81 for ; Thu, 17 Aug 2017 00:37:34 +0000 (UTC) (envelope-from imb@protected-networks.net) Received: from mail.protected-networks.net (mail.protected-networks.net [IPv6:2001:470:8d59:1::8]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.protected-networks.net", Issuer "Protected Networks CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 8A65A76C18; Thu, 17 Aug 2017 00:37:34 +0000 (UTC) (envelope-from imb@protected-networks.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d= protected-networks.net; h=content-transfer-encoding :content-language:content-type:content-type:mime-version :user-agent:date:date:message-id:subject:subject:from:from; s= 201508; t=1502930244; bh=5nMPCQ7AlAIRrAkv8lwH+fQLeaAnSbIOoQ58O+b oapY=; b=mPV6d1VXgq9Ixh6khvVLoEXRGsi6vG76uZ5vahn27ibuPblM7pk6o0m s4r8FYbeh5khK4wIs9U9VtNcZQ8n/saBaF9KTZToK3VIPsNJFdIuHlXFEWdevKsE UCZ1c80p45YwCnPvvrN0OH7xOiAu6gKb9X9EMRzMMVq8ffoeisLY= Received: from toshi.auburn.protected-networks.net (toshi.auburn.protected-networks.net [192.168.1.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: imb@mail.protected-networks.net) by mail.protected-networks.net (Postfix) with ESMTPSA id AD3BD39F49; Wed, 16 Aug 2017 20:37:24 -0400 (EDT) To: freebsd-current Cc: cem@freebsd.org From: Michael Butler Subject: SVN r322588 breaks non-SMP kernel build Message-ID: Date: Wed, 16 Aug 2017 20:37:23 -0400 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 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: Thu, 17 Aug 2017 00:37:34 -0000 Building on an i386 without SMP after SVN r322588 yields this breakage: Building /usr/obj/usr/src/sys/SARAH/intr_machdep.o --- intr_machdep.o --- /usr/src/sys/x86/x86/intr_machdep.c:78:23: warning: variable 'interrupt_sorted' is not needed and will not be emitted [-Wunneeded-internal-declaration] static struct intsrc *interrupt_sorted[NUM_IO_INTS]; ^ /usr/src/sys/x86/x86/intr_machdep.c:83:28: error: unused variable 'intrbalance_task' [-Werror,-Wunused-variable] static struct timeout_task intrbalance_task; ^ 1 warning and 1 error generated. *** [intr_machdep.o] Error code 1 imb From owner-freebsd-current@freebsd.org Thu Aug 17 11:44:30 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E3537DDCF02; Thu, 17 Aug 2017 11:44:30 +0000 (UTC) (envelope-from paggas1@yandex.com) Received: from forward104j.mail.yandex.net (forward104j.mail.yandex.net [5.45.198.247]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "forwards.mail.yandex.net", Issuer "Yandex CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 79EE06DD0C; Thu, 17 Aug 2017 11:44:30 +0000 (UTC) (envelope-from paggas1@yandex.com) Received: from mxback9o.mail.yandex.net (mxback9o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::23]) by forward104j.mail.yandex.net (Yandex) with ESMTP id 7071A42CAA; Thu, 17 Aug 2017 14:44:19 +0300 (MSK) Received: from smtp1o.mail.yandex.net (smtp1o.mail.yandex.net [2a02:6b8:0:1a2d::25]) by mxback9o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 4UhX5cV8DM-iJMur3Ro; Thu, 17 Aug 2017 14:44:19 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.com; s=mail; t=1502970259; bh=lyP/w+o89DIhmpQ1vPHjQ3Dh7rKg462qr6xrptsUMro=; h=Subject:To:Cc:References:From:Message-ID:Date:In-Reply-To; b=Uflf5kHMNvR8OW2EWIVNGWxkvpppC1c2pyfJ1MuGJq6R57/ODHgpE+qrtgZcrh7dT wtUsx7ZC2TlrMgExJqNQDk8KjZOT9aO1eCHsJGeYXMgmg6dvFnOk/9fvsI9Z/1ImCU R5wffHxiutGhm8PozeQT12/gup7VgXvUd1SKjmKI= Received: by smtp1o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id d3gXdrmb2x-iI1SYplq; Thu, 17 Aug 2017 14:44:18 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.com; s=mail; t=1502970258; bh=lyP/w+o89DIhmpQ1vPHjQ3Dh7rKg462qr6xrptsUMro=; h=Subject:To:Cc:References:From:Message-ID:Date:In-Reply-To; b=yEpw5HdyMfa0Vn8VN9d6IvnVXmpIftz6GK0hABSK5t04dNLKSgzzzL4KFfVEiHBG2 Xqm2paepjoQdfKdS81AO4+p+OYGMzQfH17Et51rfWbQjn0prI++2vhulAxQGqiSkNC QvSyxQgubjCzwd5XKnZpSUrVcdfla3yYSoju1k+I= Authentication-Results: smtp1o.mail.yandex.net; dkim=pass header.i=@yandex.com Subject: Re: Install FreeBSD from source into VM image To: Peter Grehan , John Baldwin , freebsd-current@freebsd.org Cc: Matt Joras , "freebsd-hackers@freebsd.org" , allanjude@freebsd.org References: <8888acfa-4dc8-a68f-8ca8-c4df84e5e74a@yandex.com> <97d0475c-9603-03d8-144d-dc803e5530c7@FreeBSD.org> <9152fc29-125d-1c01-ecfa-740a1cfcaadd@yandex.com> <25569442.iT463nDDSg@ralph.baldwin.cx> From: Panagiotes Mousikides Message-ID: Date: Thu, 17 Aug 2017 11:44:17 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/mixed; boundary="------------BAA8B4F0B7A6DEFF0798B875" Content-Language: en-US X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 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: Thu, 17 Aug 2017 11:44:31 -0000 This is a multi-part message in MIME format. --------------BAA8B4F0B7A6DEFF0798B875 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Den 2017-08-16 kl. 23:40, skrev Peter Grehan: >>> Error return from kevent monitor: Not permitted in capability >>> mode > ... >> This sounds like an issue with the bhyve capsicum work. I've cc'd Allan >> and Peter who might be able to help track that down. It might be useful >> if you can run bhyve under ktrace, e.g.: >> >> sudo ktrace -i -t p sh /usr/share/examples/bhyve/vmrun.sh -d >> aaaa.raw vm-aaaa >> >> And then post the output of 'sudo kdump' > > I think this is the error now returned when a file doesn't exist or > can't be accessed - the code probably needs to be reworked to test for > existence before entering capability mode to make the error more > meaningful. > > later, > > Peter. > I did run it with ktrace, which generates a ktrace.out of around 4KB. Needed to kill the VM with bhyvectl --destroy afterwards. But kdump doesn't print anything afterwards! Any ideas? I'm attaching ktrace.out. Best regards, Panagiotes --------------BAA8B4F0B7A6DEFF0798B875 Content-Type: application/octet-stream; name="ktrace.out" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="ktrace.out" BAAAAAoArd6/UAAAa3RyYWNlAAAAAAAAAAAAAAAAAACbgJVZAAAAAL4mCAAAAAAAmYkBAAAA AAAJAgUABAAAAAoArd6/UAAAc2gAAAAAAAAAAAAAAAAAAAAAAACbgJVZAAAAAG4nCAAAAAAA mYkBAAAAAAAJAgUABAAAAAoArd7AUAAAc2gAAAAAAAAAAAAAAAAAAAAAAACbgJVZAAAAADYs CAAAAAAAmIkBAAAAAAAJAgUABAAAAAoArd7AUAAAaWQAAAAAAAAAAAAAAAAAAAAAAACbgJVZ AAAAAJcsCAAAAAAAmIkBAAAAAAAJAgUAAAAAAAsArd7AUAAAaWQAAAAAAAAAAAAAAAAAAAAA AACbgJVZAAAAABQvCAAAAAAAmIkBAAAAAAAEAAAACgCt3sFQAABzaAAAAAAAAAAAAAAAAAAA AAAAAJuAlVkAAAAApC8IAAAAAACYiQEAAAAAAAkCBQAEAAAACgCt3sFQAABrbGRzdGF0AAAA AAAAAAAAAAAAAJuAlVkAAAAAhTAIAAAAAACYiQEAAAAAAAkCBQAAAAAACwCt3sFQAABrbGRz dGF0AAAAAAAAAAAAAAAAAJuAlVkAAAAAMzMIAAAAAACYiQEAAAAAAAQAAAAKAK3ewlAAAHNo AAAAAAAAAAAAAAAAAAAAAAAAm4CVWQAAAACgNAgAAAAAAJiJAQAAAAAACQIFAAQAAAAKAK3e wlAAAGJoeXZlY3RsAAAAAAAAAAAAAAAAm4CVWQAAAACGNQgAAAAAAJiJAQAAAAAACQIFAAAA AAALAK3ewlAAAGJoeXZlY3RsAAAAAAAAAAAAAAAAm4CVWQAAAACZOAgAAAAAAJiJAQAAAAAA BAAAAAoArd7DUAAAc2gAAAAAAAAAAAAAAAAAAAAAAACbgJVZAAAAAI45CAAAAAAAmIkBAAAA AAAJAgUABAAAAAoArd7EUAAAc2gAAAAAAAAAAAAAAAAAAAAAAACbgJVZAAAAAC86CAAAAAAA iIkBAAAAAAAJAgUABAAAAAoArd7EUAAAZ3JlcAAAAAAAAAAAAAAAAAAAAACbgJVZAAAAABs7 CAAAAAAAiIkBAAAAAAAJAgUABAAAAAoArd7DUAAAZmlsZQAAAAAAAAAAAAAAAAAAAACbgJVZ AAAAAK47CAAAAAAAmIkBAAAAAAAJAgUAAAAAAAsArd7EUAAAZ3JlcAAAAAAAAAAAAAAAAAAA AACbgJVZAAAAAJxKCAAAAAAAiIkBAAAAAAAAAAAACwCt3sNQAABmaWxlAAAAAAAAAAAAAAAA AAAAAJuAlVkAAAAAZksIAAAAAACYiQEAAAAAAAQAAAAKAK3exVAAAHNoAAAAAAAAAAAAAAAA AAAAAAAAm4CVWQAAAAAETAgAAAAAAJiJAQAAAAAACQIFAAQAAAAKAK3exVAAAGJoeXZlbG9h ZAAAAAAAAAAAAAAAm4CVWQAAAABrTAgAAAAAAJiJAQAAAAAACQIFAAAAAAALAK3exVAAAGJo eXZlbG9hZAAAAAAAAAAAAAAAnICVWQAAAABnSQoAAAAAAJiJAQAAAAAABAAAAAoArd7PUAAA c2gAAAAAAAAAAAAAAAAAAAAAAACcgJVZAAAAADxKCgAAAAAAmIkBAAAAAAAJAgUABAAAAAoA rd7PUAAAYmh5dmUAAAAAAAAAAAAAAAAAAACcgJVZAAAAAL1KCgAAAAAAmIkBAAAAAAAJAgUA BAAAAAoArd7RUAAAYmh5dmUAAAAAAAAAAAAAAAAAAACcgJVZAAAAAEpaCgAAAAAA9YkBAAAA AAAJAgUABAAAAAoArd7RUAAAc2gAAAAAAAAAAAAAAAAAAAAAAACcgJVZAAAAALBaCgAAAAAA 9YkBAAAAAAAJAgUABAAAAAoArd7RUAAAc2gAAAAAAAAAAAAAAAAAAAAAAACcgJVZAAAAAK9f CgAAAAAA9YkBAAAAAAAJAgUABAAAAAoArd7RUAAAaWFzbAAAAAAAAAAAAAAAAAAAAACcgJVZ AAAAAG1kCgAAAAAA9YkBAAAAAAAJAgUAAAAAAAsArd7RUAAAaWFzbAAAAAAAAAAAAAAAAAAA AACcgJVZAAAAAKFqCgAAAAAA9YkBAAAAAAAEAAAACgCt3tNQAABiaHl2ZQAAAAAAAAAAAAAA AAAAAJyAlVkAAAAANmwKAAAAAAD1iQEAAAAAAAkCBQAEAAAACgCt3tNQAABzaAAAAAAAAAAA AAAAAAAAAAAAAJyAlVkAAAAAj2wKAAAAAAD1iQEAAAAAAAkCBQAEAAAACgCt3tNQAABzaAAA AAAAAAAAAAAAAAAAAAAAAJyAlVkAAAAAaHEKAAAAAAD1iQEAAAAAAAkCBQAEAAAACgCt3tNQ AABpYXNsAAAAAAAAAAAAAAAAAAAAAJyAlVkAAAAAOXYKAAAAAAD1iQEAAAAAAAkCBQAAAAAA CwCt3tNQAABpYXNsAAAAAAAAAAAAAAAAAAAAAJyAlVkAAAAA73wKAAAAAAD1iQEAAAAAAAQA AAAKAK3e1lAAAGJoeXZlAAAAAAAAAAAAAAAAAAAAnICVWQAAAABvfgoAAAAAAPWJAQAAAAAA CQIFAAQAAAAKAK3e1lAAAHNoAAAAAAAAAAAAAAAAAAAAAAAAnICVWQAAAADIfgoAAAAAAPWJ AQAAAAAACQIFAAQAAAAKAK3e1lAAAHNoAAAAAAAAAAAAAAAAAAAAAAAAnICVWQAAAACggwoA AAAAAPWJAQAAAAAACQIFAAQAAAAKAK3e1lAAAGlhc2wAAAAAAAAAAAAAAAAAAAAAnICVWQAA AABsiAoAAAAAAPWJAQAAAAAACQIFAAAAAAALAK3e1lAAAGlhc2wAAAAAAAAAAAAAAAAAAAAA nICVWQAAAABnjgoAAAAAAPWJAQAAAAAABAAAAAoArd7YUAAAYmh5dmUAAAAAAAAAAAAAAAAA AACcgJVZAAAAANGPCgAAAAAA9YkBAAAAAAAJAgUABAAAAAoArd7YUAAAc2gAAAAAAAAAAAAA AAAAAAAAAACcgJVZAAAAAC6QCgAAAAAA9YkBAAAAAAAJAgUABAAAAAoArd7YUAAAc2gAAAAA AAAAAAAAAAAAAAAAAACcgJVZAAAAAPiUCgAAAAAA9YkBAAAAAAAJAgUABAAAAAoArd7YUAAA aWFzbAAAAAAAAAAAAAAAAAAAAACcgJVZAAAAAKCZCgAAAAAA9YkBAAAAAAAJAgUAAAAAAAsA rd7YUAAAaWFzbAAAAAAAAAAAAAAAAAAAAACcgJVZAAAAACigCgAAAAAA9YkBAAAAAAAEAAAA CgCt3tlQAABiaHl2ZQAAAAAAAAAAAAAAAAAAAJyAlVkAAAAAkaEKAAAAAAD1iQEAAAAAAAkC BQAEAAAACgCt3tlQAABzaAAAAAAAAAAAAAAAAAAAAAAAAJyAlVkAAAAA5aEKAAAAAAD1iQEA AAAAAAkCBQAEAAAACgCt3tlQAABzaAAAAAAAAAAAAAAAAAAAAAAAAJyAlVkAAAAAn6YKAAAA AAD1iQEAAAAAAAkCBQAEAAAACgCt3tlQAABpYXNsAAAAAAAAAAAAAAAAAAAAAJyAlVkAAAAA SasKAAAAAAD1iQEAAAAAAAkCBQAAAAAACwCt3tlQAABpYXNsAAAAAAAAAAAAAAAAAAAAAJyA lVkAAAAAIrQKAAAAAAD1iQEAAAAAAAQAAAAKAK3e21AAAGJoeXZlAAAAAAAAAAAAAAAAAAAA nICVWQAAAACJtQoAAAAAAPWJAQAAAAAACQIFAAQAAAAKAK3e21AAAHNoAAAAAAAAAAAAAAAA AAAAAAAAnICVWQAAAADitQoAAAAAAPWJAQAAAAAACQIFAAQAAAAKAK3e21AAAHNoAAAAAAAA AAAAAAAAAAAAAAAAnICVWQAAAACwugoAAAAAAPWJAQAAAAAACQIFAAQAAAAKAK3e21AAAGlh c2wAAAAAAAAAAAAAAAAAAAAAnICVWQAAAAB6vwoAAAAAAPWJAQAAAAAACQIFAAAAAAALAK3e 21AAAGlhc2wAAAAAAAAAAAAAAAAAAAAAnICVWQAAAACexQoAAAAAAPWJAQAAAAAABAAAAAoA rd7cUAAAYmh5dmUAAAAAAAAAAAAAAAAAAACcgJVZAAAAAATHCgAAAAAA9YkBAAAAAAAJAgUA BAAAAAoArd7cUAAAc2gAAAAAAAAAAAAAAAAAAAAAAACcgJVZAAAAAFnHCgAAAAAA9YkBAAAA AAAJAgUABAAAAAoArd7cUAAAc2gAAAAAAAAAAAAAAAAAAAAAAACcgJVZAAAAAPnLCgAAAAAA 9YkBAAAAAAAJAgUABAAAAAoArd7cUAAAaWFzbAAAAAAAAAAAAAAAAAAAAACcgJVZAAAAAJjQ CgAAAAAA9YkBAAAAAAAJAgUAAAAAAAsArd7cUAAAaWFzbAAAAAAAAAAAAAAAAAAAAACcgJVZ AAAAAJTWCgAAAAAA9YkBAAAAAAAEAAAACgCt3t5QAABiaHl2ZQAAAAAAAAAAAAAAAAAAAJyA lVkAAAAAD9gKAAAAAAD1iQEAAAAAAAkCBQAEAAAACgCt3t5QAABzaAAAAAAAAAAAAAAAAAAA AAAAAJyAlVkAAAAAYdgKAAAAAAD1iQEAAAAAAAkCBQAEAAAACgCt3t5QAABzaAAAAAAAAAAA AAAAAAAAAAAAAJyAlVkAAAAAJN0KAAAAAAD1iQEAAAAAAAkCBQAEAAAACgCt3t5QAABpYXNs AAAAAAAAAAAAAAAAAAAAAJyAlVkAAAAAveEKAAAAAAD1iQEAAAAAAAkCBQAAAAAACwCt3t5Q AABpYXNsAAAAAAAAAAAAAAAAAAAAAJyAlVkAAAAAwucKAAAAAAD1iQEAAAAAAAQAAAAKAK3e 31AAAGJoeXZlAAAAAAAAAAAAAAAAAAAAnICVWQAAAAB66goAAAAAAPWJAQAAAAAACQIFAAQA AAAKAK3e31AAAHNoAAAAAAAAAAAAAAAAAAAAAAAAnICVWQAAAADF6goAAAAAAPWJAQAAAAAA CQIFAAQAAAAKAK3e31AAAHNoAAAAAAAAAAAAAAAAAAAAAAAAnICVWQAAAABx7woAAAAAAPWJ AQAAAAAACQIFAAQAAAAKAK3e31AAAGlhc2wAAAAAAAAAAAAAAAAAAAAAnICVWQAAAAAZ9AoA AAAAAPWJAQAAAAAACQIFAAAAAAALAK3e31AAAGlhc2wAAAAAAAAAAAAAAAAAAAAAnICVWQAA AADeBwsAAAAAAPWJAQAAAAAAAAAAAAsArd7PUAAAdmNwdSAxAAAAAAAAAAAAAAAAAAChgJVZ AAAAAOKkAgAAAAAAwowBAAAAAAAEAAAACgCt3jpRAABzaAAAAAAAAAAAAAAAAAAAAAAAAKGA lVkAAAAAzqUCAAAAAADCjAEAAAAAAAkCBQAEAAAACgCt3jpRAABiaHl2ZWN0bAAAAAAAAAAA AAAAAKGAlVkAAAAAq6YCAAAAAADCjAEAAAAAAAkCBQAAAAAACwCt3jpRAABiaHl2ZWN0bAAA AAAAAAAAAAAAAKGAlVkAAAAA9KkCAAAAAADCjAEAAAAAAAAAAAALAK3ev1AAAHNoAAAAAAAA AAAAAAAAAAAAAAAAoYCVWQAAAADAqgIAAAAAAJmJAQAAAAAA --------------BAA8B4F0B7A6DEFF0798B875-- From owner-freebsd-current@freebsd.org Fri Aug 18 13:26:20 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5387DDE17F2 for ; Fri, 18 Aug 2017 13:26:20 +0000 (UTC) (envelope-from jamie@catflap.org) Received: from donotpassgo.dyslexicfish.net (donotpassgo.dyslexicfish.net [IPv6:2001:19f0:300:2185:a:dead:bad:faff]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B32BB37BE for ; Fri, 18 Aug 2017 13:26:19 +0000 (UTC) (envelope-from jamie@catflap.org) Received: from donotpassgo.dyslexicfish.net (donotpassgo.dyslexicfish.net [104.207.135.49]) by donotpassgo.dyslexicfish.net (8.14.5/8.14.5) with ESMTP id v7IDQH84058029; Fri, 18 Aug 2017 14:26:18 +0100 (BST) (envelope-from jamie@donotpassgo.dyslexicfish.net) Received: (from jamie@localhost) by donotpassgo.dyslexicfish.net (8.14.5/8.14.5/Submit) id v7IDQHFd058028; Fri, 18 Aug 2017 14:26:17 +0100 (BST) (envelope-from jamie) From: Jamie Landeg-Jones Message-Id: <201708181326.v7IDQHFd058028@donotpassgo.dyslexicfish.net> Date: Fri, 18 Aug 2017 14:26:17 +0100 Organization: Dyslexic Fish To: kiri@kx.openedu.org, freebsd-current@freebsd.org Subject: Re: BSD awk bug ? References: <201708160114.v7G1EkxS079546@kx.openedu.org> <20170816013634.GA8152@tomoyat1.com> <201708160315.v7G3FlAV081765@kx.openedu.org> In-Reply-To: <201708160315.v7G3FlAV081765@kx.openedu.org> User-Agent: Heirloom mailx 12.4 7/29/08 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (donotpassgo.dyslexicfish.net [104.207.135.49]); Fri, 18 Aug 2017 14:26:18 +0100 (BST) X-Mailman-Approved-At: Fri, 18 Aug 2017 15:05:44 +0000 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 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: Fri, 18 Aug 2017 13:26:20 -0000 KIRIYAMA Kazuhiko wrote: > Oops. I missed "STANDARDS" section. Thanks for pointed out. > > # But as it says in front "awk supports extended regular > # expressions (EREs). See re_format(7) for more information > # on regular expressions.", I'd like to coinside with > # re_format(7) spec. > > > > > Someone please correct me if I'm wrong. I agree. It's a pain in the arse. In these situations, I've had to use gawk instead (You can set POSIXLY_CORRECT in gawk if it helps you feel cleaner! :-) ) There is also 'mawk' in ports/lang, but I've never tried that. Cheers, Jamie From owner-freebsd-current@freebsd.org Sat Aug 19 03:15:37 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 962C7DC82CE for ; Sat, 19 Aug 2017 03:15:37 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from vps1.elischer.org (vps1.elischer.org [204.109.63.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "vps1.elischer.org", Issuer "CA Cert Signing Authority" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 5D16327F2 for ; Sat, 19 Aug 2017 03:15:36 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from Julian-MBP3.local (106-68-135-200.dyn.iinet.net.au [106.68.135.200]) (authenticated bits=0) by vps1.elischer.org (8.15.2/8.15.2) with ESMTPSA id v7J3FPsP075775 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Fri, 18 Aug 2017 20:15:29 -0700 (PDT) (envelope-from julian@freebsd.org) To: freebsd-current From: Julian Elischer Subject: anyone had experience expanding uid_t and gid_t? Message-ID: <8028cee3-546a-55fd-159e-2e4c0aa7ebd6@freebsd.org> Date: Sat, 19 Aug 2017 11:15:20 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 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: Sat, 19 Aug 2017 03:15:37 -0000 at $JOB there are clients where 32bits is starting to chafe. Has anyone expanded them? This is starting to become a serious limitation in some places. Especially large institutions with Samba active. Samba uses a map between SIDs (session IDs) and UIDS, but it's a sparse map and due to various issues the mapping is not able to re-use numbers well. From owner-freebsd-current@freebsd.org Sat Aug 19 15:00:38 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5C770DCB280 for ; Sat, 19 Aug 2017 15:00:38 +0000 (UTC) (envelope-from tech-lists@zyxst.net) Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) (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 2F0EC77D07 for ; Sat, 19 Aug 2017 15:00:37 +0000 (UTC) (envelope-from tech-lists@zyxst.net) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 3B02E20C13 for ; Sat, 19 Aug 2017 11:00:31 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute4.internal (MEProxy); Sat, 19 Aug 2017 11:00:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zyxst.net; h= content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to:x-me-sender:x-me-sender:x-sasl-enc :x-sasl-enc; s=fm1; bh=2v0bu0h7ch04b7aQhi4Uga4ia45AU5Mgcq3j1A4j/ PA=; b=mMBF6swHnDENe7y+5qibb0BMa4uzGobwjtTD/IHe6KG6sB755mNhWMKWv muSfsnIUYTQLedgFlBFyGPaITIQvlQaMnTEJn3APqo0a9uEdem26uw2Xyc178vdt uUdbV3e5qA/wxdI/LEB0dzeBCcSye9+7QOmtjwtBFdNPAvC4yFyr5h/SHRmt6+US jdrhVqOq8jhe2I0BTVaEzhHAI2c4DPRvgL+0NdwRj66+W6AOOwVpVFBbKGTApaF4 lzs8qkaYFJcBrR7P5iSbTnbkLB7SEr4k0J5+D8AzssTj+XvtroKFRGBwD0Z4Rb3W ARPmRi/d4D+uq+spL13g0+p0QPvMw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=fm1; bh=2v0bu0h7ch04b7aQhi 4Uga4ia45AU5Mgcq3j1A4j/PA=; b=qvRz0V8tHnlcNzUXqLx+ZGDPQwRYCO40Af qtj2vgxmhW1eeOuUu4ADZvFTuJHHp0gmjIt/o2oZt6vnG699a+Je3bcoty5WDu5W JbD7hw1dIWGph27hk+HtqGrYM1dKAByeLPSYhiY3HDjzaJ4B3WbPLXV5k9SVv75H UzN5c4ZK28kq6LdB+k4EyQESneU7Ja8Iv9jn0rQz+eRBA3RLdFXhewiVJ0fSII/z qaXsap2AN7Tus9sVohwk2yHIRUKw0+KL6inT/IdwKTvbAkxlXO/kxLTXNT5a2k6d 8LowzJ8WxrcwBAqTdP1WaGoASCl/ihsKy+tA8ZQIM3N/JGnv0CXQ== X-ME-Sender: X-Sasl-enc: WrH03A/M/pIzoI1cIQCYWe1Lj8E+pDAbFFYNHsyzYZjv 1503154830 Received: from pumpkin.growveg.org (pumpkin.growveg.org [82.70.91.101]) by mail.messagingengine.com (Postfix) with ESMTPA id CB4287E542 for ; Sat, 19 Aug 2017 11:00:30 -0400 (EDT) To: freebsd-current@freebsd.org From: tech-lists Subject: swapfile query Message-ID: <77fdd002-2873-eb67-c851-0127ae3141b6@zyxst.net> Date: Sat, 19 Aug 2017 16:00:28 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 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: Sat, 19 Aug 2017 15:00:38 -0000 Hello list, (freebsd-current is r317212 on this machine) I have a machine with 128GB RAM. When 12-current was installed, for some reason the swap partition was set to 4GB. I see sometimes via top and also via daily status reports that sometimes the machine runs out of swap. It doesn't crash the machine though. I know how to add more swap with a swapfile. My questions are: 1. should I make more than one swapfile, say 4x32GB or will it be ok with one 128GB swapfile? 2. will the 4GB already there as swap play nice with a swapfile, or multiple swapfiles? Or should I deactivate the 4GB swap partition first? 3. should total swap be 1x 2x or some other multiple of RAM these days? FreeBSD and the swap partition reside on the same SSD. The swapfiles, if created, will reside on this SSD. thanks, -- J. From owner-freebsd-current@freebsd.org Sat Aug 19 16:54:18 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7710DDD3FFA for ; Sat, 19 Aug 2017 16:54:18 +0000 (UTC) (envelope-from cy.schubert@komquats.com) Received: from smtp-out-no.shaw.ca (smtp-out-no.shaw.ca [64.59.134.13]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "Client", Issuer "CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DAF180F8F for ; Sat, 19 Aug 2017 16:54:17 +0000 (UTC) (envelope-from cy.schubert@komquats.com) Received: from spqr.komquats.com ([96.50.22.10]) by shaw.ca with SMTP id j70jd8caWI8mCj70kd5CAJ; Sat, 19 Aug 2017 10:54:11 -0600 X-Authority-Analysis: v=2.2 cv=HahkdmM8 c=1 sm=1 tr=0 a=jvE2nwUzI0ECrNeyr98KWA==:117 a=jvE2nwUzI0ECrNeyr98KWA==:17 a=kj9zAlcOel0A:10 a=KeKAF7QvOSUA:10 a=vxP3BzG0AAAA:8 a=YxBL1-UpAAAA:8 a=6I5d2MoRAAAA:8 a=H1F7QWHVIKXboCpJM1oA:9 a=CjuIK1q_8ugA:10 a=4tHceQipB5Rc01mo_vQZ:22 a=Ia-lj3WSrqcvXOmTRaiG:22 a=IjZwj45LgO3ly-622nXo:22 Received: from slippy.cwsent.com (slippy [10.1.1.91]) by spqr.komquats.com (Postfix) with ESMTPS id 5BCA31C72; Sat, 19 Aug 2017 09:54:09 -0700 (PDT) Received: from slippy (localhost [127.0.0.1]) by slippy.cwsent.com (8.15.2/8.15.2) with ESMTP id v7JGs8sM063853; Sat, 19 Aug 2017 09:54:09 -0700 (PDT) (envelope-from Cy.Schubert@cschubert.com) Message-Id: <201708191654.v7JGs8sM063853@slippy.cwsent.com> X-Mailer: exmh version 2.8.0 04/21/2012 with nmh-1.6 Reply-to: Cy Schubert From: Cy Schubert X-os: FreeBSD X-Sender: cy@cwsent.com X-URL: http://www.cschubert.com/ To: tech-lists cc: freebsd-current@freebsd.org Subject: Re: swapfile query In-Reply-To: Message from tech-lists of "Sat, 19 Aug 2017 16:00:28 +0100." <77fdd002-2873-eb67-c851-0127ae3141b6@zyxst.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 19 Aug 2017 09:54:08 -0700 X-CMAE-Envelope: MS4wfOQswzVI8H/9zRReiNDOnN7kOoPdohQzJYxeUfj+zo+jMCbwe76byinIm75E8ZHNqcDkfpEsSqsFJFsyejcomKCRAi3LK2xyaqj6ZZHo4V/ur2UMVt3B +a4i5xOgc5q+bYcymkcRRhDNcNIsblOQ0Dg2LJsKbQNYKzJ9uUYUg8fWCiv1HtetnLrzZeKglu97hb2MP6vH2hfuJDHgRNW4XX92oH81Xd6Ib8Eo+52D86Pm X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 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: Sat, 19 Aug 2017 16:54:18 -0000 In message <77fdd002-2873-eb67-c851-0127ae3141b6@zyxst.net>, tech-lists writes: > Hello list, > > (freebsd-current is r317212 on this machine) > > I have a machine with 128GB RAM. When 12-current was installed, for some > reason the swap partition was set to 4GB. I see sometimes via top and > also via daily status reports that sometimes the machine runs out of > swap. It doesn't crash the machine though. > > I know how to add more swap with a swapfile. My questions are: > > 1. should I make more than one swapfile, say 4x32GB or will it be ok > with one 128GB swapfile? It's better to spread the load across multiple spindles. > > 2. will the 4GB already there as swap play nice with a swapfile, or > multiple swapfiles? Or should I deactivate the 4GB swap partition first? Is the 4 GB on the same disk as another swapfile? > > 3. should total swap be 1x 2x or some other multiple of RAM these days? Depends. If you're running some kind of database server or OLTP application. Some vendors recommend no swap whatsoever while others recommend some. What does your application vendor recommend? > > FreeBSD and the swap partition reside on the same SSD. The swapfiles, if > created, will reside on this SSD. Then it doesn't matter if you use one or many swapfiles and deleting the 4 GB won't make a difference. Just add the desired swap as required. With 128 GB RAM you shouldn't be swapping anyway. If your system is you have more serious problems than the lack of swap. -- Cheers, Cy Schubert FreeBSD UNIX: Web: http://www.FreeBSD.org The need of the many outweighs the greed of the few. From owner-freebsd-current@freebsd.org Sat Aug 19 17:08:33 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AACF8DD537A for ; Sat, 19 Aug 2017 17:08:33 +0000 (UTC) (envelope-from tech-lists@zyxst.net) Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) (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 7BDA681BF8 for ; Sat, 19 Aug 2017 17:08:32 +0000 (UTC) (envelope-from tech-lists@zyxst.net) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id A744720E73 for ; Sat, 19 Aug 2017 13:08:31 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute4.internal (MEProxy); Sat, 19 Aug 2017 13:08:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zyxst.net; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=fm1; bh=0ZH4SS6SsVo/wrfzDb pvxujYOcSSykvAd+Lftd8z0aY=; b=R+0gTj3ADwE0MNTDgQbq52yus2FRe+pSBA AKFxIcDfz+4iXcoPz+QF+PyYHAh06nMdwQmTFh4MjawoHqhzG3Gno1o2oOoeRaLe mBKxuNH+QLrsfV0YMJ53wq4Ukjfk50/e5ySvxi5h/52lfnOLO5wEO1L1mTfGVgYA UpVapGd9bv52H5gxBs8656LxRz+rVpUrHnrux1K2F0bcvyAMJV2giKlswmV6JxWo IwJ53V4JdyFc4GNDnTumgeSoZYU2pbO8ke+nLqMTni8wLfdCfR813d/V5du3OlyC +wGvDZHfjCDHY1/yThqOVCzZCbmS97z8es2WR/x/CI38ilRAluGA== 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-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s= fm1; bh=0ZH4SS6SsVo/wrfzDbpvxujYOcSSykvAd+Lftd8z0aY=; b=lWBMsuJZ O7FaOp0/MLKLA5JCZCEHLDZ/ObU6SG+UsW7zvaSc8HFsjuOm8C5CJCgj3CT7Y21B h9qmCiYCauBKZHzJyecHBKTWdmA8pEg83Way8Cy0oiL76xyq1paYpYOqID3vyjcJ IsZkdXcfayTsYJ7zOToprBubBfJoD2eJwJyp8vOTrsG9/ABcN96XIMSt0V74613C AMbpVv/r9CRZQ5qoWd69YtaY293x8JL8BeDdsoq9at+VMK0nPapeSouef1HIug41 xrrleA88OSvcs1nr1ftSQQcn4PAzAXiopvcaQQAcuna5USiqzs6c/ms31rWwkmXb X1qdMcH/T+c9FQ== X-ME-Sender: X-Sasl-enc: koi+Gj3kZfwIaK0uyMobxZ9eMD8q2MePP+EGVnH/nofg 1503162511 Received: from pumpkin.growveg.org (pumpkin.growveg.org [82.70.91.101]) by mail.messagingengine.com (Postfix) with ESMTPA id 484CC7F980 for ; Sat, 19 Aug 2017 13:08:31 -0400 (EDT) Subject: Re: swapfile query To: freebsd-current@freebsd.org References: <201708191654.v7JGs8sM063853@slippy.cwsent.com> From: tech-lists Message-ID: Date: Sat, 19 Aug 2017 18:08:29 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <201708191654.v7JGs8sM063853@slippy.cwsent.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 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: Sat, 19 Aug 2017 17:08:33 -0000 On 19/08/2017 17:54, Cy Schubert wrote: > Then it doesn't matter if you use one or many swapfiles and deleting the 4 > GB won't make a difference. Just add the desired swap as required. > > With 128 GB RAM you shouldn't be swapping anyway. If your system is you > have more serious problems than the lack of swap. The system is a bhyve host. There are 9 guests, two of them are freebsd-11-stable, the rest are ubuntu-14.04-LTS. Restarting some (but not all) of the guests has the effect of decreasing swap usage. The system also runs ZFS. The guests live on the ZFS filesystem. The OS & swap on the host are SSD and are not part of the ZFS system. What I'm seeing is, the host system won't touch swap for days. I guess when the guests get busier than an as yet unknown amount, the host starts using swap. The issue I'm having isn't so much it using swap, it's that the used swap seemingly is not liberated after it has been used, and I don't know exactly how to narrow it down. thanks, -- J. From owner-freebsd-current@freebsd.org Sat Aug 19 17:28:31 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CD7ADDD6E9C for ; Sat, 19 Aug 2017 17:28:31 +0000 (UTC) (envelope-from theraven@FreeBSD.org) Received: from theravensnest.org (xvm-110-62.dc2.ghst.net [46.226.110.62]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "theravensnest.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 72F3882BF9 for ; Sat, 19 Aug 2017 17:28:30 +0000 (UTC) (envelope-from theraven@FreeBSD.org) Received: from [192.168.1.65] (host86-138-54-151.range86-138.btcentralplus.com [86.138.54.151]) (authenticated bits=0) by theravensnest.org (8.15.2/8.15.2) with ESMTPSA id v7JH339k056674 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sat, 19 Aug 2017 17:03:04 GMT (envelope-from theraven@FreeBSD.org) X-Authentication-Warning: d60e724c-75b0-4b63-9702-f4a9d2bf6793: Host host86-138-54-151.range86-138.btcentralplus.com [86.138.54.151] claimed to be [192.168.1.65] Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: swapfile query From: David Chisnall In-Reply-To: <201708191654.v7JGs8sM063853@slippy.cwsent.com> Date: Sat, 19 Aug 2017 18:03:01 +0100 Cc: tech-lists , freebsd-current@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <201708191654.v7JGs8sM063853@slippy.cwsent.com> To: Cy Schubert X-Mailer: Apple Mail (2.3273) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 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: Sat, 19 Aug 2017 17:28:31 -0000 On 19 Aug 2017, at 17:54, Cy Schubert wrote: >=20 >> 3. should total swap be 1x 2x or some other multiple of RAM these = days? >=20 > Depends. If you're running some kind of database server or OLTP=20 > application. Some vendors recommend no swap whatsoever while others=20 > recommend some. What does your application vendor recommend? The main advantage of swap these days (on machines with that sort of = amount of RAM) is to allow you to keep some file-backed memory objects = in memory in preference to leaked (or very cold) heap memory. =20 David From owner-freebsd-current@freebsd.org Sat Aug 19 19:50:30 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8ABC6DE038A for ; Sat, 19 Aug 2017 19:50:30 +0000 (UTC) (envelope-from cy.schubert@komquats.com) Received: from smtp-out-no.shaw.ca (smtp-out-no.shaw.ca [64.59.134.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "Client", Issuer "CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 54ED92E65; Sat, 19 Aug 2017 19:50:29 +0000 (UTC) (envelope-from cy.schubert@komquats.com) Received: from spqr.komquats.com ([96.50.22.10]) by shaw.ca with SMTP id j9lKd9GV7I8mCj9lMd5e2Q; Sat, 19 Aug 2017 13:50:28 -0600 X-Authority-Analysis: v=2.2 cv=HahkdmM8 c=1 sm=1 tr=0 a=jvE2nwUzI0ECrNeyr98KWA==:117 a=jvE2nwUzI0ECrNeyr98KWA==:17 a=kj9zAlcOel0A:10 a=KeKAF7QvOSUA:10 a=6I5d2MoRAAAA:8 a=BWvPGDcYAAAA:8 a=YxBL1-UpAAAA:8 a=VJNF8P6jpN-Z4JSqVdwA:9 a=CjuIK1q_8ugA:10 a=IjZwj45LgO3ly-622nXo:22 a=pxhY87DP9d2VeQe4joPk:22 a=Ia-lj3WSrqcvXOmTRaiG:22 Received: from slippy.cwsent.com (slippy [10.1.1.91]) by spqr.komquats.com (Postfix) with ESMTPS id 8FF021E76; Sat, 19 Aug 2017 12:50:26 -0700 (PDT) Received: from slippy (localhost [127.0.0.1]) by slippy.cwsent.com (8.15.2/8.15.2) with ESMTP id v7JJoQiH003322; Sat, 19 Aug 2017 12:50:26 -0700 (PDT) (envelope-from Cy.Schubert@cschubert.com) Message-Id: <201708191950.v7JJoQiH003322@slippy.cwsent.com> X-Mailer: exmh version 2.8.0 04/21/2012 with nmh-1.6 Reply-to: Cy Schubert From: Cy Schubert X-os: FreeBSD X-Sender: cy@cwsent.com X-URL: http://www.cschubert.com/ To: David Chisnall cc: Cy Schubert , tech-lists , freebsd-current@freebsd.org Subject: Re: swapfile query In-Reply-To: Message from David Chisnall of "Sat, 19 Aug 2017 18:03:01 +0100." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 19 Aug 2017 12:50:26 -0700 X-CMAE-Envelope: MS4wfLVTC5ph/O1ykN6b3we4PSkm+bMTJyLRKpN2obOom4/mNuuCQSRZJNp+nZM3BN39pUAUxZKB04P67gh5CrwY1jk6FhDxt559pCJJng4o7eOkPdC4ln5p /WQVwUSfSfInwxKPN2jZ+J90LfrrzY/Ys/FdYgtys36trjDw1KJ0OkhATiA3+pW9rl5lZ6oPaI8aqlQeM1ST51F8SI3h0JVN6Mv78IGzTbOi6bRNBHcQPfYq L9Bm1h+ijGjFr91ugqDvSw== X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 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: Sat, 19 Aug 2017 19:50:30 -0000 In message , David Chisnall w rites: > On 19 Aug 2017, at 17:54, Cy Schubert wrote: > > > >> 3. should total swap be 1x 2x or some other multiple of RAM these days? > > > > Depends. If you're running some kind of database server or OLTP > > application. Some vendors recommend no swap whatsoever while others > > recommend some. What does your application vendor recommend? > > The main advantage of swap these days (on machines with that sort of amount o > f RAM) is to allow you to keep some file-backed memory objects in memory in p > reference to leaked (or very cold) heap memory. Memory overcommitment and the working set of each address space determines how much and what is paged out. -- Cheers, Cy Schubert FreeBSD UNIX: Web: http://www.FreeBSD.org The need of the many outweighs the greed of the few. From owner-freebsd-current@freebsd.org Sat Aug 19 21:01:07 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E2A07DE4464 for ; Sat, 19 Aug 2017 21:01:07 +0000 (UTC) (envelope-from cy.schubert@komquats.com) Received: from smtp-out-so.shaw.ca (smtp-out-so.shaw.ca [64.59.136.139]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "Client", Issuer "CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id B8022649D9 for ; Sat, 19 Aug 2017 21:01:06 +0000 (UTC) (envelope-from cy.schubert@komquats.com) Received: from spqr.komquats.com ([96.50.22.10]) by shaw.ca with SMTP id jArZdNKaC8LPZjAradRgqH; Sat, 19 Aug 2017 15:00:59 -0600 X-Authority-Analysis: v=2.2 cv=e552ceh/ c=1 sm=1 tr=0 a=jvE2nwUzI0ECrNeyr98KWA==:117 a=jvE2nwUzI0ECrNeyr98KWA==:17 a=kj9zAlcOel0A:10 a=KeKAF7QvOSUA:10 a=vxP3BzG0AAAA:8 a=YxBL1-UpAAAA:8 a=6I5d2MoRAAAA:8 a=DzoWSxkKQPT9zLlJJscA:9 a=NTRc2qJMtPIMdLdK:21 a=cHSHyI67xzs7bc0K:21 a=CjuIK1q_8ugA:10 a=4tHceQipB5Rc01mo_vQZ:22 a=Ia-lj3WSrqcvXOmTRaiG:22 a=IjZwj45LgO3ly-622nXo:22 Received: from slippy.cwsent.com (slippy [10.1.1.91]) by spqr.komquats.com (Postfix) with ESMTPS id 4D5D61F0F; Sat, 19 Aug 2017 14:00:57 -0700 (PDT) Received: from slippy (localhost [127.0.0.1]) by slippy.cwsent.com (8.15.2/8.15.2) with ESMTP id v7JL0vFk003935; Sat, 19 Aug 2017 14:00:57 -0700 (PDT) (envelope-from Cy.Schubert@cschubert.com) Message-Id: <201708192100.v7JL0vFk003935@slippy.cwsent.com> X-Mailer: exmh version 2.8.0 04/21/2012 with nmh-1.6 Reply-to: Cy Schubert From: Cy Schubert X-os: FreeBSD X-Sender: cy@cwsent.com X-URL: http://www.cschubert.com/ To: tech-lists cc: freebsd-current@freebsd.org Subject: Re: swapfile query In-Reply-To: Message from tech-lists of "Sat, 19 Aug 2017 18:08:29 +0100." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 19 Aug 2017 14:00:57 -0700 X-CMAE-Envelope: MS4wfBWau0PWIn6KEWfYKrnoKV9lLKzN8S8OTGE3lhgbv40EWSSKagCj0rculNlL6Ntk8SDwmt4bZBcMra67W8gexiaFRM4K5vcLFR08xpvd5gPmh1BeNOlN TetGIUh9MnOx14AK91Po6blQwPXwO2AQeAlhsj73OQAv2pfLdJ76YnTt8G6HRaEitJ0GpAVRkkFGFlS2Gzw4JbraPotF8UyPQWKCZsfRwJZxsv77TRqkz2eQ X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 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: Sat, 19 Aug 2017 21:01:08 -0000 In message , tech-lists writes: > On 19/08/2017 17:54, Cy Schubert wrote: > > Then it doesn't matter if you use one or many swapfiles and deleting the 4 > > GB won't make a difference. Just add the desired swap as required. > > > > With 128 GB RAM you shouldn't be swapping anyway. If your system is you > > have more serious problems than the lack of swap. > > The system is a bhyve host. There are 9 guests, two of them are > freebsd-11-stable, the rest are ubuntu-14.04-LTS. Restarting some (but > not all) of the guests has the effect of decreasing swap usage. The > system also runs ZFS. The guests live on the ZFS filesystem. > > The OS & swap on the host are SSD and are not part of the ZFS system. > > What I'm seeing is, the host system won't touch swap for days. I guess > when the guests get busier than an as yet unknown amount, the host > starts using swap. The issue I'm having isn't so much it using swap, > it's that the used swap seemingly is not liberated after it has been > used, and I don't know exactly how to narrow it down. An easy way to find out is to run top, type in "w", then "o" and "swap" to see which processes are using swap. You'll notice that the numbers won't add up. I haven't looked at this but my guess is that there may be swap leak. You can verify this by replacing the swapfile (add a new and remove the old). Run vmstat. If the system is actively paging you will see page outs and page ins, some page reclaims, and a scan rate in the hundreds. (On my -CURRENT laptop I see a scan rate in the hundreds on a totally idle laptop and in the teens of my idle firewall. IMO this doesn't seem right, at least not compared to previous releases of FreeBSD or from the days when I worked on Solaris. You shouldn't see a scan rate on an idle system.) My rule of thumb [was] scan rate less than 200 is good or to put it another way if you're using more than 5% of your system resources ( > 5% CPU or > 5% disk I/O) paging or swapping you need more RAM. -- Cheers, Cy Schubert FreeBSD UNIX: Web: http://www.FreeBSD.org The need of the many outweighs the greed of the few. From owner-freebsd-current@freebsd.org Sat Aug 19 21:24:28 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1F153DE5CD0 for ; Sat, 19 Aug 2017 21:24:28 +0000 (UTC) (envelope-from cy.schubert@komquats.com) Received: from smtp-out-so.shaw.ca (smtp-out-so.shaw.ca [64.59.136.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "Client", Issuer "CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id E8D5465841 for ; Sat, 19 Aug 2017 21:24:27 +0000 (UTC) (envelope-from cy.schubert@komquats.com) Received: from spqr.komquats.com ([96.50.22.10]) by shaw.ca with SMTP id jBEBdNQ7D8LPZjBECdRjUw; Sat, 19 Aug 2017 15:24:21 -0600 X-Authority-Analysis: v=2.2 cv=e552ceh/ c=1 sm=1 tr=0 a=jvE2nwUzI0ECrNeyr98KWA==:117 a=jvE2nwUzI0ECrNeyr98KWA==:17 a=kj9zAlcOel0A:10 a=KeKAF7QvOSUA:10 a=VxmjJ2MpAAAA:8 a=YxBL1-UpAAAA:8 a=6I5d2MoRAAAA:8 a=_udTTbkVLWzrbtzO_tkA:9 a=CjuIK1q_8ugA:10 a=7gXAzLPJhVmCkEl4_tsf:22 a=Ia-lj3WSrqcvXOmTRaiG:22 a=IjZwj45LgO3ly-622nXo:22 Received: from slippy.cwsent.com (slippy [10.1.1.91]) by spqr.komquats.com (Postfix) with ESMTPS id 8BD0A1F5E; Sat, 19 Aug 2017 14:24:19 -0700 (PDT) Received: from slippy (localhost [127.0.0.1]) by slippy.cwsent.com (8.15.2/8.15.2) with ESMTP id v7JLOJKJ004107; Sat, 19 Aug 2017 14:24:19 -0700 (PDT) (envelope-from Cy.Schubert@cschubert.com) Message-Id: <201708192124.v7JLOJKJ004107@slippy.cwsent.com> X-Mailer: exmh version 2.8.0 04/21/2012 with nmh-1.6 Reply-to: Cy Schubert From: Cy Schubert X-os: FreeBSD X-Sender: cy@cwsent.com X-URL: http://www.cschubert.com/ To: Cy Schubert cc: tech-lists , freebsd-current@freebsd.org Subject: Re: swapfile query In-Reply-To: Message from Cy Schubert of "Sat, 19 Aug 2017 14:00:57 -0700." <201708192100.v7JL0vFk003935@slippy.cwsent.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 19 Aug 2017 14:24:19 -0700 X-CMAE-Envelope: MS4wfIDHHB+gDKJ0RYPPfM0R37SAMMLSnlMeyd/MvTAtUmEQjJjdJwAT8BUbBCapTyFn2qxpDdsehlO64XOE2uTxfIKYVffbJd1B+He/IEeXblri0/MggYxq TJC7lNqNoWk0aQkqbBD342oHPPV/BEuSXVJa+BqeVFY4URgJwwsVKP4sZn/JTpEcZDmYicEYi2nO+pHnrgui9xlhbC+jNROqyE2C1pcvYaSFMD0Jb8C/lA1T X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 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: Sat, 19 Aug 2017 21:24:28 -0000 In message <201708192100.v7JL0vFk003935@slippy.cwsent.com>, Cy Schubert writes: > (On my -CURRENT laptop I see a scan rate in the hundreds on a totally idle > laptop and in the teens of my idle firewall. IMO this doesn't seem right, > at least not compared to previous releases of FreeBSD or from the days when > I worked on Solaris. You shouldn't see a scan rate on an idle system.) It appears that on an idle system with many pages in use, i.e. a laptop running X and not really doing anything else, pages are scanned though the system is idle. This is likely an artifact of r308474. -- Cheers, Cy Schubert FreeBSD UNIX: Web: http://www.FreeBSD.org The need of the many outweighs the greed of the few. From owner-freebsd-current@freebsd.org Sat Aug 19 21:31:54 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CF996DE646F for ; Sat, 19 Aug 2017 21:31:54 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: from mail-pf0-x235.google.com (mail-pf0-x235.google.com [IPv6:2607:f8b0:400e:c00::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A45EF65BB2 for ; Sat, 19 Aug 2017 21:31:54 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: by mail-pf0-x235.google.com with SMTP id d5so5530483pfg.0 for ; Sat, 19 Aug 2017 14:31:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=ITDqh6fDtNU1krt/FPJT9cGEP9MVzPw+6dFz25/Tu14=; b=jAlw1QTa2xzCxc02URGg4N9pIOO8l6i3MSCKTXNaW2DALwCVCL/qZmeCwnxtr7STDh vZCD2yjiyB+MBgdso+IwceY7XNOp1QTUB7W6+2e4UMAUOOznF0U1f+2x2D6K/jj9UFXk au/pKrCapNAnw3z7U6Vv8fVlo1dqeCNYj79deC541EMLn1wtRPBFbZCX+1hoMeBjN1vZ UIGKmZiNtE4EODLLc/268WgVwm/9GFxC8cOEC5On6QugNZOxHizD1gRHDNNU6n3lnA7j M9pQzKLPB+SdGHvxE4chQCFzc+v6ip/wvOl3tclhcRw0nOcOk3t4lnmUfDWHbGQI9ESS 9oeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=ITDqh6fDtNU1krt/FPJT9cGEP9MVzPw+6dFz25/Tu14=; b=pPXes6/H1B1sOg9/Fjm6LtGMhCdj9WVeW9/EKm6RndjmssPJGV4321hq0x/ejPc/AN 1u8KrKZTwZugvZkl6T/pjfYfYVnfX88kGC83OGVEXnnnuJ99/53B5iVcNiXxsWG8u1Xr zDEHmgQYkYNCvsnJHuYcGB3xc3CR+hSVDB4IjvU2U56EubASYoOXGTwI348Kh+FNv6DL Fsr2TL8KtigiWgnTgYltf2v8R0j+3/nl25qt7/mQX0tyYXnWy96/fzmDLlZH9DA9PZYT 1Be1krQ9WTEzMGEmMPUb+nz2xaUEjrOgdWMCvsgFRo82G1OKeMeYuQIf+GyhIOeycKvs kYMQ== X-Gm-Message-State: AHYfb5g0wzivNaGpJuYAZmPXTorxtZlV9wn3NZN/NmxIhYjyhgQ2fA3Q 3zXXTNGBFuc3I113 X-Received: by 10.98.194.155 with SMTP id w27mr2247105pfk.246.1503178314137; Sat, 19 Aug 2017 14:31:54 -0700 (PDT) Received: from raichu ([2604:4080:1102:0:ca60:ff:fe9d:3963]) by smtp.gmail.com with ESMTPSA id m190sm16259802pfb.102.2017.08.19.14.31.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 19 Aug 2017 14:31:53 -0700 (PDT) Sender: Mark Johnston Date: Sat, 19 Aug 2017 14:31:49 -0700 From: Mark Johnston To: Cy Schubert Cc: freebsd-current@freebsd.org Subject: Re: swapfile query Message-ID: <20170819213149.GA34140@raichu> References: <201708192100.v7JL0vFk003935@slippy.cwsent.com> <201708192124.v7JLOJKJ004107@slippy.cwsent.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201708192124.v7JLOJKJ004107@slippy.cwsent.com> User-Agent: Mutt/1.8.3 (2017-05-23) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 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: Sat, 19 Aug 2017 21:31:54 -0000 On Sat, Aug 19, 2017 at 02:24:19PM -0700, Cy Schubert wrote: > In message <201708192100.v7JL0vFk003935@slippy.cwsent.com>, Cy Schubert > writes: > > > (On my -CURRENT laptop I see a scan rate in the hundreds on a totally idle > > laptop and in the teens of my idle firewall. IMO this doesn't seem right, > > at least not compared to previous releases of FreeBSD or from the days when > > I worked on Solaris. You shouldn't see a scan rate on an idle system.) > > It appears that on an idle system with many pages in use, i.e. a laptop > running X and not really doing anything else, pages are scanned though the > system is idle. This is likely an artifact of r308474. It's an intentional consequence of r254304. The page daemon performs a slow and steady scan of the queue of active pages and will gradually move unreferenced pages to the inactive queue. From owner-freebsd-current@freebsd.org Sat Aug 19 22:38:25 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 513C0DEA277 for ; Sat, 19 Aug 2017 22:38:25 +0000 (UTC) (envelope-from cy.schubert@komquats.com) Received: from smtp-out-so.shaw.ca (smtp-out-so.shaw.ca [64.59.136.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "Client", Issuer "CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 1C49467BD8; Sat, 19 Aug 2017 22:38:24 +0000 (UTC) (envelope-from cy.schubert@komquats.com) Received: from spqr.komquats.com ([96.50.22.10]) by shaw.ca with SMTP id jCNkdNhLj8LPZjCNldRsFq; Sat, 19 Aug 2017 16:38:17 -0600 X-Authority-Analysis: v=2.2 cv=e552ceh/ c=1 sm=1 tr=0 a=jvE2nwUzI0ECrNeyr98KWA==:117 a=jvE2nwUzI0ECrNeyr98KWA==:17 a=kj9zAlcOel0A:10 a=KeKAF7QvOSUA:10 a=VxmjJ2MpAAAA:8 a=YxBL1-UpAAAA:8 a=6I5d2MoRAAAA:8 a=817x76XfPrYHKY8HFoIA:9 a=CjuIK1q_8ugA:10 a=G089RR_qUdcA:10 a=7gXAzLPJhVmCkEl4_tsf:22 a=Ia-lj3WSrqcvXOmTRaiG:22 a=IjZwj45LgO3ly-622nXo:22 Received: from slippy.cwsent.com (slippy [10.1.1.91]) by spqr.komquats.com (Postfix) with ESMTPS id D69BE2003; Sat, 19 Aug 2017 15:38:15 -0700 (PDT) Received: from slippy (localhost [127.0.0.1]) by slippy.cwsent.com (8.15.2/8.15.2) with ESMTP id v7JMcFci004579; Sat, 19 Aug 2017 15:38:15 -0700 (PDT) (envelope-from Cy.Schubert@cschubert.com) Message-Id: <201708192238.v7JMcFci004579@slippy.cwsent.com> X-Mailer: exmh version 2.8.0 04/21/2012 with nmh-1.6 Reply-to: Cy Schubert From: Cy Schubert X-os: FreeBSD X-Sender: cy@cwsent.com X-URL: http://www.cschubert.com/ To: Mark Johnston cc: Cy Schubert , freebsd-current@freebsd.org Subject: Re: swapfile query In-Reply-To: Message from Mark Johnston of "Sat, 19 Aug 2017 14:31:49 -0700." <20170819213149.GA34140@raichu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 19 Aug 2017 15:38:15 -0700 X-CMAE-Envelope: MS4wfORGIHDqZcQI42E8F48TGE1sBG0hUI0o3ki+zE4PKDet+IyOgNvzVmr0KKQE58adLbObA8gKSiigDQCyKpbi3ngzkmi580iIvoP+cqINin2VE8dWn3RC zicHTedCEbhm/IuwdD3g41c3Rtk4JwBqdahlA5nCyjO9QLGE/OHXDnv/YGrnxo3sCadXn2C/pJswUcTVN089AqHVxvsIt1ABzvY= X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 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: Sat, 19 Aug 2017 22:38:25 -0000 In message <20170819213149.GA34140@raichu>, Mark Johnston writes: > On Sat, Aug 19, 2017 at 02:24:19PM -0700, Cy Schubert wrote: > > In message <201708192100.v7JL0vFk003935@slippy.cwsent.com>, Cy Schubert > > writes: > > > > > (On my -CURRENT laptop I see a scan rate in the hundreds on a totally idl > e > > > laptop and in the teens of my idle firewall. IMO this doesn't seem right, > > > > at least not compared to previous releases of FreeBSD or from the days wh > en > > > I worked on Solaris. You shouldn't see a scan rate on an idle system.) > > > > It appears that on an idle system with many pages in use, i.e. a laptop > > running X and not really doing anything else, pages are scanned though the > > system is idle. This is likely an artifact of r308474. > > It's an intentional consequence of r254304. The page daemon performs a > slow and steady scan of the queue of active pages and will gradually > move unreferenced pages to the inactive queue. This is certainly better. It's probably good idea to remove scan rate from vmstat output as it's not meaningful in the traditional sense any more. For example on a traditionally scanning VM system (Solaris or z/OS) the number of pages scanned per second (or unreferenced interval count -- the inverse of the scan rate) is the first indication that you need to look at your vm subsystem. As of r254304 rate cannot be used used as a metric any more except when one sees it deviate wildly from previous observations. (Not that I'm complaining.) See below: procs memory page disks faults cpu r b w avm fre flt re pi po fr sr ad0 da0 in sy cs us sy id 0 0 0 3.9G 292M 4 0 0 0 193 125 0 0 434 773 588 0 0 100 1 0 0 3.9G 292M 55 0 0 0 181 123 22 0 460 2467 1402 0 1 99 0 0 0 3.9G 290M 969 0 0 1 316 124 1 0 490 12571 4004 3 1 95 0 0 0 3.9G 289M 261 0 0 0 160 124 21 0 505 20426 7751 2 2 97 0 0 0 1.5G 755M 3481 0 1 1 60951 74 18 0 463 19918 6576 13 4 82 At this point I closed firefox. Pages are freed and scan rate decreases. We now have a new normal. 0 0 0 1.5G 752M 10 0 0 0 0 24 1 0 409 595 365 0 0 100 0 0 0 1.5G 754M 1 0 0 0 403 23 49 0 478 609 1321 0 1 99 0 0 0 1.5G 754M 19 0 0 0 171 24 0 0 402 655 382 0 0 100 0 0 0 1.5G 754M 0 0 0 0 170 24 0 0 423 568 463 0 0 100 0 0 0 1.5G 754M 0 0 0 0 174 12 0 0 403 627 359 0 0 100 0 0 0 1.5G 754M 0 0 0 0 172 35 4 0 425 625 474 0 0 100 0 0 0 1.5G 754M 1 0 0 0 170 24 4 0 416 651 398 0 0 100 0 0 0 1.5G 754M 0 0 0 0 163 23 1 0 426 655 490 0 0 100 0 0 0 1.5G 754M 0 0 0 0 176 23 0 0 429 663 384 0 0 100 0 0 0 1.5G 754M 0 0 0 0 163 23 0 0 445 661 482 0 0 100 Should we consider removing scan rate from vmstat output? It doesn't really mean anything in relation to tuning any more. -- Cheers, Cy Schubert FreeBSD UNIX: Web: http://www.FreeBSD.org The need of the many outweighs the greed of the few. From owner-freebsd-current@freebsd.org Sat Aug 19 23:39:27 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 47C80DC816A for ; Sat, 19 Aug 2017 23:39:27 +0000 (UTC) (envelope-from grog@lemis.com) Received: from www.lemis.com (www.lemis.com [208.86.226.86]) by mx1.freebsd.org (Postfix) with ESMTP id 25FF269E28 for ; Sat, 19 Aug 2017 23:39:26 +0000 (UTC) (envelope-from grog@lemis.com) Received: from eureka.lemis.com (www.lemis.com [208.86.226.86]) by www.lemis.com (Postfix) with ESMTP id 915BD1B72815; Sat, 19 Aug 2017 23:39:20 +0000 (UTC) Received: by eureka.lemis.com (Postfix, from userid 1004) id 4A6644494B1; Sun, 20 Aug 2017 09:39:19 +1000 (AEST) Date: Sun, 20 Aug 2017 09:39:19 +1000 From: Greg 'groggy' Lehey To: tech-lists Cc: freebsd-current@freebsd.org Subject: Re: swapfile query Message-ID: <20170819233919.GD91313@eureka.lemis.com> References: <77fdd002-2873-eb67-c851-0127ae3141b6@zyxst.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="M38YqGLZlgb6RLPS" Content-Disposition: inline In-Reply-To: <77fdd002-2873-eb67-c851-0127ae3141b6@zyxst.net> Organization: The FreeBSD Project Phone: +61-3-5346-1370, +61-3-5309-0418 Mobile: 0401 265 606. Use only as instructed. WWW-Home-Page: http://www.FreeBSD.org/ X-PGP-Fingerprint: 9A1B 8202 BCCE B846 F92F 09AC 22E6 F290 507A 4223 User-Agent: Mutt/1.6.1 (2016-04-27) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 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: Sat, 19 Aug 2017 23:39:27 -0000 --M38YqGLZlgb6RLPS Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Saturday, 19 August 2017 at 16:00:28 +0100, tech-lists wrote: > Hello list, > > (freebsd-current is r317212 on this machine) > > I have a machine with 128GB RAM. When 12-current was installed, for some > reason the swap partition was set to 4GB. I see sometimes via top and > also via daily status reports that sometimes the machine runs out of > swap. It doesn't crash the machine though. > > I know how to add more swap with a swapfile. That's one way. It's really better to use a swap partition. If you repartition the SSD for whatever reason, you should consider creating a larger swap partition. > 1. should I make more than one swapfile, say 4x32GB or will it be ok > with one 128GB swapfile? It doesn't make any difference, but 128 GB seems excessive. You might like to try with one 32 GB swap file and see if that's enough. On my machine I have 32 GB of memory and 10 GB swap, and I don't have much of a problem with that. > 2. will the 4GB already there as swap play nice with a swapfile, or > multiple swapfiles? Or should I deactivate the 4GB swap partition > first? Yes. > 3. should total swap be 1x 2x or some other multiple of RAM these days? It never needed to be. The only issue is that if you want processor dumps, you once needed a swap partition (and not a swap file) at least marginally larger than memory. With compressed dumps, that requirement is relaxed, but I suspect that a 4 GB partition could be too small. Greg -- Sent from my desktop computer. Finger grog@FreeBSD.org for PGP public key. See complete headers for address and phone numbers. This message is digitally signed. If your Microsoft mail program reports problems, please read http://lemis.com/broken-MUA --M38YqGLZlgb6RLPS Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iEYEARECAAYFAlmYzCcACgkQIubykFB6QiNNvwCgmFTHRUfFHoJxnSTTuS+ThsVo J0gAnRHq3U2E/38mSHlFkVhX4X79ZWN/ =nzQd -----END PGP SIGNATURE----- --M38YqGLZlgb6RLPS--