From nobody@FreeBSD.org  Mon Feb  9 18:40:55 2004
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 43FF616A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  9 Feb 2004 18:40:55 -0800 (PST)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 41E3043D1D
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  9 Feb 2004 18:40:55 -0800 (PST)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.10/8.12.10) with ESMTP id i1A2es72030803
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 9 Feb 2004 18:40:54 -0800 (PST)
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.10/8.12.10/Submit) id i1A2esA9030802;
	Mon, 9 Feb 2004 18:40:54 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200402100240.i1A2esA9030802@www.freebsd.org>
Date: Mon, 9 Feb 2004 18:40:54 -0800 (PST)
From: Przemyslaw Laczynski <torindel@wp.pl>
To: freebsd-gnats-submit@FreeBSD.org
Subject: bzip2 have problems on pentium 100 (pkg_add dont work)
X-Send-Pr-Version: www-2.0

>Number:         62611
>Category:       misc
>Synopsis:       bzip2 have problems on pentium 100 (pkg_add dont work)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 09 18:50:12 PST 2004
>Closed-Date:    Sat Mar 06 00:44:27 PST 2004
>Last-Modified:  Sat Mar 06 00:44:27 PST 2004
>Originator:     Przemyslaw Laczynski
>Release:        5.2
>Organization:
>Environment:
5.1-RELEASE; 5.2-RELEASE
>Description:
On pentium 100 with intel board on chipset 430FX bzip behaves like this:
On compressing/decompressing if file is larger (eg couple MB) bzip2 dosent compress/decompress files it gives 0-150k output and then countinusly uses swap witchout any action
top says something like that:
1298 root -20 0 7664K 1644K swread 0:10  1.17% 1.17% bzip2
swap usage changes from 0 to 1MB, bzip2 changes size of resurces (+/- 300k) and cpu utilization but it doesnt produce any more output. It not return any errors nor kill its process.
Smaler outpus compress/decompress  corectly
>How-To-Repeat:
compress decompress something larger (MB)
eg.
buzip2 perl-5.6.1_13.tbz
OR
pkg_add perl-5.6.1_13.tbz

>Fix:
      
>Release-Note:
>Audit-Trail:

