Error using "locate --statistics"

Issue #86 resolved
Bryan Dietz created an issue

while using the updatedb and locate utilities I get the following from:

locate --statistics

Database /QOpenSys/var/locatedb is in the old format.

locate: memory exhausted

locate --version

locate (GNU findutils) 4.6.0

updatedb --version

updatedb (GNU findutils) 4.6.0

this is failing on a 9080-M9s @ v7.3 1.5 phy cpu and 48 gb memory what else can I provide?

Comments (9)

  1. Kevin Adler

    Hardware shouldn’t matter in this regard. Basically the way that PASE works, “no more memory” doesn’t really have anything to do with actual physical memory on the system.

    What’s the output of rpm -qi findutils?

  2. Bryan Dietz reporter

    rpm -qi findutils
    Name : findutils
    Version : 4.6.0
    Release : 2
    Architecture: ppc64
    Install Date: Tue Nov 5 13:35:11 2019
    Group : Unspecified
    Size : 8018534
    License : GPL-3.0-or-later
    Signature : (none)
    Source RPM : findutils-4.6.0-2.src.rpm
    Build Date : Tue Nov 5 12:31:13 2019
    Build Host : UT25BP3
    Relocations : (not relocatable)
    URL : https://www.gnu.org/software/findutils/
    Summary : GNU find and xargs

  3. Kevin Adler

    Looks like something went wrong with our rebuild on IBM i 7.2. Can you try downgrading to 4.6.0-1 with yum downgrade findutils and make sure that works?

  4. Bryan Dietz reporter

    unfortunately this was and first setup of the OSS tool3:

    -bash-4.4$ yum downgrade findutils
    Setting up Downgrade Process
    ibm | 2.2 kB 00:00:00
    Only Upgrade available on package: findutils-4.6.0-2.ppc64
    Nothing to do

  5. Kevin Adler

    Hey Bryan, sorry about that. I thought I had manually pushed up the previous rpm, but it looks like it didn’t work before. You should be able to downgrade now, though.

  6. Bryan Dietz reporter

    the downgrade looks to be working, Thanks.

    Removed:
    findutils.ppc64 0:4.6.0-2

    Installed:
    findutils.ppc64 0:4.6.0-1

    updatedb --prunepaths='/QOPT /QDLS /QSYS.LIB'

    locate --statistics
    Database /QOpenSys/var/locatedb is in the GNU LOCATE02 format.
    Database was last modified at 2019:11:12 07:54:56.000000000 EST
    Locate database size: 5337789 bytes
    All Filenames: 484075
    File names have a cumulative length of 33437726 bytes.
    Of those file names,

         6735 contain whitespace,                       
         0 contain newline characters,                  
         and 1 contain characters with the high bit set.
    

    Compression ratio 84.04% (higher is better)

  7. Log in to comment