From owner-freebsd-arch@FreeBSD.ORG Sun Sep 23 06:41:46 2012 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9C4A1106566C; Sun, 23 Sep 2012 06:41:46 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (mx0.zoral.com.ua [91.193.166.200]) by mx1.freebsd.org (Postfix) with ESMTP id 14A648FC12; Sun, 23 Sep 2012 06:41:45 +0000 (UTC) Received: from skuns.kiev.zoral.com.ua (localhost [127.0.0.1]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id q8N6fsSw007678; Sun, 23 Sep 2012 09:41:54 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.5/8.14.5) with ESMTP id q8N6fg4W079449; Sun, 23 Sep 2012 09:41:42 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.5/8.14.5/Submit) id q8N6fg4m079448; Sun, 23 Sep 2012 09:41:42 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Sun, 23 Sep 2012 09:41:42 +0300 From: Konstantin Belousov To: Andrey Zonov Message-ID: <20120923064142.GJ37286@deviant.kiev.zoral.com.ua> References: <503DD433.2030108@FreeBSD.org> <201208290906.q7T96C9j032802@gw.catspoiler.org> <20120829092318.GW33100@deviant.kiev.zoral.com.ua> <503F2D24.8050103@FreeBSD.org> <50463026.8000506@FreeBSD.org> <504653CD.2000707@FreeBSD.org> <5046F4E0.6000606@FreeBSD.org> <50561223.7060709@FreeBSD.org> <20120917123719.GS37286@deviant.kiev.zoral.com.ua> <50599179.4020505@FreeBSD.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="SfiY5U5w26VY+QNu" Content-Disposition: inline In-Reply-To: <50599179.4020505@FreeBSD.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-4.0 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: Andriy Gapon , freebsd-arch@freebsd.org Subject: Re: [patch] unprivileged mlock(2) X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Sep 2012 06:41:46 -0000 --SfiY5U5w26VY+QNu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Sep 19, 2012 at 01:33:45PM +0400, Andrey Zonov wrote: > On 9/17/12 4:37 PM, Konstantin Belousov wrote: > Thanks for review. Updated patch is here [1]. >=20 > [1] http://people.freebsd.org/~zont/patches/mlock3.patch >=20 I do not have further comments for the patch itself. But I would like to have racct completely consume all limits checks, together with ability to atomically check several limits and update several counters in one API call. --SfiY5U5w26VY+QNu Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (FreeBSD) iEYEARECAAYFAlBeryYACgkQC3+MBN1Mb4gX8ACg0BtCue2XPQGOtD9BvPmLEOah CaQAoJLfj8OPM3I75qNhFx9bhg9L5UXY =llFZ -----END PGP SIGNATURE----- --SfiY5U5w26VY+QNu-- From owner-freebsd-arch@FreeBSD.ORG Fri Sep 28 22:52:43 2012 Return-Path: Delivered-To: arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7EF66106566C for ; Fri, 28 Sep 2012 22:52:43 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from bigwig.baldwin.cx (bigknife-pt.tunnel.tserv9.chi1.ipv6.he.net [IPv6:2001:470:1f10:75::2]) by mx1.freebsd.org (Postfix) with ESMTP id 568C48FC0A for ; Fri, 28 Sep 2012 22:52:43 +0000 (UTC) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id B82BEB946 for ; Fri, 28 Sep 2012 18:52:42 -0400 (EDT) From: John Baldwin To: arch@freebsd.org Date: Fri, 28 Sep 2012 18:47:39 -0400 User-Agent: KMail/1.13.5 (FreeBSD/8.2-CBSD-20110714-p20; KDE/4.5.5; amd64; ; ) MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <201209281847.39663.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Fri, 28 Sep 2012 18:52:42 -0400 (EDT) Cc: Subject: stdio and short file descriptors revisited X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Sep 2012 22:52:44 -0000 Four years or so ago I cleaned up some of the stdio internals as fallout from running into problems with stdio using a short instead of an int to hold file descriptors. Back then I got sidetracked with attempting to make FILE opaque and ended up never getting around to bumping _file from a short to an int. I recently ran back into the SHRT_MAX limit at work again and came up with a patch to fix this. To preserve the ABI, it is necessary to leave the existing short _file in place and add a new int _file to the end of the FILE structure. Also, for old applications, the old _file (_ofile in the patch) must still be valid. The approach I have taken is to bump the symbol version for routines that create FILE objects with a non-fake _file (fopen, fdopen, and freopen). The old FBSD_1.0 variants still fail if an fd is greater than SHRT_MAX (and thus cannot be safely stored in _ofile). The new FBSD_1.3 variants assign to both _file and _ofile if the fd is less than SHRT_MAX. I also changed fileno() to no longer be an inline macro in but to always be a function call going forward. If folks think this is ok, I'll hack up a modified version that hides _file from outside consumers (rename it to _nfile or some such) and send it for a ports-exp run before committing to make sure there aren't any 3rd party apps accessing _file directly. http://www.FreeBSD.org/~jhb/patches/stdio_file.patch -- John Baldwin From owner-freebsd-arch@FreeBSD.ORG Sat Sep 29 13:19:29 2012 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 66C26106566C for ; Sat, 29 Sep 2012 13:19:29 +0000 (UTC) (envelope-from sam.gh1986@gmail.com) Received: from mail-vb0-f54.google.com (mail-vb0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 21C7D8FC0A for ; Sat, 29 Sep 2012 13:19:28 +0000 (UTC) Received: by vbmv11 with SMTP id v11so5253407vbm.13 for ; Sat, 29 Sep 2012 06:19:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=LQdPquRBy9nOSY6xWdDVO0Zth3SgdfZCSViWWFSLuWs=; b=rCrWHU+ma3eXIl7F5K9pKiQjOwir456kPN84jwfx+qArjGuoSuRK33KsN6kYZEJLrX lhT1QG0RR2f9yCPqUwwmnk4DaQNUVxBmuutOUZgAuf1YuLS+Sg56IxELWdqQMabB2GaF uFzcvkksmNyYtshRCc4f/ATTsmMOwhNM4EPmih86dtesa/NnK1yW3uKhS+PpanqGoW10 yqLtFxt5Yw/w64c9PQvXbbNYfakiXnQb8JYeqof25qbIYCezZ5XohuLkRuP8gtPp5prh lvBTPDpbIBKRqlg/Qml7s/HdouVxcKc4V5OSrmQAFzBZkkRfvxwdTUSoU46oZ0tCBb18 glVA== MIME-Version: 1.0 Received: by 10.52.72.42 with SMTP id a10mr3393249vdv.48.1348924768253; Sat, 29 Sep 2012 06:19:28 -0700 (PDT) Received: by 10.58.239.167 with HTTP; Sat, 29 Sep 2012 06:19:28 -0700 (PDT) Date: Sat, 29 Sep 2012 16:49:28 +0330 Message-ID: From: s m To: freebsd-arch@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: relation between different components of the FreeBSD X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Sep 2012 13:19:29 -0000 hello all for my study case i need to know the architecture of FreeBSD in detail. i googles so much but every available handbook or pages, talks just about the component of FreeBSD and how they are configured. i need to know the relation between components such as kernel, drivers and etc, and how they work together. some thing like a diagram is so nice and would help me. any body knows any resources about it? thanks