From owner-svn-doc-all@FreeBSD.ORG Thu Jul 12 15:32:21 2012 Return-Path: Delivered-To: svn-doc-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9E173106566C; Thu, 12 Jul 2012 15:32:21 +0000 (UTC) (envelope-from utisoft@gmail.com) Received: from mail-bk0-f54.google.com (mail-bk0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 929738FC14; Thu, 12 Jul 2012 15:32:20 +0000 (UTC) Received: by bkcje9 with SMTP id je9so2430390bkc.13 for ; Thu, 12 Jul 2012 08:32:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=mmnBO9yEMSmJMOB895xlCS9jcdeQpHHQB/OZphhvY9g=; b=PwojpUIPsziZ9+TAu2AzAme+t8h1gUdbgoNUGHhrOtRtqe3TcO3vyRNvUNFqFmxRjj kovkn3xZjdhAYBgjOSaPqvUPkYNmG4W5jF1aUHkQF1fKG1216sSWgEOIprsGlNqCorxU X342aCuGF3J2G5jleuYXS3J1Dm1I3njb4sQjLtc8i8+7Jppe6eNfJNtFF/DcztrmzHLK GNZfS8RHoHzX+/rVIxZWrxnU7LmFLOCMugn576jnUnDQD1a2AUjTPO9+Nlkv7XTf4/kF fBFUZ61Nd30WeJufCd6CdDfP1yR8afElO6Oiq5/kiJZlwA1S/HFDLx/6QOzSETkvr8ne VTsg== MIME-Version: 1.0 Received: by 10.204.151.81 with SMTP id b17mr2087808bkw.95.1342107139429; Thu, 12 Jul 2012 08:32:19 -0700 (PDT) Received: by 10.204.49.87 with HTTP; Thu, 12 Jul 2012 08:32:19 -0700 (PDT) Received: by 10.204.49.87 with HTTP; Thu, 12 Jul 2012 08:32:19 -0700 (PDT) In-Reply-To: <20120712150548.GK2338@deviant.kiev.zoral.com.ua> References: <201207121412.q6CECngA011553@svn.freebsd.org> <20120712150548.GK2338@deviant.kiev.zoral.com.ua> Date: Thu, 12 Jul 2012 16:32:19 +0100 Message-ID: From: Chris Rees To: Konstantin Belousov Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: svn-doc-head@freebsd.org, svn-doc-all@freebsd.org, doc-committers@freebsd.org, Isabell Long Subject: Re: svn commit: r39189 - head/en_US.ISO8859-1/books/porters-handbook X-BeenThere: svn-doc-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire doc trees \(except for " user" , " projects" , and " translations" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jul 2012 15:32:21 -0000 On Jul 12, 2012 4:06 PM, "Konstantin Belousov" wrote: > > On Thu, Jul 12, 2012 at 02:12:49PM +0000, Isabell Long wrote: > > Author: issyl0 > > Date: Thu Jul 12 14:12:49 2012 > > New Revision: 39189 > > URL: http://svn.freebsd.org/changeset/doc/39189 > > > > Log: > > Add a section to the Dos and Don'ts section of the porter's handbook > > about avoiding Linuxisms. > > > + A number of simple syscalls (for example > > + &man.gettimeofday.2;, &man.getpid.2;) are much faster on > > + &linux; than on any other operating system due to caching and > > + the vsyscall performance optimizations. Do not rely on them > > + being cheap in performance-critical applications. In general, > > + try hard to avoid syscalls if possible. > And this is not quite true for HEAD and soon for RELENG_9. Quite true, so there are others that may be more true. What syscalls remain that are expensive for us that could be used as examples? Chris