Powerfail problem

15 views
Skip to first unread message

steve

unread,
Jul 6, 2020, 5:12:55 AM7/6/20
to pmem
Hi all,

It was the metadata not being updated.

When I set my caching to "reads only", all of a sudden code running in my VM can restart properly after a hard power-off.

I don't know why I didn't think of this before, because I knew that metadata wasn't updated in a timely manner with DAX files.

Better late than never!
------------
Steve Heller

Jeff Moyer

unread,
Jul 6, 2020, 2:05:00 PM7/6/20
to steve, pmem
steve <st...@steveheller.org> writes:

> Hi all,
>
> It was the metadata not being updated.
>
> When I set my caching to "reads only", all of a sudden code running in
> my VM can restart properly after a hard power-off.
>
> I don't know why I didn't think of this before, because I knew that
> metadata wasn't updated in a timely manner with DAX files.

Are you referring to file system metadata? On Linux, you should be
using the MAP_SYNC flag during mmap in order to ensure crash
consistency. If you are using that flag and you still see a problem,
that is a bug.

-Jeff

steve

unread,
Jul 6, 2020, 2:39:39 PM7/6/20
to Jeff Moyer, pmem
I'm not calling mmap myself; I'm using the llfio library to abstract out the differences between Windows and Linux (among other reasons). I wasn't
setting the caching flag for that library properly when opening the file.
------------
Steve Heller
Reply all
Reply to author
Forward
0 new messages