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 Fri 24 Oct 2014, 09:46
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 Posts_count  
Author Message
sunburnt


Joined: 08 Jun 2005
Posts: 5037
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: 4353

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: 5037
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: 5037
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)

Edited_time_total
Back to top
View user's profile Send_private_message 
technosaurus


Joined: 18 May 2008
Posts: 4353

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: 5037
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:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Off-Topic Area » Programming
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


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