Description of problem: When running 'make relabel' on a drive with large numbers of files (150000) setfiles eventually consumes all available memory and begins to swap. It eventually uses all swap and hangs machine Version-Release number of selected component (if applicable): policycoreutils-1.6-8 How reproducible: every time on my x86_64 box Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
This looks like it might be a kernel problem. The app is not growing but free memory is dropping. > Stephen Smalley says he sees similar behaviour when running > Ah, good point - I was just looking at memory consumption by the > process, not at the massive bleeding of overall free memory during a > setfiles run. Looks like find / -xdev -ls > /dev/null yields the > same result; requires further investigation. Memory seems to free up when the app exits.
Created attachment 98608 [details] kernel messages when running out of memory running setfiles This is using kernel 2.6.3-2.1.253 on x86-64 box
I've looked into this on i386 and have not observed anything unusual (e.g. memory pressure reclaims dcache, ext3 inode cache slab entries just fine). Can you please test with the current Fedora kernel? If you still see the problem, are you able to duplicate it on an i386 box?
This looks a lot like the updatedb problem report. You might want to try Arjan's latest and greatest
still a problem with the 2.6.9 updates ?
Haven't experienced for some time, if it occurs again I'll reopen or file a new one.