sandstorm-io / sandstorm

Sandstorm is a self-hostable web productivity suite. It's implemented as a security-hardened web app package manager.
https://sandstorm.io
Other
6.7k stars 706 forks source link

Possible optimization: convert app directories to squashfs images #3534

Open zenhack opened 3 years ago

zenhack commented 3 years ago

Startup time is a problem for many applications, and in many cases some of the problem seems to be excessive disk io. For example, Davros saw a 10x improvement in startup time with a cold cache on my sandstorm box when @mnutt minified the nodejs server.

I'm wondering if we could get a similar improvement for many other apps by converting the app directories to squashfs images, and just mounting those directly.

zenhack commented 3 years ago

(More specifically than just disk IO, accessing many small files)

ocdtrekkie commented 3 years ago

Would it respond differently in any way apps might access it? Would it break existing applications?

zenhack commented 3 years ago

Quoting Jacob Weisz (2021-06-15 14:38:41)

Would it respond differently in any way apps might access it? Would it break existing applications?

I don't think so.