Re: APFS: mmap page fault can take up to minutes after ftruncate/F_PREALLOCATE

2019-12-19 Thread Thomas Tempelmann via Filesystem-dev
Out of curiosity, I just ran the test on my 10.13.6 system: On HFS+, the tool finishes in about 5 seconds, ending up with a 4 GB file. However, on a freshly created APFS vol (no encryption, on same SSD as the HFS+ volume), it runs for about an hour! But no extra wait time around 2 GB. I guess

Re: APFS: mmap page fault can take up to minutes after ftruncate/F_PREALLOCATE

2019-12-19 Thread Ilia K via Filesystem-dev
UPDATE: 1. Interestingly, ftruncate() works fine on macOS Catalina. Were there some fixes for this in Catalina? 2. I found an open issue for missing posix_fallocate(): https://openradar.appspot.com/32720223 On Thu, Dec 19, 2019 at 4:32 PM Ilia K wrote: > Hi! > > I investigate performance