From owner-freebsd-hackers@freebsd.org Thu Aug 20 15:10:33 2015 Return-Path: Delivered-To: freebsd-hackers@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 C9ACC9BFAF6 for ; Thu, 20 Aug 2015 15:10:33 +0000 (UTC) (envelope-from rysto32@gmail.com) Received: from mail-ig0-x231.google.com (mail-ig0-x231.google.com [IPv6:2607:f8b0:4001:c05::231]) (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 933EC34C; Thu, 20 Aug 2015 15:10:33 +0000 (UTC) (envelope-from rysto32@gmail.com) Received: by igui7 with SMTP id i7so32792876igu.0; Thu, 20 Aug 2015 08:10:33 -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=B4oJLMWqjgC6UeG3nu7YkBdh60I5vKfg6lwfLY92yn0=; b=iPGwknIOYeBj6Vg5by/C9Z2SoOqw/aA+82BUNBI6E5/Jd1d7pCB5/0KNd6rTmJLc/X Q/j9bFqbXN+x7iIF1vLqm6c4T5VhM1OWqmRCYnWE2oLx8mBVgqLVFin8ghO4rLs/j43l MxVvOOU5UQEuedKgElMAi8BcCXzvpL0VjCHgwkS36vzN8aBWCiHZe3z3aYAH3jcY5f2D 7VkoR4IKAOXEi+UXuLU/EAD3dkegAPetFl+6IXDwaUzrfu9fWnCIjPILANHeIhLrfJ0s Big3nwbh8IzXs6FXdmgUAfzR6kgrax0VKCFV1ZlSTfcY2g7Q9uw4hyp/Qgvygf+hXYOz g0CQ== MIME-Version: 1.0 X-Received: by 10.50.83.65 with SMTP id o1mr8047159igy.69.1440083432870; Thu, 20 Aug 2015 08:10:32 -0700 (PDT) Received: by 10.107.169.94 with HTTP; Thu, 20 Aug 2015 08:10:32 -0700 (PDT) In-Reply-To: <1438819170.70393.227.camel@freebsd.org> References: <1438819170.70393.227.camel@freebsd.org> Date: Thu, 20 Aug 2015 11:10:32 -0400 Message-ID: Subject: Re: vm_lowmem is prevented every 2**31 ticks From: Ryan Stone To: Ian Lepore Cc: "freebsd-hackers@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Aug 2015 15:10:33 -0000 On Wed, Aug 5, 2015 at 7:59 PM, Ian Lepore wrote: > If you're measuring elapsed time, please use getbinuptime() rather than > the time of day clock (which can be stepped arbitrarily). > > Hey wait a sec... if it's currently some_ticks/hz it's counting seconds, > right? So no need to mess with bintimes, if whole seconds are good > enough just use the global time_uptime. > i thought that there was such a variable, but a quick search didn't turn it up. Thanks. (And thanks for also catching my potential mistake in not using uptime -- that would have been embarrassing) I've put the potential fix up for review here: https://reviews.freebsd.org/D3439