Sparc64 MM bug fixes
cover Sparc64 MM bug fixes
This is the current state of my audit of the sparc64 mm code.
Some of these changes have to do with THP, but some do not.
I've started to add some better checking of page table sanity, in the hopes that it will potentially help further diagnosis of any problems that still can be triggered.
In particular, pmd_bad() and pud_bad() now actually do something :)
If those exit_mmap() WARN_ON()'s still trigger, I'll have to code up a more sophisticated debugging patch I guess. My current idea is to have a debugging function which walks the page tables counting PTE tables (under suitable locks), and validates that mm->nr_ptes matches this count. Then we can sprinkle calls to this debugging function at various critical spots, such as fault entry and exit, and around major MM operations that potentially adjust page tables.
Actually, if I implement that facility, the first iteration I'd have simply check only at free_pgtables() entry. That way we can learn quickly if we enter free_pgtables() with the counter already corrupted, or if it gets corrupted by the unmaps done by free_pgtables() itself.
Anyways, please let me know how well these patches work and if they make any difference for your problems at all. THP enabled and THP disabled results are both extremely useful.
Thanks!
Quoted 8 lines · David Miller
This is the current state of my audit of the sparc64 mm code.
Some of these changes have to do with THP, but some do not.
I've started to add some better checking of page table sanity, in the hopes that it will potentially help further diagnosis of any problems that still can be triggered.
Impressive serie - it must have cost a few cups of espresso or the like. Only one small nit - which is another way to say that I could not follow all the changes.
See separate mail.
Sam
Quoted 3 lines
Anyways, please let me know how well these patches work and if they make any difference for your problems at all. THP enabled and THP disabled results are both extremely useful.
Preliminary results from 4 computers are positive.
Ultra 2 (2x300), Netra X1, V100 and V480 (4 CPU) have survived night (two of them actually day+night) of
while true; do apt-get update; done
that killed the machine with 1-2 tries before. Nothing bad in dmesg. THP on+always on all the them for now.
Signature · 1 line
Meelis Roos ([email protected])
Quoted 5 lines
Quoted 3 lines
Anyways, please let me know how well these patches work and if they make any difference for your problems at all. THP enabled and THP disabled results are both extremely useful.
Preliminary results from 4 computers are positive.
Of there 4, 3 performed debian update with aptitude successfully. V100 hung after
Preconfiguring packages ...
nothing on console either.
This may or may not be related to the THP problem - V100 and X1 have sometimes occassionally rebooted by themselves, I think even with THP off. I have not had time to narrow it down to something specific - my last suspicion was tulip driver (lots of local IDE activity did not trigger it, lots of network activity seemed to have some probability of triggering it).
Signature · 1 line
Meelis Roos ([email protected])