From owner-freebsd-hackers@FreeBSD.ORG Wed Sep 18 16:08:18 2013 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 4795DCA3 for ; Wed, 18 Sep 2013 16:08:18 +0000 (UTC) (envelope-from patrick_dkt@yahoo.com.hk) Received: from nm22.bullet.mail.sg3.yahoo.com (nm22.bullet.mail.sg3.yahoo.com [106.10.151.17]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 8EDAB2438 for ; Wed, 18 Sep 2013 16:08:17 +0000 (UTC) Received: from [106.10.166.123] by nm22.bullet.mail.sg3.yahoo.com with NNFMP; 18 Sep 2013 16:08:09 -0000 Received: from [106.10.151.219] by tm12.bullet.mail.sg3.yahoo.com with NNFMP; 18 Sep 2013 16:08:09 -0000 Received: from [127.0.0.1] by omp1017.mail.sg3.yahoo.com with NNFMP; 18 Sep 2013 16:08:09 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 64198.46506.bm@omp1017.mail.sg3.yahoo.com Received: (qmail 69233 invoked by uid 60001); 18 Sep 2013 16:08:09 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com.hk; s=s1024; t=1379520488; bh=mJbrCepao/odnub69P6TnM+3uZqF1W0uR+YuCb6EIFQ=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=Wq6iVKgxn7Ss90p0WZaxIwrwTktXVgnLRz2gW/wpEvIPjUuhu1yOIShAVIQBT0Sq7LFvsPsccvDuPLaN+iAqbBoN52N1jt6qca2+Mcdl7XhIXVV7MecgjIBFYkXPmlJbDRe8PdwrL6d7JxtITPJHjuVzdoAXHPo9bKLyAHP4mdk= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com.hk; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=ktL/YnVD1r0wWsGn86iZ7r75k3zjtPr1MRxqxXuHS8yEoM4HvgjaaCfBIaCMydDGOB356MR45Na8okCq2XbXl67d4L1P0+IKWT1YS+3HnwvGZzgnMnclfCAGopPAgLJtDwYR0P72W+1wvi2A6B/OTO4guvXgPIjQ9/n7xbkUPX8=; X-YMail-OSG: rMpsJs8VM1nYur8Hh_xT7y4C8z0p1V4bSNYFMGqGouZ88gi MGIlnnRmQN2fnWBNn6zxYuOGdWal0mpriRPESeW8EGxaUpNWJ6DBFMNfDoAZ M0DkTM3cSrTEiT12DuUzyZ2gA9GrKSVA5cWGOQN_ygDIR2WJxLQT34BDeG_. l.Q30EqWCamQOnQkx5Y4jyW_AtEErIGdkT1.Ib8xvmQLaPmMfWGGMZo4hrQn TyDygfasYrbmA2qDXGTk.SDH9y6iugYp3tnlINes1.kqeTZG27Jt6zRfUxf0 S7j.e1bnjj7ZL8WoxfhmJsZ5kSngm1K_JfzRuXyx1qiCmTC5TAUGFh0c.3UZ PDmnQWNoOMVGhnCCtUObEl1kBmSvB72q5_Rv.NTT4jaW2NK4sYiAZqoPB9j6 nNlJfVhixxiL6Hm6rD9YzFAEPUSDViFAQhbD97nYBKgN20DbUU3KQvb.xOQO sCtcSqL2YGWVZT4iRXmtfDM7c3yfB4IM1R5H2taZqe8FLgXA8lZVWt.66Uve IceIoe0zeQx8SDWUUXOIKZwVE8FgMeXLnsRLF0HPVYrf_A.XU11Lh_RsPt_m vzfG41HW0bEDx4pJsNtx.veC12wfVm3KM5ekkODP0lu8et.37rltaip0sgkg 0WBdTlOtgm59BMiOXJwENal0Vgd_1frcDCdChJq4FPM1SJCKD4DyHjKQtV.E Hl0Boz7fpk10r_uC5TcMJhudHEtPFomuzuGU5MDiIuLFZIdwNajnKbnuiqtZ _ilLz2y0TdHubJr0BBWp6yqhWlmrfigwSsI57PNvxOa0078i3mgds7vHLzWu KXsd1orwubGKZPWkgYjLXOlpXdI_OKKJc4CMSKRPqPx8UAYwbWzicT5yJS05 7QAt25igso7Ol2RTneYFcGgPaIC4Ht6syNnY91oAwQIRHFnV1sDORL3qyJfP LFCOjFXxIefba Received: from [61.15.240.133] by web193502.mail.sg3.yahoo.com via HTTP; Thu, 19 Sep 2013 00:08:08 SGT X-Rocket-MIMEInfo: 002.001, PkRhdGU6IFR1ZSwgMTcgU2VwIDIwMTMgMTg6MDY6MzIgKzAyMDAKPkZyb206IEl2YW4gVm9yYXMgPGl2b3Jhc0BmcmVlYnNkLm9yZz4KPlRvOiBmcmVlYnNkLWhhY2tlcnNAZnJlZWJzZC5vcmcKPlN1YmplY3Q6IFJlOiBBYm91dCBUcmFuc3BhcmVudCBTdXBlcnBhZ2VzIGFuZCBOb24tdHJhbnNwYXJlbnQKPsKgwqDCoCBzdXBlcmFwZ2VzCj5NZXNzYWdlLUlEOiA8bDE5dW0wJGp2ZCQxQGdlci5nbWFuZS5vcmc.Cj5Db250ZW50LVR5cGU6IHRleHQvcGxhaW47IGNoYXJzZXQ9InV0Zi04Igo.Cj5PbiAxNy8wOS8BMAEBAQE- X-Mailer: YahooMailWebService/0.8.157.561 References: Message-ID: <1379520488.49964.YahooMailNeo@web193502.mail.sg3.yahoo.com> Date: Thu, 19 Sep 2013 00:08:08 +0800 (SGT) From: Patrick Dung Subject: About Transparent Superpages and Non-transparent superapges To: "freebsd-hackers@freebsd.org" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: "ivoras@freebsd.org" X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Patrick Dung List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Sep 2013 16:08:18 -0000 >Date: Tue, 17 Sep 2013 18:06:32 +0200=0A>From: Ivan Voras =0A>To: freebsd-hackers@freebsd.org=0A>Subject: Re: About Transparent S= uperpages and Non-transparent=0A>=A0=A0=A0 superapges=0A>Message-ID: =0A>Content-Type: text/plain; charset=3D"utf-8"=0A>= =0A>On 17/09/2013 17:01, Patrick Dung wrote:=0A>>=0A>>=0A>> Hello,=0A>>=0A>= >=0A>> I have posted the question in freebsd-questions but have not get fee= dback, so I tried to asked in here.=0A>>=0A>> 1.=0A>> Transparent Superpage= s was in FreeBSD for a few years.=0A>> I would like to know if there is any= benchmark or real world performance experience about this setting.=0A>>=0A= >> 2.=0A>> I have seen somewhere that non-transparent superpages was being = developed in HEAD too.=0A>> Any insight on it? Please correct me if it is n= ot the case.=0A>=0A>By "non-transparent" do you mean explicit huge pages AP= I which allows=0A>them to be allocated on-demand rather than heuristically,= such as was=0A>implemented in Linux for at least 8 years (http://goo.gl/8q= ZX4D,=0A>https://lwn.net/Articles/375096/) and supported by major software= =0A>products (http://goo.gl/prxjjo, http://goo.gl/fQOLwO,=0A>http://goo.gl/= pr7Tbb, http://goo.gl/Y9qtWk, http://goo.gl/M0l7LL, etc.)?=0A>I haven't hea= rd about it (but I hope I'm wrong :) ).=0A>=0A=0AFor question no 2: Yes. oO= I should say superpages , large pages or huge page support.=0A=0ABack to m= y questions:=0A1.=0ATransparent Superpages was in FreeBSD for a few years.= =0AI would like to know if there is any benchmark or real world performance= experience about this setting.=0AFor Linux, I have heard people having iss= ues with the THP (transparent huge page) on Linux.=0A=0A2.=0AI have seen so= mewhere that superpages support was being developed in HEAD too.=0AAny insi= ght on it?=0A=0ARegards,=0APatrick=0A From owner-freebsd-hackers@FreeBSD.ORG Thu Sep 19 02:44:38 2013 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id B0750D90 for ; Thu, 19 Sep 2013 02:44:38 +0000 (UTC) (envelope-from nonesuch@longcount.org) Received: from mail-we0-f175.google.com (mail-we0-f175.google.com [74.125.82.175]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4C0E32A44 for ; Thu, 19 Sep 2013 02:44:38 +0000 (UTC) Received: by mail-we0-f175.google.com with SMTP id q59so7432650wes.34 for ; Wed, 18 Sep 2013 19:44:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=CAySSB//BpsTdRBIXQlnGSQAGpbV6UhtNvf2wMbQZrU=; b=NFI+dmQaVrNwljk6jVzsx+SPbLnUxJ7umcHATyF2+aaxGFr+T4oiHJn0GhfYvi/YbL ec6XnA6ac2U+6x7LrXNaugegqYuWJUcLfhjtvOsURiPoR5PVlEWssM4yvs73Vs5OtOPU n8xprCVkvEX14bJkNpEiupaeyO27ZjmklRoIugeKArjmwYkAiq0o+GpFFgKuRNhcTZfa 8T+nDE+g6BzgTGxbMcUPwPLSE+mlbG3ShzXu9A75ZvE+Ms2D58i+tTYNrXdf+61+3oib /p0J09QZAPjsugGxwCW3UF1nCUQI5haT833DSWGB3vtbQSXT781xDku4c2ESKimJFNPu BnnA== X-Gm-Message-State: ALoCoQnO9kK5qYKfcCzSjAJ2s2d7vjoI8UAGk54Lr5640lv5I8rzn5Co1k2q1rhOAJYoHoMqmS8i MIME-Version: 1.0 X-Received: by 10.180.185.166 with SMTP id fd6mr9733766wic.5.1379558312469; Wed, 18 Sep 2013 19:38:32 -0700 (PDT) Received: by 10.217.143.135 with HTTP; Wed, 18 Sep 2013 19:38:32 -0700 (PDT) X-Originating-IP: [74.88.191.50] In-Reply-To: <20130917181101.GB97298@dan.emsphone.com> References: <20130917181101.GB97298@dan.emsphone.com> Date: Wed, 18 Sep 2013 22:38:32 -0400 Message-ID: Subject: Re: FreeBSD SNMP OID Question From: Mark Saad To: "freebsd-hackers@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Sep 2013 02:44:38 -0000 On Tue, Sep 17, 2013 at 2:11 PM, Dan Nelson wrote: > In the last episode (Sep 17), Mark Saad said: > > Can someone shed some light on a OID mystery I have. I am using cacti > > to trend some snmp data off a bunch of FreeBSD servers. > > > > I noticed someone added a graph to a cluster for UCDavis - ssRawSwapIn / > > UCDavis - ssRawSwapOut . The OIDs are .1.3.6.1.4.1.2021.11.62 / > > .1.3.6.1.4.1.2021.11.63 Their description is Number of blocks swapped > > in / Number of blocks swapped out . > > > # snmpwalk -c MyPassword -v2c -Of server00 .1.3.6.1.4.1.2021.11.62.0 > > .iso.org.dod.internet.private. > > enterprises.ucdavis.systemStats.ssRawSwapIn.0 > > = Counter32: 3588 > > That's a counter, so it's reporting the total number of pageins since boot > (or since snmp started, depending on the particular value you're fetching). > Cacti should be able to poll that OID and graph the difference over time to > show pageins/sec. > > > -- > Dan Nelson > dnelson@allantgroup.com > Dan I guess to better refine the question , what is raw swap vs the sysctl vm.stats.vm.v_swappgs{out/in} . I see that net-snmpd has ssSwapOut and ssRawSwapOut . where raw is the current value and "cooked" (ssswap{out/in}) is the average value . I am just at a loss when I am trying to debug this graph issue as the "cooked" oid returns negative ints and the raw returns positive ints, but the sysctrls and top show no usage ? Has anyone seen this before ? -- mark saad | nonesuch@longcount.org