Keep cache data in memory
Posted: November 23rd, 2010, 7:05 am
Hi,
I've been a happy SabNZBd user for quite some years now, and there's very few I would like see improved in SAB. However, there's one small nuisance that's been bugging me.
I'm running SAB on a unRAID fileserver, a Linux based NAS application. This Linux distribution is run from an image on a flash drive and get's loaded into memory on every boot, so there's no persistent filesystem for the OS. However, you can just copy over the SAB python files to the flash drive and start it from there.
I've setup SAB to save the (in)complete downloads to the cache disk, but write the logs and cache files to the flash drive, otherwise SAB would prevent the cache disk to spin down, and eventually put the system to sleep. At first I thought that there were only 5 files, of which only 3 where actively used in my configuration (RSS data, etc.). But when I added some NZB's to the queue, I noticed that a lot of new files were created (SABnzbd_nzf_xxxxxxx). This greatly increases the number of read/writes to the flash drive, eventually leading to defective memory cells on the flash drive.
Would it be possible to have a switch for saving the cache files to memory instead of the disk? Or saving those weird temporary files to a different location than the admin files (.sab)?
I've been a happy SabNZBd user for quite some years now, and there's very few I would like see improved in SAB. However, there's one small nuisance that's been bugging me.
I'm running SAB on a unRAID fileserver, a Linux based NAS application. This Linux distribution is run from an image on a flash drive and get's loaded into memory on every boot, so there's no persistent filesystem for the OS. However, you can just copy over the SAB python files to the flash drive and start it from there.
I've setup SAB to save the (in)complete downloads to the cache disk, but write the logs and cache files to the flash drive, otherwise SAB would prevent the cache disk to spin down, and eventually put the system to sleep. At first I thought that there were only 5 files, of which only 3 where actively used in my configuration (RSS data, etc.). But when I added some NZB's to the queue, I noticed that a lot of new files were created (SABnzbd_nzf_xxxxxxx). This greatly increases the number of read/writes to the flash drive, eventually leading to defective memory cells on the flash drive.
Would it be possible to have a switch for saving the cache files to memory instead of the disk? Or saving those weird temporary files to a different location than the admin files (.sab)?