I`m making apps. using mhddfs and the first load is slow.
I think only the very first app. of this type that`s run is slow. After that they`re all fast.
This makes me think that probably mhddfs being loaded into ram is the reason.
But there`s probably other things being loaded into ram as well.
# Q: Is there a way to pre-load mhddfs and other deps. into ram, say at bootup.?
.
Way to speed up load time for unioned RoxApps.?
- technosaurus
- Posts: 4853
- Joined: Mon 19 May 2008, 01:24
- Location: Blue Springs, MO
- Contact:
I Googled for quite awhile and I still don`t understand how to use it.
I couldn`t find any boot code examples of usage that I understood.
# Have you used readahead yourself.?
# I`m thinking that /tmp is in ram.
So at boot mkdir /tmp/bin and copy mhddfs to it, and also do PATH=/tmp/bin:$PATH
Being at the front of the path, at least /tmp is fast to respond.
.
I couldn`t find any boot code examples of usage that I understood.
# Have you used readahead yourself.?
# I`m thinking that /tmp is in ram.
So at boot mkdir /tmp/bin and copy mhddfs to it, and also do PATH=/tmp/bin:$PATH
Being at the front of the path, at least /tmp is fast to respond.
.
technosaurus; I must report that readahead definitely worked as I had hoped it would.
Previously it took 5 to 10 seconds for the first run of SpaceFM using mhddfs for a union.
Now it takes about 2 seconds for SpaceFM to start, a really big improvement.!.!.!
I thinking to pre-load other files too, but mhddfs only uses 4 files other than the main 3.
And 3 of the 4 are very common. I suppose it doesn`t hurt to pre-load all 4 of the libs.
They`re loaded anyway, and if they`re already loaded are I`m sure readahead handles it.
### Q: I`m thinking that the lib. link doesn`t need to be included in the pre-load list?
libfuse.so.2 is the only non-common dep.
Previously it took 5 to 10 seconds for the first run of SpaceFM using mhddfs for a union.
Now it takes about 2 seconds for SpaceFM to start, a really big improvement.!.!.!
I thinking to pre-load other files too, but mhddfs only uses 4 files other than the main 3.
And 3 of the 4 are very common. I suppose it doesn`t hurt to pre-load all 4 of the libs.
They`re loaded anyway, and if they`re already loaded are I`m sure readahead handles it.
### Q: I`m thinking that the lib. link doesn`t need to be included in the pre-load list?
libfuse.so.2 is the only non-common dep.
- linux-gate.so.1 => (0xffffe000)
/lib/ld-linux.so.2 (0xb76fc000)
libc.so.6 => /lib/libc.so.6 (0xb74f8000)
librt.so.1 => /lib/librt.so.1 (0xb76c3000)
libdl.so.2 => /lib/libdl.so.2 (0xb76bd000)
libpthread.so.0 => /lib/libpthread.so.0 (0xb76a2000)
libfuse.so.2 => /lib/libfuse.so.2 (0xb76cc000)
Last edited by sunburnt on Fri 11 Oct 2013, 17:16, edited 1 time in total.
- technosaurus
- Posts: 4853
- Joined: Mon 19 May 2008, 01:24
- Location: Blue Springs, MO
- Contact:
I cross posted it in another programming thread by accident. Its not removed. Sorry I was up late implementing a guessfstype and blkid for toybox and my complete faculties were exhausted.
http://www.murga-linux.com/puppy/viewtopic.php?t=89202
http://www.murga-linux.com/puppy/viewtopic.php?t=89202
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].
Wow... I hadn`t noticed it, just went to the email alert and responded to your post.!
Have you looked at the new release of "file".? Can`t remember who posted it.
I haven`t checked it fully, but it did get Squash files correct.
It`s main drawback is that it doesn`t do partitions. But it is "file".
.
Have you looked at the new release of "file".? Can`t remember who posted it.
I haven`t checked it fully, but it did get Squash files correct.
It`s main drawback is that it doesn`t do partitions. But it is "file".
.