Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 09 Sep 2002 14:17:49 +0300
From:      Maxim Sobolev <sobomax@FreeBSD.org>
To:        Jeremy Lea <reg@FreeBSD.org>
Cc:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/usr.sbin/pkg_install/version perform.c version.h
Message-ID:  <3D7C835D.2762C1F6@FreeBSD.org>
References:  <200209090800.g8980W9T021683@freefall.freebsd.org> <20020909105759.GA61587@shale.csir.co.za>

next in thread | previous in thread | raw e-mail | index | archive | help
Jeremy Lea wrote:
> 
> Hi,
> 
> On Mon, Sep 09, 2002 at 01:00:32AM -0700, Maxim Sobolev wrote:
> > sobomax     2002/09/09 01:00:32 PDT
> >
> >   Modified files:
> >     usr.sbin/pkg_install/version perform.c version.h
> >   Log:
> >   Vastly decrease amount of memory comsumed in the case when we have to read
> >   ports/INDEX, by allocating eactly amount of memory necessary for storing
> >   each particular entry, insdead of 4K per entry (more than 7000 entries -
> >   go figure). Memory consumption went down to some 500K from some 30M.
> 
> Thanks.  I didn't even really look at the memory consumption when the
> index was loaded.

So as I, until I've tried to do pkg_version on low-end machine with no
swap space configured. Imagine my surprise when I've got 'out of swap
space' error!

> The change on line 68 looks a little funky though?

Oh, yeah, this is leftover from my debugging session (the name of the
port on which pkg_version's memory consumption was skyrocketing for
me). Fixed, thank you for pointing it out.

-Maxim

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3D7C835D.2762C1F6>