Debian Bug report logs - #654860
locate: updatedb's sort process generates large amount of temporary data

version graph

Package: locate; Maintainer for locate is Andreas Metzler <ametzler@debian.org>; Source for locate is src:findutils.

Reported by: Attila Kinali <attila@kinali.ch>

Date: Fri, 6 Jan 2012 11:21:02 UTC

Severity: normal

Tags: patch, upstream

Found in version findutils/4.4.2-1

Forwarded to http://savannah.gnu.org/bugs/?35254

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Andreas Metzler <ametzler@debian.org>:
Bug#654860; Package locate. (Fri, 06 Jan 2012 11:21:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to Attila Kinali <attila@kinali.ch>:
New Bug report received and forwarded. Copy sent to Andreas Metzler <ametzler@debian.org>. (Fri, 06 Jan 2012 11:21:07 GMT) Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: Attila Kinali <attila@kinali.ch>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: locate: updatedb's sort process generates large amount of temporary data
Date: Fri, 06 Jan 2012 12:00:46 +0100
[Message part 1 (text/plain, inline)]
Package: locate
Version: 4.4.2-1+b1
Severity: normal
Tags: upstream patch

Hi,

I am running locate/updatedb on my fileserver which contains a large amount
of files (several milion). When running updatedb in such an enviroment, its
subprocess sort will create a large amount (1.5GB in my case) of temporary
data in /var/tmp. If /var/tmp is on a rather small partition, this will
cause the partition to be completely filled up.

The solution is to tell sort to use gzip on its temporary data, which results
in a decrease of temp data size by a factor of 10. The performance impact
on updatedb is negligible (less than 1%).

			Attila Kinali

-- System Information:
Debian Release: 6.0.3
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.39.2 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash

Versions of packages locate depends on:
ii  findutils                     4.4.2-1+b1 utilities for finding files--find,
ii  libc6                         2.11.2-10  Embedded GNU C Library: Shared lib

locate recommends no packages.

locate suggests no packages.

-- no debconf information
[updatedb.findutils.patch (text/plain, attachment)]

Set Bug forwarded-to-address to 'http://savannah.gnu.org/bugs/?35254'. Request was from Andreas Metzler <ametzler@debian.org> to control@bugs.debian.org. (Fri, 06 Jan 2012 18:39:03 GMT) Full text and rfc822 format available.

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Mon Apr 21 03:06:00 2014; Machine Name: beach.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.