Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
kenyu73
Old
#1  
kenyu73's Avatar
Senior Member - OP
Thanks Meter 79
Posts: 344
Join Date: Mar 2010
Location: Upstate NY
Default Performance issue - SMB/Shared Folders (mediaserver)

If some of you are having some real 'bog downs', you may want to investigate your SMB and Shared Folder environment.

Basically, these devices scan your local network for media automatically and in turn tried to 'index' everything. This work really hits the CPU hard.

If you install OSMonitor, you'll see '/system/bin/mediaserver' with a high CPU usuage. I'm not sure right now how to disable it though. However, killing off the process makes the device really snappy.
 
kenyu73
Old
#2  
kenyu73's Avatar
Senior Member - OP
Thanks Meter 79
Posts: 344
Join Date: Mar 2010
Location: Upstate NY
It obviously indexes your internal and sdcard. It appears whenever you add or remove files or download new apps which create files on the public storage, it updates it's index.

I had a 300mb folder with thousands of small files and my mediaserver process went CPU crazy each time i installed an app.
 
sondeu
Old
#3  
Member
Thanks Meter 3
Posts: 40
Join Date: Oct 2008
Location: Stuttgart
smb should not be scanned by default.

If you look at /network folder, you will see a 0 byte file ".nomedia" - this prevents the system from scanning smb drives.
 
kenyu73
Old
#4  
kenyu73's Avatar
Senior Member - OP
Thanks Meter 79
Posts: 344
Join Date: Mar 2010
Location: Upstate NY
Quote:
Originally Posted by sondeu View Post
smb should not be scanned by default.

If you look at /network folder, you will see a 0 byte file ".nomedia" - this prevents the system from scanning smb drives.
That's a really good tip, thank you! I had done a copy of the Archos root over to my SDcard, that's what caused my mediaserver to peg out. It was only a few hundred mb, but there were a lot of files. Once I removed that off my sdcard, I was good.
 
skeeterfood
Old
#5  
skeeterfood's Avatar
Junior Member
Thanks Meter 2
Posts: 27
Join Date: Dec 2010
Location: Marion
Is there any way to add a .nomedia file to the directory where the Market downloads it's apps to? That should prevent the indexing that occurs every time you install a new app...
 
kenyu73
Old
#6  
kenyu73's Avatar
Senior Member - OP
Thanks Meter 79
Posts: 344
Join Date: Mar 2010
Location: Upstate NY
Quote:
Originally Posted by skeeterfood View Post
Is there any way to add a .nomedia file to the directory where the Market downloads it's apps to? That should prevent the indexing that occurs every time you install a new app...
Assuming that would work, you'd have to do a temp root, then push the .nomedia file to the /data (or /data/data and /data/app) folders. I think .nomedia acts recursively and adding it to '/data' would do the trick.
Signal Problems? Try my product... [Real Signal] (=
https://play.google.com/store/apps/d...u73.realsignal


HTC One (AT&T/Net10)
HTC DNA
ASUS Nexus 7
Samsung Galaxy Nexus (rooted, retired)
HTC Thunderbolt (rooted, retired)
Samsung GT 10.1 (rooted)(retired)
HTC Flyer WiFi (rooted) (retired)
Samsung Fascinate (rooted, retired)
Achros 70s (retired)
HTC Incredible (rooted, retired)
HTC Eris (retired)
 
theyownus
Old
#7  
Senior Member
Thanks Meter 23
Posts: 151
Join Date: May 2008
Location: Dallas, TX
what is the purpose of having the indexing of files at all? why not just read the directory when you open your file manager???

are directories with the .nomedia file are still read by the filemanager? can you still browse to them and open files within the directory?
 
fzelle
Old
#8  
Senior Member
Thanks Meter 93
Posts: 790
Join Date: Mar 2006
This is not connected to Archos, this was introduced by google for use in Music and Gallery.

The first phones where a little slow indexing the memory and this way after putting something on the phone it would after some time show up in the std player with thumbnails and so on.
 
chrulri
Old
#9  
chrulri's Avatar
Senior Member
Thanks Meter 266
Posts: 895
Join Date: Dec 2010

 
DONATE TO ME
is it possible to turn off this scanning and indexing completely?
 
fzelle
Old
#10  
Senior Member
Thanks Meter 93
Posts: 790
Join Date: Mar 2006
Only if you have the sources and access to /system

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...

XDA PORTAL POSTS

Forums Added for the LG Optimus G Pro and Sony Xperia Tablet Z

Not too long ago, we talked about how Sony was continuing its AOSP efforts on … more

Permanent Screen Off for the Visually Impaired

Most of us take the simple act of waking up our devices and having a quick glance at the … more

App Analytics, or the Death of the Independent App Developer

This is entry number one in a series of articles about tools for app developers, … more

Serajr Power Toggles Brings Settings to the Small App World

Ever since the introduction of multi-window with things like Cornerstone and … more