SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV v7 Customizations > Gemstone for v7
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

Gemstone for v7 This forum is for discussing the user-created Gemstone custom interface for SageTV.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 11-23-2012, 09:33 PM
smak smak is offline
Sage User
 
Join Date: Jul 2008
Posts: 40
Building Cache - Command Line

Is there any way to utilize the API to initiate the building of the cache from a command line script.

I have been experimenting with moving the cache to a RAM Disk with decent results. However, the cache would need to be rebuilt when the computer restarts. It would be nice if I could initialize the RAM Disk and kick off the pre-cache routine.

No, I do not have a fancy fast SSD. That would make things too easy

-smak
Reply With Quote
  #2  
Old 11-23-2012, 10:04 PM
jusjoken jusjoken is offline
SageTVaholic
 
Join Date: Dec 2005
Location: Strathmore, AB
Posts: 2,727
If you have move the cache...how is gemstone finding it while running? If gemstone can find it then could you not just copy the the ram disk on startup...I am likely missing something here!

k
Reply With Quote
  #3  
Old 11-24-2012, 12:39 AM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
I think I've gone through just about every iteration of various combinations of RAMDisks, SSD's, and Disk caches, and I've settled on the fact that the single best way to always get the easiest/best performance, while still allowing real-time updates of fanart, is to run a very large Disk Cache (I am currently running FancyCache, 4GB, on each client, and 4GB on the server), on a conventional HDD. This does a wonderful job of keeping everything in memory, and the system really does navigate quickly.
__________________
Buy Fuzzy a beer! (Fuzzy likes beer)

unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers.
Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA.
Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S
Other Clients: Mi Box in Master Bedroom, HD-200 in kids room
Reply With Quote
  #4  
Old 11-24-2012, 08:13 AM
smak smak is offline
Sage User
 
Join Date: Jul 2008
Posts: 40
Quote:
Originally Posted by jusjoken View Post
how is gemstone finding it while running?
I am using Windows Junction (link) to redirect the cache directory. Junction is a windows version of doing a symbolic link. Gemstone just writes to the same location and the OS handles the change.

On the extenders I set the cache setting to NOQUEUE. I am not exactly sure everything that setting does but I believe I read that it pulls the images directly from the cache. That setting seems to work great with the RAM Disk.

The downside to that is on a reboot the RAM Disk gets built again and the cache is completely gone. If I could kick off the pre-caching on a system startup things would be close to perfect.

Quote:
Originally Posted by Fuzzy
...I've settled on the fact the single best way to always get the easiest/best performance, while still allowing real-time updates of fanart, is to run a very large Disk Cache...
I tried out FancyCache with a 4GB cache on the server. I am running extenders at the TVs. I saw some improvement but it did not seems nearly equivalent as the RAM Disk setup. Maybe I need to play around with some settings there.

-smak
Reply With Quote
  #5  
Old 11-24-2012, 08:37 AM
jusjoken jusjoken is offline
SageTVaholic
 
Join Date: Dec 2005
Location: Strathmore, AB
Posts: 2,727
Quote:
Originally Posted by smak View Post
On the extenders I set the cache setting to NOQUEUE. I am not exactly sure everything that setting does but I believe I read that it pulls the images directly from the cache. That setting seems to work great with the RAM Disk.
-smak
I would suggest using the default BACKGROUND cache setting as the setting you are picking disables the queue... this means that if you select a media item that has no image in the file cache then gemstone will have to pause and wait for that fanart to load into the cache and will slow down the UI. BACKGROUND and NOQUEUE always check the memory cache and then the file system cache first so they should react the same if the image is already cached... but BACKGROUND will place the request for a NEW image into a queue and process it within a background process to not hold up the UI.

Quote:
Originally Posted by smak View Post
The downside to that is on a reboot the RAM Disk gets built again and the cache is completely gone. If I could kick off the pre-caching on a system startup things would be close to perfect.
-smak
For this I would need to work out a way for you to call the API externally from the command line which is not built in right now... so the quick answer is no... not at this time.... you can always add it to the issues list on the issues site and we can consider it for future releases.

k
Reply With Quote
  #6  
Old 11-26-2012, 10:08 AM
smak smak is offline
Sage User
 
Join Date: Jul 2008
Posts: 40
I'll go back and investigate the BACKGROUND option and see what happens.

I am also going to go back and tinker around with the FancyCache options and see if I can get that working better for me. That will alleviate the issue on the RAMDisk side.

NOTE: everything was working fine before I went down this path. Just trying to squeeze out everything I can

Thanks,

smak
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Command-line walkthrough megamojo Batch Metadata Tools 3 10-18-2010 08:06 PM
Way to update via command line? ChaOConnor Batch Metadata Tools 1 08-17-2010 11:38 AM
4.1.0 command line? aflat Batch Metadata Tools 1 06-25-2010 06:48 PM
MetaDataLookUp Command Line nstocke SageMC Custom Interface 1 03-14-2009 07:14 PM
Command line parameters? Opus4 SageTV Software 1 04-03-2004 03:44 AM


All times are GMT -6. The time now is 04:15 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.