Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

Preload files to memory
Thank you for your donation

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
Preload files to memory
6th Jan, 2013, 04:16 AM
Post: #4
namtih Offline
Tester
Posts: 269
Joined: Dec 2012
Reputation: 28
RE: Preload files to memory
So here is a second version using the rsync command. I think I will keep it for now.
If you think other files could be worth preloading, please leave a short message here. Thanks.
Code:
#Preload Files
mkdir /run/xcache
touch /run/xcache/xstart_`date +%F_%T`
rsync -q /home/xbian/.xbmc/userdata/Database/*.db /run/xcache > /dev/null
rsync -q /home/xbian/.xbmc/userdata/addon_data/script.common.plugin.cache/commoncache.db /run/xcache > /dev/null
rsync -q /home/xbian/.xbmc/addons/plugin.video.youtube/*.py /run/xcache > /dev/null
rsync -q /home/xbian/.xbmc/addons/plugin.video.youtube/*.pyc /run/xcache > /dev/null
touch /run/xcache/xstop_`date +%F_%T`

The xstart and xstop commands are only there to check how long the script runs. For me it's done in 2sec (~10MB) - so no big deal.
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


Messages In This Thread
Preload files to memory - namtih - 5th Jan, 2013, 06:41 AM
RE: Preload files to memory - CurlyMo - 5th Jan, 2013, 06:44 AM
RE: Preload files to memory - namtih - 5th Jan, 2013, 10:32 PM
RE: Preload files to memory - namtih - 6th Jan, 2013 04:16 AM
RE: Preload files to memory - CurlyMo - 6th Jan, 2013, 05:40 AM
RE: Preload files to memory - namtih - 6th Jan, 2013, 08:19 PM
RE: Preload files to memory - CurlyMo - 6th Jan, 2013, 08:32 PM
RE: Preload files to memory - namtih - 6th Jan, 2013, 09:57 PM
RE: Preload files to memory - CurlyMo - 6th Jan, 2013, 10:02 PM
RE: Preload files to memory - raspberry_pd - 7th Jan, 2013, 03:19 PM
RE: Preload files to memory - namtih - 7th Jan, 2013, 07:50 PM
RE: Preload files to memory - raspberry_pd - 8th Jan, 2013, 02:59 PM
RE: Preload files to memory - namtih - 8th Jan, 2013, 09:58 PM
RE: Preload files to memory - brantje - 8th Jan, 2013, 11:24 PM
RE: Preload files to memory - namtih - 9th Jan, 2013, 12:36 AM
RE: Preload files to memory - CurlyMo - 8th Jan, 2013, 11:30 PM

  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 24th May, 2025, 04:15 AM Powered By MyBB, © 2002-2025 MyBB Group.