From owner-freebsd-arch@FreeBSD.ORG Fri Jan 11 21:15:29 2013 Return-Path: Delivered-To: arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 2C60FE16; Fri, 11 Jan 2013 21:15:29 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id 990AF1D8; Fri, 11 Jan 2013 21:15:28 +0000 (UTC) Received: from tom.home (kostik@localhost [127.0.0.1]) by kib.kiev.ua (8.14.6/8.14.6) with ESMTP id r0BLFMos017352; Fri, 11 Jan 2013 23:15:22 +0200 (EET) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.7.4 kib.kiev.ua r0BLFMos017352 Received: (from kostik@localhost) by tom.home (8.14.6/8.14.6/Submit) id r0BLFMbi017351; Fri, 11 Jan 2013 23:15:22 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Fri, 11 Jan 2013 23:15:22 +0200 From: Konstantin Belousov To: Lev Serebryakov Subject: Re: Fast sigblock (AKA rtld speedup) Message-ID: <20130111211522.GG2561@kib.kiev.ua> References: <20130107182235.GA65279@kib.kiev.ua> <20130111095459.GZ2561@kib.kiev.ua> <1533659601.20130112005156@serebryakov.spb.ru> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="OWym5pP/pDvoNOpg" Content-Disposition: inline In-Reply-To: <1533659601.20130112005156@serebryakov.spb.ru> User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on tom.home Cc: arch@freebsd.org, toolchain@freebsd.org X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Jan 2013 21:15:29 -0000 --OWym5pP/pDvoNOpg Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Jan 12, 2013 at 12:51:56AM +0400, Lev Serebryakov wrote: > Hello, Konstantin. > You wrote 11 =D1=CE=D7=C1=D2=D1 2013 =C7., 13:54:59: >=20 >=20 > KB> http://people.freebsd.org/~kib/misc/rtld-sigblock.2.patch > KB> is the commit candidate. Now kernel informs rtld about supprt for > Is it first patch in this state, which implements idea of shared > memory between kernel and userland to spped up some syscalls? There > were discussions about this approach for speedup of > getpid()/getppid()/gettimeofday(), but without code ready for commit, > am I right? No, you are wrong. FreeBSD have shared page for very long time, and it is used for syscall-less gettimeofday for quite some time. Non-shared page which could carry per-thread or per-process information, neccessary for looking good in the trivial benchmarks, like getpid(), is different case. The patch does not implement the idea of speeding up some syscalls at all. It provides the special purpose one-off implementation of the alternate mechanism, for the internal consumption of rtld. --OWym5pP/pDvoNOpg Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iQIcBAEBAgAGBQJQ8IDoAAoJEJDCuSvBvK1BZm8P/jfGlOBCq+iVPm29a0Uz4vW/ ssRW030DgmxZJkTALoH2Cq1HiU5jc2DmSqQL80UufQ97vKO3zWcIpU/iP3LbKuSF C+g+YOMPwbGFwAq2zWuSbQ8l8WNgxNivbWdiqR8UJguiZRJNm3ea88RXoRVGzOqV p1TwM4K/pEuyGqNGvUorZwAhVAI2d5YCL+UapGKFUX2hipg3G/F4Ruddnjn7Iwxi st8Bn+BnuIO/baHzIfleSC0xOaShnVOTv6bRTIxl8iKi7bzdZQ/0NEZSzl+v/yly mH18PxZB9s3Q/dAJ/HBHV0qwP4d59HvICWT078Pa/ePTqVqHjktOvQv7aG40WcH1 cWoZcKkjn0kzUk3iv9bu0G4p7an3AYhocwzBfWgyRKQoK8upzQBy2AFcA3jhEzLl qsjUzyBO2tMi4VxViySJr9rf8ilSDQDAG3GZtc0cG9XdxN93Z1et0v74J6FQZqt6 m2aSbkUtks4VqiPrC6Owf3DSdlWHKvIh36FnxnNWn2Vz2DvvEUm+sFCE5I3HwCU2 EutouzVdn+o167trHFHgASUBMdELShGNLh6ThN+fqVd9jn5b6CiBT18iMYf5JPU4 m88t1Gm/jN1RqwNnGV9TvlJXeefvUxWqZHEQb4phlILAae6z2k02x2wzB6rH2KKH HyQozZBs9LriINdOXz1A =sm/a -----END PGP SIGNATURE----- --OWym5pP/pDvoNOpg--