Automatic cache clearing
#1
Somewhere you stated that the cache needed be cleared after about 3 hours playing. Normally I leave my system on all day. So far I didn't have any memory problems using Snakeoil at all. But is it possible to schedule this so that it gets cleared automatically? For example in between playing two songs?
Reply

#2
(01-Jun-2016, 07:21 PM)Leonard Wrote: Somewhere you stated that the cache needed be cleared after about 3 hours playing. Normally I leave my system on all day. So far I didn't have any memory problems using Snakeoil at all. But is it possible to schedule this so that it gets cleared automatically? For example in between playing two songs?

In between songs may well not be ideal as the software player may well already be opening the next track (and pre-buffering it).

Scheduling is a good idea, But Snakeoil don't have any scheluding program installed I think. Will have to double check and see if it's possible. This cache clearing thing is only experimental feature for now, to see if if it does anything, so far I find it doesn't make any difference, but still early stages as I havn't tested this in detail.
Snakeoil Operating System - Music, your way!
Reply

#3
(01-Jun-2016, 08:59 PM)agent_kith Wrote: Scheduling is a good idea, But Snakeoil don't have any scheluding program installed I think. Will have to double check and see if it's possible. This cache clearing thing is only experimental feature for now, to see if if it does anything, so far I find it doesn't make any difference, but still early stages as I havn't tested this in detail.

I assumed linux would also have some kind of taskmanager running just like Windows. If not, it may be better not to introduce it as well as it will also consume processor power.
On the other hand; I notice that after a while (several hours) loading a new playlist takes longer in my setup (USB + casper-rw).
Below a screenshot of how much memory was used before clearance. Good to have the option to do it manually as well!

[Image: cache.jpg]
Reply

#4
(02-Jun-2016, 06:57 AM)Leonard Wrote: I assumed linux would also have some kind of taskmanager running just like Windows. If not, it may be better not to introduce it as well as it will also consume processor power.
It does. there are several actually, the two I remember are cron and at daemon. These two processes are not installed on the 32 bit OS, just not that sure about 64 bit (as I havn't checked it thoroughly).

(02-Jun-2016, 06:57 AM)Leonard Wrote: On the other hand; I notice that after a while (several hours) loading a new playlist takes longer in my setup (USB + casper-rw).
Below a screenshot of how much memory was used before clearance. Good to have the option to do it manually as well!

[Image: cache.jpg]
Hmmm that's interesting. I wasn't sure how useful the clear cache feature is until this picture. Your screencap is telling your system is caching far more things than mine (see last column tittled cached). This may be a USB persistent mode thing and I'd see if I can optimise that in the future.

Caching is good in general, as it speeds things up, but as the time progresses, the system may be caching the wrong things more and more. Very roughly speaking, when the system try to look up the cache and don't find what it wants (cache miss), it needs to go to the storage and retrieve the results, and cache what it thinks will be reused again. All potential things that can affect sound quality.

Clearing the cache will "reset" the cache and let the system start from scratch again (think of it as resetting parts of a computer). For your system this feature actually will be useful (as I think 50% of your RAM is used up as cache).

Which player are you using? And are you using 32 bit or 64 bits?
Snakeoil Operating System - Music, your way!
Reply

#5
(02-Jun-2016, 08:15 AM)agent_kith Wrote: Which player are you using? And are you using 32 bit or 64 bits?

I am using Squeezelite on a 64 bit system.
I have also tested it booting PXE without persitant memory.
Here the result after about half an hour playing without changing playlist


[Image: Clearing_cache_2016_06_02_17_16_46.png]
Reply

#6
Have been able to test the MPD player as well (using version 0.19).
With this player the memory footprint doesn't grow over time.
Reply

#7
(03-Jun-2016, 04:33 AM)Leonard Wrote: Have been able to test the MPD player as well (using version 0.19).
With this player the memory footprint doesn't grow over time.

Thanks for the update.. I'd test this in my setup soon and see if I get the same thing. Not sure really if caching is good or bad at this stage really so it's something worth investigating (esp after that interview article of Swenson where he claimed there is a strong correlation between memory access and SQ).
Snakeoil Operating System - Music, your way!
Reply



Bookmarks

Possibly Related Threads…
Thread Author Replies Views Last Post
  Automatic Ripping Machine Coacharnold 1 1,211 08-Jun-2021, 08:25 AM
Last Post: Snoopy8



Users browsing this thread:
1 Guest(s)

[-]
Our Sponsors

[-]
Welcome
You have to register before you can post on our site.

Username/Email:


Password:





[-]
Latest Threads
Installation of SnakeOil OS 1.3.0 on RPi...
Last Post: agent_kith
Today 07:27 AM
» Replies: 13
» Views: 586
Dropping Measurements, Hello High-End.
Last Post: uglymusic
18-Dec-2024 12:02 AM
» Replies: 20
» Views: 708
CA Server issues
Last Post: Peter_F
16-Dec-2024 06:36 PM
» Replies: 13
» Views: 214
install Snakeoil on Audio Alchemy DMP-1 ...
Last Post: uglymusic
08-Dec-2024 08:48 PM
» Replies: 2
» Views: 214
Announcing Snakeoil Measurements 1.3.0
Last Post: hkphantomgtr
03-Dec-2024 09:55 PM
» Replies: 105
» Views: 12021
Howto setup resampling in Logitech Media...
Last Post: Coacharnold
18-Nov-2024 12:06 AM
» Replies: 7
» Views: 5999
Very happy to have Sankeoil......! mpd w...
Last Post: run51
24-Oct-2024 05:35 AM
» Replies: 9
» Views: 1804
SO no soundcard detected - RPI Pi4 snake...
Last Post: run51
21-Oct-2024 10:55 PM
» Replies: 4
» Views: 188
download
Last Post: Snoopy8
19-Oct-2024 05:52 AM
» Replies: 1
» Views: 179
Full proces to instal snakeiol 100% work...
Last Post: audioluthier
11-Oct-2024 02:32 AM
» Replies: 9
» Views: 512

[-]
SnakeoilOS Mission Statement

Our mission is to create a free to use computer OS that is easy to install, intuitive to operate and play music that will connect and engage with you emotionally.

SnakeoilOS gives you the freedom to spend more time on listening, enjoying and exploring music. Wasting time on computers is now a thing of the past! Everything is constantly evolving/improving. Please check back often for updates.

If you like this project, do show your support with a small token donation. All donations collected will be used to run this website, and for purchasing new equipment for the project.


Powered By MyBB, © 2002-2024. Theme © Melroy van den Berg.