From owner-freebsd-hackers Thu Mar 7 10:46:57 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from dragon.nuxi.com (trang.nuxi.com [66.92.13.169]) by hub.freebsd.org (Postfix) with ESMTP id 11A1D37B404 for ; Thu, 7 Mar 2002 10:46:28 -0800 (PST) Received: (from obrien@localhost) by dragon.nuxi.com (8.11.6/8.11.1) id g27Ik9A61208; Thu, 7 Mar 2002 10:46:09 -0800 (PST) (envelope-from obrien) Date: Thu, 7 Mar 2002 10:42:05 -0800 From: "David O'Brien" To: Dimitar Peikov Cc: GB Clark , mitko@rila.bg, freebsd-hackers@FreeBSD.ORG Subject: Re: Swapping performance Message-ID: <20020307104205.C61088@dragon.nuxi.com> Reply-To: obrien@FreeBSD.ORG References: <20020307090707.GC26621@elvis.mu.org> <20020307142759.0d95d467.mitko@rila.bg> <20020307080906.367be8df.gclarkii@vsservices.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20020307080906.367be8df.gclarkii@vsservices.com>; from gclarkii@vsservices.com on Thu, Mar 07, 2002 at 08:09:06AM -0600 X-Operating-System: FreeBSD 5.0-CURRENT Organization: The NUXI BSD group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, Mar 07, 2002 at 08:09:06AM -0600, GB Clark wrote: > > I've tested it with : > > > > cc -O6 -o malloc_test malloc_test.c > > That -O6 does not look right from here. Do we support anything over -O2? > > And how about some source for malloc_test.c? The fact of running > something at -O6 started some bells ringing. Not us, but GCC does not support anything over -O3. -O4 and above are treated as -O3. I *really* wish people would have a clue with with in the hell they think they are achieving with -O. Not all optimizations are appropriate in all cases. And given this level of optimization and the fact that the linux box is probably a different version of GCC, I wonder how much of this could be due to the compiler. Please rerun your tests with '/usr/bin/time -l' on FreeBSD and however you achieve the same on Linux. P.S. are you sure you are swapping, vs. paging? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message