Re: Disk-based logger - write pretouch

2017-07-10 Thread Martin Thompson
Are you running recent MacOS with APFS which supports sparse files? Linux supports sparse files but not all OSs do. You need to run Linux to get reasonable profiling information from the OS that is generally applicable. Then you can use nice tools like those from Brendan Gregg.

Re: Disk-based logger - write pretouch

2017-07-10 Thread Greg Young
I would be interested to test it with zfs, it might even be harmful On Mon, Jul 10, 2017 at 11:55 PM, Michael Barker wrote: > From our own experience with journaling the benefits of pre-touching files > depends on the file system used. When ended up using XFS and threw away

Re: Disk-based logger - write pretouch

2017-07-10 Thread Vitaly Davidovich
A few suggestions: 1) have you tried just reading the data in the prefaulting code, instead of dirtying it with a dummy write? Since this is a disk backed mapping, it should page fault and map the underlying file data (rather than mapping to a zero page, e.g.). At a high rate of dirtying, this

Re: ORM aversion

2017-07-10 Thread Dimitar Georgiev
I hope this is not a pure example of blatant advertising, but it does seem related with the topic. We've managed to roll something which is really fat-free, uses only JDBC and SQL, and works with only one abstraction, which is grounded in mathematics. https://github.com/novarto-oss/sane-dbc