subsonic prevents HDD standby

Need help? Post your questions here.

Moderator: moderators

subsonic prevents HDD standby

Postby nestico » Fri Jan 21, 2011 2:56 pm

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,
nestico
 
Posts: 6
Joined: Fri Jan 21, 2011 2:41 pm

Postby 3R3 » Fri Jan 21, 2011 9:12 pm

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
User avatar
3R3
 
Posts: 332
Joined: Mon May 04, 2009 2:09 pm
Location: Germany

Postby nestico » Mon Jan 24, 2011 7:50 am

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...
nestico
 
Posts: 6
Joined: Fri Jan 21, 2011 2:41 pm

Postby nestico » Tue Jan 25, 2011 8:03 am

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,
nestico
 
Posts: 6
Joined: Fri Jan 21, 2011 2:41 pm

Postby stozher » Tue Jan 25, 2011 8:11 am

I'm not sure but my be problem in this file ".../db/subsonic.properties".
http://music.stozher.com:8080/login.view?user=guest&password=
User avatar
stozher
 
Posts: 313
Joined: Tue Nov 16, 2010 10:56 am
Location: Sofia, Bulgaria

Postby nestico » Tue Jan 25, 2011 4:11 pm

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
nestico
 
Posts: 6
Joined: Fri Jan 21, 2011 2:41 pm

Postby stozher » Tue Jan 25, 2011 6:22 pm

Google... :wink:
http://music.stozher.com:8080/login.view?user=guest&password=
User avatar
stozher
 
Posts: 313
Joined: Tue Nov 16, 2010 10:56 am
Location: Sofia, Bulgaria

Postby GJ51 » Tue Jan 25, 2011 9:43 pm

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)
Gary J

http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/
User avatar
GJ51
 
Posts: 3492
Joined: Wed Oct 20, 2010 11:58 pm
Location: Western New York

Postby nestico » Wed Jan 26, 2011 3:22 pm

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
nestico
 
Posts: 6
Joined: Fri Jan 21, 2011 2:41 pm

Disable HSQL logging

Postby maanloper » Sat Apr 23, 2011 8:06 am

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
maanloper
 
Posts: 1
Joined: Sat Apr 23, 2011 7:51 am

Re: subsonic prevents HDD standby

Postby Madseman » Mon Jun 18, 2012 6:37 pm

Does anyone find a solution for the constant activity on the disk?
Madseman
 
Posts: 1
Joined: Mon Jun 18, 2012 6:34 pm

Re: subsonic prevents HDD standby

Postby blastrock » Mon Oct 21, 2013 9:01 pm

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.
blastrock
 
Posts: 3
Joined: Mon Oct 21, 2013 8:47 pm

Re: subsonic prevents HDD standby

Postby swat54 » Wed Apr 02, 2014 3:38 am

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.
swat54
 
Posts: 1
Joined: Wed Apr 02, 2014 3:29 am


Return to Help

Who is online

Users browsing this forum: No registered users and 103 guests