This is the mail archive of the mailing list for the glibc project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: localedef during tests suddenly needs a lot of memory

On 08/17/2017 06:29 PM, Joseph Myers wrote:
> On Thu, 17 Aug 2017, Florian Weimer wrote:
>> With upstream master as of commit
>> bb6274ee1293a6bc76d9d7c889783303de181295, I see that make check in the
>> localedata subdirectory needs lots and lots of memory (several gigabytes).
> localedef has never been particularly parsimonious in its use of memory, 
> but historically that was of the form "if you're testing on a board with 
> e.g. only 32 MB of memory, you might need to cross-build the locales".  It 
> shouldn't need several GB; I'd say if it's even using 256 MB it should be 
> made smarter.

I see ~4.8 GiB for fr_FR.UTF-8 on a 64-bit system:

0.68user 1.21system 0:01.89elapsed 99%CPU (0avgtext+0avgdata
0inputs+3160outputs (0major+1235980minor)pagefaults 0swaps

This is with the localdef from glibc 2.24, so it's definitely the data
files which cause this.

valgrind says:

==9080== HEAP SUMMARY:
==9080==     in use at exit: 4,942,949,686 bytes in 238,207 blocks
==9080==   total heap usage: 282,795 allocs, 44,588 frees, 5,021,038,614
bytes allocated

On a 32-bit system, its:

0.78user 0.48system 0:01.26elapsed 99%CPU (0avgtext+0avgdata
0inputs+3160outputs (0major+626570minor)pagefaults 0swaps

==24==     in use at exit: 2,494,524,387 bytes in 234,694 blocks
==24==   total heap usage: 279,269 allocs, 44,575 frees, 2,550,480,781
bytes allocated

That's probably beyond what's available to user space on a 32-bit
kernel. 8-(


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]