>>>> "Ingo" == Ingo Molnar
Ingo> * Rik van Riel <riel(a)redhat.com> wrote:
> The disadvantage is pretty obvious too: 4kB pages would no longer
> the fast case, with an indirection. I do not know how much of an
> issue that would be, or whether it even makes sense for 4kB pages to
> continue being the fast case going forward.
Ingo> I strongly disagree that 4kB does not matter as much: it is _the_
Ingo> bread and butter of 99% of Linux usecases. 4kB isn't going away
Ingo> anytime soon - THP might look nice in benchmarks, but it does not
Ingo> matter nearly as much in practice and for filesystems and IO it's
Ingo> absolutely crazy to think about 2MB granularity.
Ingo> Having said that, I don't think a single jump of indirection is a big
Ingo> issue - except for the present case where all the pmem IO space is
Ingo> mapped non-cacheable. Write-through caching patches are in the works
Ingo> though, and that should make it plenty fast.
> Memory trends point in one direction, file size trends in
> For persistent memory, we would not need 4kB page struct pages
> unless memory from a particular area was in small files AND those
> files were being actively accessed. [...]
Ingo> Average file size on my system's /usr is 12.5K:
Ingo> triton:/usr> ( echo -n $(echo $(find . -type f -printf "%s\n") |
Ingo> sed 's/ /+/g' | bc); echo -n "/"; find . -type f -printf
Ingo> | wc -l; ) | bc 12502
Now go and look at your /home or /data/ or /work areas, where the
endusers are actually keeping their day to day work. Photos, mp3,
design files, source code, object code littered around, etc.
Now I also have 12Tb filesystems with 30+ million files in them, which
just *suck* for backup, esp incrementals. I have one monster with 85+
million files (time to get beat on users again ...) which needs to be
So I'm not arguing against you, I'm just saying you need better more
representative numbers across more day to day work. Running this
exact same command against my home directory gets:
So I'm not arguing one way or another... just providing numbers.