> 2.4.1 has a memory leak (temporary) where anonymous memory pages
> that have been moved into the swap cache will stick around after
> their vma has been unmapped by the owning process.
> free_pte in mm/memory.c has been modified to check to see if the
> page is only being referenced by the swap cache
Your idea is nice, but the patch lacks a few things:
- SMP locking, what if some other process faults in this page
between the atomic_read of the page count and the test later?
- testing if our process is the _only_ user of this swap page,
for eg. apache you'll have lots of COW-shared pages .. it would
be good to keep the page in memory for our siblings
regards,
Rik
-- Linux MM bugzilla: http://linux-mm.org/bugzilla.shtmlVirtual memory is like a game you can't win; However, without VM there's truly nothing to lose...
http://www.surriel.com/ http://www.conectiva.com/ http://distro.conectiva.com/
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/