From: Kris Kennaway <kris@obsecurity.org>
To: Przemyslaw Laczynski <torindel@wp.pl>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: misc/62611: bzip2 have problems on pentium 100 (pkg_add dont work)
Date: Mon, 9 Feb 2004 21:58:48 -0800

 On Mon, Feb 09, 2004 at 06:40:54PM -0800, Przemyslaw Laczynski wrote:
 
 > On pentium 100 with intel board on chipset 430FX bzip behaves like this:
 > On compressing/decompressing if file is larger (eg couple MB) bzip2 dosent compress/decompress files it gives 0-150k output and then countinusly uses swap witchout any action
 > top says something like that:
 > 1298 root -20 0 7664K 1644K swread 0:10  1.17% 1.17% bzip2
 > swap usage changes from 0 to 1MB, bzip2 changes size of resurces (+/- 300k) and cpu utilization but it doesnt produce any more output. It not return any errors nor kill its process.
 > Smaler outpus compress/decompress  corectly
 > >How-To-Repeat:
 > compress decompress something larger (MB)
 > eg.
 > buzip2 perl-5.6.1_13.tbz
 > OR
 > pkg_add perl-5.6.1_13.tbz
 
 If it's swapping because there system doesn't have enough memory (you
 didn't specify how much), it's going to work really slow (really
 REALLY slow on a Pentium 100).  How long did you wait before deciding
 it was not producing any more output?
 
 Kris

From: "xxx xxx" <torindel@wp.pl>
To: Kris Kennaway <kris@obsecurity.org>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: misc/62611: bzip2 have problems on pentium 100 (pkg_add dont work)
Date: Tue, 10 Feb 2004 13:14:08 +0100

 Dnia 10-02-2004 o godz. 6:58 Kris Kennaway napisa(a):
 > 
 > If it's swapping because there system doesn't have enough
 memory (you
 > didn't specify how much), it's going to work really slow (really
 > REALLY slow on a Pentium 100).  How long did you wait before
 deciding
 > it was not producing any more output?
 > 
 > Kris
 >
 It doesn't have much ram: 16MB + 256MB swap; I waited about 8
 hours and nothing: it prodces 150k output in max 5 mins and after
 that only allocates/deallocates small amounts of swap space
 (makes Swap in, Swap out in top). I have about 0.5MB free ram
 after boot. If it need a lot of ram it should say so, instead it
 stucks in some raceing condition.
 (This computer where firewall on 4.x, on any 5.1/5.2 i cant
 pkg_add cause of bzip2 :[ )
 
 ----------------------------------------------------
 Daj ponie si uczuciu - zadbaj o swoj mio.
 Odwied specjalny serwis walentynkowy - zaprasza Motorola!
 http://klik.wp.pl/?adr=http%3A%2F%2Fwalentynki.wp.pl&sid=113
 
 

From: Kris Kennaway <kris@obsecurity.org>
To: xxx xxx <torindel@wp.pl>
Cc: Kris Kennaway <kris@obsecurity.org>,
	freebsd-gnats-submit@FreeBSD.org
Subject: Re: misc/62611: bzip2 have problems on pentium 100 (pkg_add dont work)
Date: Tue, 10 Feb 2004 04:27:50 -0800

 On Tue, Feb 10, 2004 at 01:14:08PM +0100, xxx xxx wrote:
 > 
 > 
 > Dnia 10-02-2004 o godz. 6:58 Kris Kennaway napisa?(a):
 > > 
 > > If it's swapping because there system doesn't have enough
 > memory (you
 > > didn't specify how much), it's going to work really slow (really
 > > REALLY slow on a Pentium 100).  How long did you wait before
 > deciding
 > > it was not producing any more output?
 > > 
 > > Kris
 > >
 > It doesn't have much ram: 16MB + 256MB swap; I waited about 8
 > hours and nothing: it prodces 150k output in max 5 mins and after
 > that only allocates/deallocates small amounts of swap space
 > (makes Swap in, Swap out in top). I have about 0.5MB free ram
 > after boot. If it need a lot of ram it should say so, instead it
 > stucks in some raceing condition.
 
 It does say so: you noticed it yourself in the previous sentence.  Any
 time you run the machine out of RAM and start thrashing swap,
 performance is going to go down the drain even on a fast machine.
 
 > (This computer where firewall on 4.x, on any 5.1/5.2 i cant
 > pkg_add cause of bzip2 :[ )
 
 16MB is evidently not enough RAM to do what you want with the
 machine..I recommend sticking with the 4.x branch.
 
 Kris

From: "xxx xxx" <torindel@wp.pl>
To: Kris Kennaway <kris@obsecurity.org>
Cc: Kris Kennaway <kris@obsecurity.org>,
	freebsd-gnats-submit@FreeBSD.org
Subject: Re: misc/62611: bzip2 have problems on pentium 100 (pkg_add dont work)
Date: Tue, 10 Feb 2004 14:05:16 +0100

 Dnia 10-02-2004 o godz. 13:27 Kris Kennaway napisa(a):
 
 > It does say so: you noticed it yourself in the previous
 sentence.  Any
 > time you run the machine out of RAM and start thrashing swap,
 > performance is going to go down the drain even on a fast machine.
 > 16MB is evidently not enough RAM to do what you want with the
 > machine..I recommend sticking with the 4.x branch.
 
 Ok on 4.9-release i have about the same free RAM but bzip2 works
 even with large files. So its either a bug or major change in
 memory/swap menagment which should be tweaked
 
 ----------------------------------------------------
 Daj ponie si uczuciu - zadbaj o swoj mio.
 Odwied specjalny serwis walentynkowy - zaprasza Motorola!
 http://klik.wp.pl/?adr=http%3A%2F%2Fwalentynki.wp.pl&sid=113
 
 

From: Colin Percival <colin.percival@wadham.ox.ac.uk>
To: freebsd-gnats-submit@FreeBSD.org, torindel@wp.pl
Cc: kris@obsecurity.org
Subject: Re: misc/62611: bzip2 have problems on pentium 100 (pkg_add
  dont work)
Date: Mon, 16 Feb 2004 04:41:06 +0000

    Further to what Kris wrote, b(un)zip2 specifically performs
 horribly given insufficient memory -- it essentially performs
 random memory accesses (one per byte), so moving from RAM to
 swap will slow things down by a factor of about ten thousand.
    The difference between 4.9 and 5.x is probably due to the
 larger kernel; other user-space programs will be swapped out
 to accomodate bzip2, so the "free memory" is irrelevant in
 this case.
    I don't think anything can be done about this PR, except
 perhaps to document that 32MB RAM is a realistic minimum for
 running 5.x.
 
 Colin Percival
 
State-Changed-From-To: open->closed 
State-Changed-By: kris 
State-Changed-When: Sat Mar 6 00:44:04 PST 2004 
State-Changed-Why:  
Problem is caused by insufficient RAM to run the task. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=62611 
>Unformatted:
