Alt-F rc2 minidlna/Inotify

608 views
Skip to first unread message

Stealth

unread,
Aug 16, 2012, 3:47:08 AM8/16/12
to al...@googlegroups.com

Hello

I upgraded my 323 with success, but I'm seeing an annoying problem, I can't use minidlna with inotify.
There is inotify with Alt-f ? Or maybe minidlna is not compiled with ?

For my usage Minidlna is unusable without, because the rescan take a very long time each time I'm just adding a file

Thanks

Keon91

unread,
Aug 16, 2012, 7:23:17 AM8/16/12
to al...@googlegroups.com
please check your minidlna.conf under /etc

mine contains:

# set this to no to disable inotify monitoring to automatically discover new files
# note: the default is yes
inotify=yes

and:

# notify interval in seconds. default is 895 seconds.
notify_interval=900

so every 15 minutes minidnla will scan for new files.

maybe you didn't wait 15 minutes?


Op donderdag 16 augustus 2012 09:47:08 UTC+2 schreef Stealth het volgende:

Stealth

unread,
Aug 16, 2012, 8:20:42 AM8/16/12
to al...@googlegroups.com
Hi keon91

Unfortunately my conf is right, inotify works for you ?
I can see all my movies but there is no auto refresh (after many hours)

I'm using Alt-F fresh install, with minidlna "official" package, perhaps I forgot some dependencies ( I also installed kernel-modules without more success) ?

Thanks for your help

Keon91

unread,
Aug 16, 2012, 2:44:53 PM8/16/12
to al...@googlegroups.com

Maybe this can help you :

http://forum.excito.net/viewtopic.php?f=9&t=3410 

Op donderdag 16 augustus 2012 14:20:42 UTC+2 schreef Stealth het volgende:

FredB

unread,
Aug 17, 2012, 11:17:28 AM8/17/12
to al...@googlegroups.com
Yes you are right ! Thanks

Joao Cardoso

unread,
Aug 18, 2012, 12:00:52 PM8/18/12
to al...@googlegroups.com


On Friday, August 17, 2012 4:17:28 PM UTC+1, Stealth wrote:
Yes you are right ! Thanks

minidlna is compiled with inotify support, but it might not be working.

You can increase the log verbosity setting "log_level" in the configuration file, in order to check it.
I remember to see inotify reports in the log and after manually adding a file to the media folder.

I don't understand the need to have a "notify_interval" when inotify is enabled. Enlight me: will a full re-scan happens when the notify interval elapses? independently of the "inotify" setting?

FredB

unread,
Aug 18, 2012, 12:38:23 PM8/18/12
to al...@googlegroups.com
--
You received this message because you are subscribed to the Google Groups "Alt-F" group.
To post to this group, send email to al...@googlegroups.com.
To unsubscribe from this group, send email to alt-f+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/alt-f/-/XTdgzNtiOloJ.
For more options, visit https://groups.google.com/groups/opt_out.
 
 
The link http://forum.excito.net/viewtopic.php?f=9&t=3410 seem fix the problem

All works good

Just for information with my usage (minidlna, ligthppd, openssh, samba)  ALt-f is more fast than dlink's firmware and ffp 

Thanks for your work

FredB

unread,
Aug 18, 2012, 12:43:13 PM8/18/12
to al...@googlegroups.com

> I don't understand the need to have a
> "notify_interval" when inotify is enabled.
> Enlight me: will a full re-scan happens when the
> notify interval elapses? independently of the
> "inotify" setting?

I think you are right there is no link between
"notify_interval" and inotify
There is only a full rescan, if and only if, I
restart minidlna with -R or when I remove the db file



Hamish Campbell

unread,
Aug 29, 2012, 9:27:00 AM8/29/12
to al...@googlegroups.com
I thought there wasn't any inotify in Alt-F as it was not compatible with the glibc that is used.

Now, note this is coming from someone who has NO idea about these things, but I was having trouble with forked-daapd remote which would not do a pairing completely and I thought the conclusion reached was that inotify was necessary and this was not possible in Alt-f.

Hamish Campbell

unread,
Aug 29, 2012, 9:29:37 AM8/29/12
to al...@googlegroups.com
Ok, I found my post

-------------------------
I had posted there a year or so ago and the main guy had suggested that the use of uclib rather than the standard large libraries was probably a problem due to use of events, he suggested fdtimer (?) as a possible problem area.
-----------------------------------

I don't know if inotify would be what was meant by 'events', so maybe not related.



FredB

unread,
Aug 29, 2012, 9:33:14 AM8/29/12
to al...@googlegroups.com

> I thought there wasn't any inotify in Alt-F as it was not compatible
> with the glibc that is used.
>
>
> Now, note this is coming from someone who has NO idea about these
> things, but I was having trouble with forked-daapd remote which
> would not do a pairing completely and I thought the conclusion
> reached was that inotify was necessary and this was not possible in
> Alt-f.
>


No, I don't agree, now minidlna works perfectly - with inotify - for me

Joao Cardoso

unread,
Aug 29, 2012, 4:29:20 PM8/29/12
to al...@googlegroups.com
Alt-F has 'inotify', the fdtimer event is unrelated.

Stealth

unread,
Sep 4, 2012, 5:29:55 AM9/4/12
to al...@googlegroups.com
Hi all,

If you are using mindlna with a large database, I found a trick that can save a lot of ram (for better response time for another applications)
This command - ulimit -m 400; exec minidlna - force minidlna to use only 400 ko by process, so there are much memory free
For the moment it's just a test but I saw no performance degradation for minidlna

You can show the limitation like this

pidof minidlna
642 640 639

more /proc/642/limits
Limit                     Soft Limit           Hard Limit           Units    
Max cpu time              unlimited            unlimited            seconds  
Max file size             unlimited            unlimited            bytes    
Max data size             unlimited            unlimited            bytes    
Max stack size            2088960              unlimited            bytes    
Max core file size        0                    unlimited            bytes    
Max resident set          409600               409600               bytes     -> Here
Max processes             434                  434                  processes
Max open files            1024                 1024                 files    
Max locked memory         65536                65536                bytes    
Max address space         unlimited            unlimited            bytes    
Max file locks            unlimited            unlimited            locks    
Max pending signals       434                  434                  signals  
Max msgqueue size         819200               819200               bytes    
Max nice priority         0                    0                   
Max realtime priority     0                    0                   
Max realtime timeout      unlimited            unlimited            us       

For the moment I don't find a way to show a process swap usage in Alt-F
Reply all
Reply to author
Forward
0 new messages