Coder Social home page Coder Social logo

Comments (11)

simpeter avatar simpeter commented on July 20, 2024

from assise.

wreda avatar wreda commented on July 20, 2024

This is indeed a bug. Thanks for pointing it out. I'll fix this in an upcoming patch.

We didn't get around to implementing mount/umount, so Simon's suggestion is sensible here. If you manage to come up with an implementation for these commands, I'd be more than happy to integrate it.

from assise.

hayley-leblanc avatar hayley-leblanc commented on July 20, 2024

Thanks!

I have another question about Strata, if that's alright. I'm currently working on a tool to test PM file systems for crash consistency and we are currently extending it to Strata. I've encountered some unexpected behavior and I'd like to see if it's correct or not. I have been able to trigger it without this too with the following steps.

Here's what I'm doing:

  1. Set up strata and run a program that calls init_fs() to start libfs, then creates a file /mlfs/foo. This program does not call shutdown_fs().
  2. Kill kernfs (without a TERM handler set up, so it doesn't run shutdown_fs() on the kernfs side either).
  3. Start kernfs up again.
  4. Run a program that starts libfs and attempts to stat /mlfs/foo.

By ending the first program without shutdown_fs() and by killing kernfs, I think this set of steps essentially injects a power-loss crash or similar after the creation of /mlfs/foo. In the second program, the stat call on /mlfs/foo fails and returns -2. errno is 0 after the stat call. If I try to open /mlfs/foo instead of calling stat, the same thing happens (returns -2, errno is 0 after the call) and Strata prints "incorrect fd -2: file /mlfs/foo".

Since Strata is synchronous, I would expect /mlfs/foo to be present in the second program even though libfs and kernfs don't shut down correctly. Is that correct?

from assise.

simpeter avatar simpeter commented on July 20, 2024

from assise.

hayley-leblanc avatar hayley-leblanc commented on July 20, 2024

Thanks for the update.

We'd like to try to test the parts of the crash recovery code that have been implemented - could you point us towards what those might be?

Thanks!

from assise.

simpeter avatar simpeter commented on July 20, 2024

from assise.

simpeter avatar simpeter commented on July 20, 2024

from assise.

hayley-leblanc avatar hayley-leblanc commented on July 20, 2024

Thanks! I think the scenario we're trying to set up is most similar to the OS failover experiment described in the paper; we're basically simulating power-loss crashes. I'd love some info on how you set up and ran that experiment. We are not looking at distributed file systems at the moment, so I have been working with Strata so far; does Strata have the same recovery mechanisms implemented as Assise, or should I switch to a local-only instance of Assise?

Thanks again for your help!

from assise.

simpeter avatar simpeter commented on July 20, 2024

from assise.

simpeter avatar simpeter commented on July 20, 2024

from assise.

hayley-leblanc avatar hayley-leblanc commented on July 20, 2024

Awesome, thank you! I'll try getting Assise set up and replicating that experiment. I'll reach out if I have any problems. I'll leave this issue open for now until the original bug I reported is patched. Thanks again for all your help!

from assise.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.