From owner-freebsd-hackers@FreeBSD.ORG Sat Jan 24 11:02:41 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7F7C916A4CE for ; Sat, 24 Jan 2004 11:02:41 -0800 (PST) Received: from dust.freshx.de (freshx.de [80.190.100.215]) by mx1.FreeBSD.org (Postfix) with ESMTP id BCB9D43D62 for ; Sat, 24 Jan 2004 11:02:26 -0800 (PST) (envelope-from kai@freshx.de) Received: from localhost (unknown [127.0.0.1]) by dust.freshx.de (Postfix) with ESMTP id 1430115E33B for ; Sat, 24 Jan 2004 20:02:18 +0100 (CET) Received: from localhost (unknown [127.0.0.1]) by dust.freshx.de (Postfix) with ESMTP id 5C6DA15E2E9 for ; Sat, 24 Jan 2004 20:02:17 +0100 (CET) Received: from 127.0.0.1 ( [127.0.0.1]) as user dust0005@localhost by localhost with HTTP; Sat, 24 Jan 2004 20:02:17 +0100 Message-ID: <1074970937.4012c1394eba7@localhost> Date: Sat, 24 Jan 2004 20:02:17 +0100 From: Kai Mosebach To: hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.0 X-Virus-Scanned: by AMaViS 0.3.12 Subject: strange "less" behaviour on big files X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: sapdb@komadev.de List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Jan 2004 19:02:41 -0000 Hi all, i stumbled over a problem with less, when "lessing" big files. i lessed a 1.0 gig file filled with zeros and less seems to slurp in as much as it can get at one time! this happens only on 5.2-RELEASE, a 4.9-RELEASE does fine. my top says (on a 512 mb machine) 20041 root 76 0 382M 193M pfault 0:03 7.03% 7.03% less furthermore i think the state "pfault" in top is pretty strange, and after a minute or so the process coredumps backtrace is not very useful though ... #0 0x2811dd4f in kill () from /lib/libc.so.5 (gdb) bt #0 0x2811dd4f in kill () from /lib/libc.so.5 #1 0x281127f8 in raise () from /lib/libc.so.5 #2 0x2818af02 in abort () from /lib/libc.so.5 #3 0x2818967e in tcflow () from /lib/libc.so.5 #4 0x28189f1b in tcflow () from /lib/libc.so.5 #5 0x2818a2d6 in malloc () from /lib/libc.so.5 #6 0x28186ae1 in calloc () from /lib/libc.so.5 #7 0x0805255d in clear () #8 0x080535a4 in clear () #9 0x08053ab6 in clear () #10 0x08053dfb in clear () #11 0x08051366 in clear () #12 0x080523bf in clear () #13 0x0804dbc0 in clear () #14 0x0804dc27 in clear () #15 0x0804dfcf in clear () #16 0x080496b6 in free () #17 0x08049242 in free () Any ideas ? Regards Kai -- SapDB for FreeBSD --- see http://www.komadev.de/sapdb