From owner-freebsd-current@freebsd.org Wed Jan 3 21:37:53 2018 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 9D3EDEB07C0 for ; Wed, 3 Jan 2018 21:37:53 +0000 (UTC) (envelope-from ed@nuxi.nl) Received: from mail-yw0-x22e.google.com (mail-yw0-x22e.google.com [IPv6:2607:f8b0:4002:c05::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 5D2D3679BD for ; Wed, 3 Jan 2018 21:37:53 +0000 (UTC) (envelope-from ed@nuxi.nl) Received: by mail-yw0-x22e.google.com with SMTP id k80so1072991ywe.0 for ; Wed, 03 Jan 2018 13:37:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nuxi-nl.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=BSM2oWEEI18581/xZRqFgASO0Ujbc+FzaobHytLv/Bc=; b=u3X4HmS309RAjCst5CTVXWymKFMW3Bn5BHTA0vHI92dNOfYrgyeZmaOPtH2oHmUCYm hD5aGecGZT7/OXCw7I4Zb6wpNXwoJaxcHQIBDvrnUFiIiFKhRnY+mEYryRRa7br/UYlS izSOj3Cj/j7X9v11Mdd2BLEv2k6EiA4VjFgAP1ALu67TpftkfejUPHy0bJBsrudNCsnC RBZRGb2oR2gbcTHTRo1XP5BFdxrwXymRmq+ASiDgv8Dyy3PxwwwXK4MeDIs4XvbowPZj 7JZwxjrRvdUCOlovaG5qq/LoeIkoXuYO54juxN/d0R1N/zTisMLtUxHiLrcQMbrsCdL2 3F/g== 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=BSM2oWEEI18581/xZRqFgASO0Ujbc+FzaobHytLv/Bc=; b=gLauqw8sspcFIuuwN+mN95Ju+na8EcMKQMGjIqxio+Y4DUr5eaiCmTpW3zhyfRrNm1 2d/PS+YF2Vj1dfPLr7wd42Bd8fd0E/HBkmFvxQcz5b2KcK/WbCxPbzDG8GKpy8Gb4/qJ HnYJeYxuY6HkdETjFKBoOpj7f0p+TEXnmq3Yf0he12a/zLeNUbKg74MM9j/y6QXX4fEy l6zbe7bwSkJSPY5pEqSu06ahm/Qjt6nsfrD3RpIfrX+XNI+vUXj04zzXpuw+voK/UqFy mxw1fxbwjXXgrTOSOjdUjdL1G+aFALSYkML+fi+KMUW+ll7/QGMWzA385HzkzWRbxWQP VQpA== X-Gm-Message-State: AKGB3mJOWac8IVmFeHjMn014kQCsOg1Ivh4QBgbgFFePW0+i0OPEpGQf vbPadMWMeqHWZRS0TLiLP0oGKK8M1PlhfH4YUob6rw== X-Google-Smtp-Source: ACJfBouChMcygTdeoFOf1LQBCbfty7y9XTPQM/MeoyqnA6G/u9HO3cnC0Clo9pw5X8o8L2IbCwGtTH/zS+UvA80hM2Q= X-Received: by 10.129.200.14 with SMTP id n14mr2438719ywi.367.1515015472178; Wed, 03 Jan 2018 13:37:52 -0800 (PST) MIME-Version: 1.0 Received: by 10.129.85.17 with HTTP; Wed, 3 Jan 2018 13:37:21 -0800 (PST) In-Reply-To: <20180101103655.GF1684@kib.kiev.ua> References: <20171230082812.GL1684@kib.kiev.ua> <08038E36-9679-4286-9083-FCEDD637ADCC@FreeBSD.org> <20180101103655.GF1684@kib.kiev.ua> From: Ed Schouten Date: Wed, 3 Jan 2018 22:37:21 +0100 Message-ID: Subject: Re: Programmatically cache line To: Konstantin Belousov Cc: David Chisnall , Adrian Chadd , blubee blubeeme , FreeBSD current Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.25 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, 03 Jan 2018 21:37:53 -0000 2018-01-01 11:36 GMT+01:00 Konstantin Belousov : >> >> On x86, the CPUID instruction leaf 0x1 returns the information in >> >> %ebx register. >> > >> > Hm, weird. Why don't we extend sysctl to include this info? > > For the same reason we do not provide a sysctl to add two integers. I strongly agree with Kostik on this one. Why add stuff to the kernel, if userspace is already capable of extracting this? Adding that stuff to sysctl has the downside that it will effectively introduce yet another FreeBSDism, whereas something generic already exists. -- Ed Schouten Nuxi, 's-Hertogenbosch, the Netherlands