Page 1 of 1

subsonic prevents HDD standby

PostPosted: Fri Jan 21, 2011 2:56 pm
by nestico
Hello,

First of all thanks to Sindre and everyone for maintaining such a great project. I am really pleased.

Anyway, I've a question for subsonic experts:

I've installed subsonic Stand-alone version 4.3. On my QNAP TS-119. (Arm processor)

To do that i had to install the Sun Java Runtime for Embedded.

Everything seems to be running correctly. I can connect remotely and access all my library. The only problem I am facing is that even if none is connected to the server. It prevents the QNAP to put the HDD in standby.

By using a QNAP script to detect which process is accessing the disk i can see the following:

java(23698): dirtied inode 49153053 (subsonic.lck) on sda3
java(23698): dirtied inode 49153053 (subsonic.lck) on sda3

If the subsonic process is killed, then the harddrive goes to Standby without problems.

Is there a way to prevent subsonic accessing the HDD if no streaming or browsing activity is taking place.

Thanks for your responses,

PostPosted: Fri Jan 21, 2011 9:12 pm
by 3R3
So you got subsonic running successfully on the Qnap TS 119 using JAVA embedded? If so, would you leave a post one the Subsonic NAS Compatibility List?

thank you,
3R3

PostPosted: Mon Jan 24, 2011 7:50 am
by nestico
Hi 3R3,

Yes, I've got subsonic running on my ARM Qnap. Will confirm on the other thread.

About my original question. Anyone can explain the periodic Hard Drive access of subsonic even if none is connected to the server? Any solution for this?

I don't want my HDD spinning 24h/24h because of power consumption and wear out.

Thanks for your help...

PostPosted: Tue Jan 25, 2011 8:03 am
by nestico
Seems there is no much interest in understanding this behavior, or there isn't enough information on my post to have someone interested in posting an answer...

Anyone has observed the same behavior?
Any of the subsonic developers can explain the periodic file system access? I would really like to understand what is going on... Your help would be really appreciated.

Thanks,

PostPosted: Tue Jan 25, 2011 8:11 am
by stozher
I'm not sure but my be problem in this file ".../db/subsonic.properties".

PostPosted: Tue Jan 25, 2011 4:11 pm
by nestico
These are the contents on my .../db/subsonic.properties
Code: Select all
#HSQL Database Engine 1.8.0.5
#Fri Jan 21 14:59:36 GMT 2011
hsqldb.script_format=0
runtime.gc_interval=0
sql.enforce_strict_size=false
hsqldb.cache_size_scale=8
readonly=false
hsqldb.nio_data_file=true
hsqldb.cache_scale=14
version=1.8.0
hsqldb.default_table_type=memory
hsqldb.cache_file_scale=1
hsqldb.log_size=200
modified=no
hsqldb.cache_version=1.7.0
hsqldb.original_version=1.8.0
hsqldb.compatible_version=1.8.0

Any clues?

Thxs

PostPosted: Tue Jan 25, 2011 6:22 pm
by stozher
Google... :wink:

PostPosted: Tue Jan 25, 2011 9:43 pm
by GJ51
nestico wrote:Hi 3R3,

Yes, I've got subsonic running on my ARM Qnap. Will confirm on the other thread.

About my original question. Anyone can explain the periodic Hard Drive access of subsonic even if none is connected to the server? Any solution for this?

I don't want my HDD spinning 24h/24h because of power consumption and wear out.

Thanks for your help...


The typical hard drive draws between 6 - 10W. I've actually had better luck with drives that spin 24/7 than with ones that do the startup/shutdown routine.

Both my quad core servers running 24/7 draw as much power as a 120W lightbulb.

I know this doesn't answer your question, but I hope it eases your anxiety over the issue. 8)

PostPosted: Wed Jan 26, 2011 3:22 pm
by nestico
Hi Gary,

Thanks for your kindness... I agree with you.

Anyway i am really interested in understanding what is going on. Afterall, if there is Zero client activity, there is no reason for the server to perform filesystem acesses. After all indexing and searching has taken place... Do you have an idea who can have some insight on this kind of issue?


Thanks for your answer anyway.
Nestor

Disable HSQL logging

PostPosted: Sat Apr 23, 2011 8:06 am
by maanloper
Ha Nestico,

I have the same problem. I have a QNAP TS-459 Pro and Subsonic installed on Apache Tomcat (QPKG)

On my installation the Subsonic database (HSQL) is writing continuously to the HSQL.log file and keeping the HDD busy...

How do I turn this HSQL logging off? I tried to change the subsonic.properties in the 'db' folder but this file is generated everytime you (re-)start subsonic\tomcat.

I think we only need to tell HSQL:

hsqldb.log_data=false

To fix this excessive logging? But how/where (which config file)

Did you find a solution yet?

grtz.,
Casper

Re: subsonic prevents HDD standby

PostPosted: Mon Jun 18, 2012 6:37 pm
by Madseman
Does anyone find a solution for the constant activity on the disk?

Re: subsonic prevents HDD standby

PostPosted: Mon Oct 21, 2013 9:01 pm
by blastrock
Sorry to post on this old thread, but I find this issue very annoying.

Subsonic writes regularily some binary thing in the /var/subsonic/db/subsonic.lck file. As someone said before, if there is no client, there should be no activity at all.

Doing a strace on subsonic shows that it does a lot of calls to futex(), several every second ! Why isn't subsonic just sleeping when there is no client ?
I'm not sure this issue is related, but if subsonic manages to stay asleep until a client is connected, it won't trigger any disk activity.

If someone (the author ?) could look into this, that would be great.

Re: subsonic prevents HDD standby

PostPosted: Wed Apr 02, 2014 3:38 am
by swat54
Sorry for bumping old thread. But if it still actual, you can prevent subsonic accessing the HDD by using these parameters:
Code: Select all
hsqldb.lock_file=false
Code: Select all
hsqldb.log_data=false
Also you need to build subsonic with hsqldb>2.0.0.