[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#185010: marked as done (localedef uses lots and lots of memory)



On Sun, Mar 16, 2003 at 05:48:12PM -0600, Debian Bug Tracking System wrote:
> At Sun, 16 Mar 2003 14:10:16 +0000,
> pmaydell@chiark.greenend.org.uk wrote:
> > 
> > Package: libc6
> > Version: 2.2.5-11.2
> > 
> > The localedef utility (as run by locale-gen) uses an extremely large amount
> > of memory. This means it takes a very long time to run on machines without
> > very much RAM (48MB in this case), and my SPARCstation actually ran totally
> > out of memory so localedef was killed by the OOM-killer before it could 
> > finish...
> > 
> > Here's a ps snapshot:
> > USER       PID %CPU %MEM   VSZ  RSS TTY      STAT START   TIME COMMAND
> > root     18243  6.9 34.5 41852 13992 pts/7   D    13:41   0:39 localedef -i en_GB -c -f UTF-8 en_GB.UTF-8
> > 
> > Note the ludicrous VSZ.
> > 
> > (I dunno, maybe this should be wishlist, but since it's actually bad
> > enough that I can't add extra locales on this SPARC box I'll leave it
> > at normal severity.)
> 
> So add more memory or add swap or reduce processes consuming memory.

Huh?  That's got to be the lamest bug-closing message I've seen in
years.  All the world is not a PC.  Adding memory is not the answer.

Localedef is a ridiculous CPU/memory hog; it should and probably can be
fixed.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer



Reply to: