Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sun 20 Apr 2014, 05:44
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
Way to speed up load time for unioned RoxApps.?
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [6 Posts]  
Author Message
sunburnt


Joined: 08 Jun 2005
Posts: 4982
Location: Arizona, U.S.A.

PostPosted: Wed 09 Oct 2013, 13:26    Post subject:  Way to speed up load time for unioned RoxApps.?  

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.?
.
Back to top
View user's profile Send private message 
technosaurus


Joined: 18 May 2008
Posts: 4134

PostPosted: Wed 09 Oct 2013, 14:24    Post subject:  

http://linux.die.net/man/2/readahead
_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
sunburnt


Joined: 08 Jun 2005
Posts: 4982
Location: Arizona, U.S.A.

PostPosted: Wed 09 Oct 2013, 21:41    Post subject:  

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.
.
Back to top
View user's profile Send private message 
sunburnt


Joined: 08 Jun 2005
Posts: 4982
Location: Arizona, U.S.A.

PostPosted: Fri 11 Oct 2013, 00:54    Post subject:  

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.
    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, 13:16; edited 1 time in total
Back to top
View user's profile Send private message 
technosaurus


Joined: 18 May 2008
Posts: 4134

PostPosted: Fri 11 Oct 2013, 09:37    Post subject:  

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

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
sunburnt


Joined: 08 Jun 2005
Posts: 4982
Location: Arizona, U.S.A.

PostPosted: Fri 11 Oct 2013, 13:22    Post subject:  

Wow... I hadn`t noticed it, just went to the email alert and responded to your post.! Rolling Eyes

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".
.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [6 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Off-Topic Area » Programming
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0427s ][ Queries: 12 (0.0049s) ][ GZIP on ]