futeko.com FORUM

Old Product Support => HiMedia Q10 Pro, Q5 Pro => Topic started by: qqq1971 on December 11, 2016, 05:31:16 PM

Title: Samba server optimisation (Original thread - locked)
Post by: qqq1971 on December 11, 2016, 05:31:16 PM
I faced the problem of poor performance players samba server. Transfer speed from PC to device was 20-25 MB/c.  I did little patch for increase transfer speed. It change samba server parameters only. Now from device to PC 70-80 MB/s and about 70 MB/s from PC to device for me. Tested with 2.0.0 firmware.

I hope it will be useful not for me only.

Improve samba server performance patch (https://cloud.mail.ru/public/2NW5/Dc93aadAc).

Change log:
1. Created

Restrictions:
1. All your customisations in smb.conf will be lost.
2. Server name has changed from Android_**** to Q10Pro. So if you have two or more devices or you have Q5Pro you shold manually edit smb.conf and replace all occurensies Q10Pro to your favorit name. Each device has to have unique name.

Install and uninstal:
1. Download and unzip.
2. Run RUN_ME.bat, enter players ip-address, select action.

Android 5.1 is supported too.
Title: Re: Samba server optimisation (Original thread - locked)
Post by: looun on December 11, 2016, 09:10:42 PM
very nice Tips!  ;D
there are also this parameters:

Code: [Select]
log level = 1
getwd cache = yes

log level = 1:
Produce the basic log

getwd cache:
This option caches the path to the current directory avoiding directory listing waits.
 
Title: Re: Samba server optimisation (Original thread - locked)
Post by: ceaca on December 12, 2016, 07:17:25 AM
I faced the problem of poor performance players samba server. Transfer speed from PC to device was 20-25 MB/c.  I did little patch for increase transfer speed. It change samba server parameters only. Now from device to PC 70-80 MB/s and about 70 MB/s from PC to device for me. Tested with 2.0.0 firmware.

I hope it will be useful not for me only.

Improve samba server performance patch - https://cloud.mail.ru/public/9Gox/s2q1r3b32 (https://cloud.mail.ru/public/9Gox/s2q1r3b32).

Change log:
1. Created

Restrictions:
1. All your customisations in smb.conf will be lost.
2. Server name has changed from Android_**** to Q10Pro. So if you have two or more devices or you have Q5Pro you shold manually edit smb.conf and replace all occurensies Q10Pro to your favorit name. Each device has to have unique name.

Install and uninstal:
1. Download and unzip.
2. Run RUN_ME.bat, enter players ip-address, select action.

Thank you sir. ;)
Title: Re: Samba server optimisation (Original thread - locked)
Post by: Mount81 on December 12, 2016, 08:40:14 AM
LOL it's getting really hilarious, while many of these bugs/issues exists from like the release of these devices, the users had to and do better and faster job by solving them with their own patches, than the "expert engineers" at Himedia... (Don't know which smiley fits here better, so I go with them both:  ;D >:()...
Title: Re: Samba server optimisation (Original thread - locked)
Post by: futeko.com on December 12, 2016, 10:16:12 AM
LOL it's getting really hilarious, while many of these bugs/issues exists from like the release of these devices, the users had to and do better and faster job by solving them with their own patches, than the "expert engineers" at Himedia... (Don't know which smiley fits here better, so I go with them both:  ;D >:()...

This is often the case, not just with Himedia.

The best products are usually the ones with the biggest and most active userbase.

Q10 Pro is quite open, easy for users to customise.

Thanks qqq1971. Good work.
Title: Re: Samba server optimisation (Original thread - locked)
Post by: tmihai20 on December 12, 2016, 12:50:15 PM
I did not know we could improve the speed I copy to and from the Q10 Pro. Nice find. Does it set up a password for samba (or the username)?

Please do not complain about the few things the community is providing FOR FREE so everybody can have a better experience or improve something on our TV boxed. HiMedia never claimed we would get 100 MB/s for transfers using samba. You know, complaining only makes things worse. I have plenty of experience on XDA, some developers actually left just because of too many complaints. Let's just enjoy our practical TV boxes and thank the guys making these scripts.
Title: Re: Samba server optimisation (Original thread - locked)
Post by: Eriol on December 12, 2016, 01:52:21 PM
I suggest this to a sticky thread.
Title: Re: Samba server optimisation (Original thread - locked)
Post by: tmihai20 on December 12, 2016, 02:00:42 PM
Yeah, definitely. I was actually surprised to not have seen it before. It is a new topic. I will compare it to the old smb.conf. The script could backup the old smb.conf in case someone wants to go back to the old config.
Title: Re: Samba server optimisation (Original thread - locked)
Post by: futeko.com on December 12, 2016, 02:48:32 PM
OK, I have made it sticky. Also I've cleaned up the title so it matches the other patch threads.

qqq1971, I hope you don't mind but I have mentioned your patch and this thread to HiMedia. They may find some, erm, inspiration from it..
Title: Re: Samba server optimisation (Original thread - locked)
Post by: qqq1971 on December 12, 2016, 04:56:32 PM
OK, I have made it sticky. Also I've cleaned up the title so it matches the other patch threads.

qqq1971, I hope you don't mind but I have mentioned your patch and this thread to HiMedia. They may find some, erm, inspiration from it..

Of course. By the way, pcristi offered a more elegant solution. Besides, I have no way to test for Andriod 5.1.1 (thanks for his help on this).
Title: Re: Samba server optimisation (Original thread - locked)
Post by: pcristi on December 12, 2016, 06:18:56 PM
All work and credits to qqq1971.
Working on HiMedia 2th, 3th, 4th generation from any series if adb is enabled.

Android_DExxx hostname preserved
Active/inactive password  setting preserved

Download: Samba_conf_patch_v1.0.6 (http://www.mediafire.com/?1rr3htcp8wjbjm8)

Change log:
1. Created
2. Added the ability to install on Android 5
3. Restored access to sdcard
4. (Skip)
5. Rewrite to apply in smb.conf
6. RUN_ME.bat improve
- autobackup smb.conf when patch apply
- add Backup(pull) smb.conf
- add Restore(push) smb.bak
- add Install custom smb.conf

Note:
- not smb.conf inside of archive start with v1.0.5.
- performance maybe are different between original qqq1971
his made better fining tuning for Android 7.0 witch are not support by Android 4.4.2 / 5.1.1 SDK.

Who doesn't follow on 4pda samba transfer speed to Q10/Q5 Pro patch
Before vs After apply patch
(http://www.mediafire.com/convkey/45c7/v4cv41u0cx35nz6zg.jpg) (http://www.mediafire.com/convkey/0efe/2mqhk3w7xnaa4dgzg.jpg)

OK, I have made it sticky. Also I've cleaned up the title so it matches the other patch threads.

qqq1971, I hope you don't mind but I have mentioned your patch and this thread to HiMedia. They may find some, erm, inspiration from it..

Of course. By the way, pcristi offered a more elegant solution. Besides, I have no way to test for Andriod 5.1.1 (thanks for his help on this).
Title: Re: Samba server optimisation (Original thread - locked)
Post by: switchblade on December 12, 2016, 07:33:21 PM
I use my Q10 to play movies on my NAS over my LAN using SMB shares.  Playback is good, since the recent fw 2.0 update, but I was curious if this patch would improve overall network performance when playing movies via network / smb shares.
Title: Re: Samba server optimisation (Original thread - locked)
Post by: pcristi on December 12, 2016, 08:03:32 PM
Hello

Samba server optimization are for effected on Q10/Q5 samba client performance, you can try do some samba optimization on you NAS Samba server if supported. Will be better experience for user witch use Q10/Q5 like NAS storing movies and playing from other samba clients via samba share or copy movies from PC to Q10/Q5 Pro attached HDD.

I use my Q10 to play movies on my NAS over my LAN using SMB shares.  Playback is good, since the recent fw 2.0 update, but I was curious if this patch would improve overall network performance when playing movies via network / smb shares.
Title: Re: Samba server optimisation (Original thread - locked)
Post by: q10pro1 on December 12, 2016, 09:26:37 PM
I installed the patch I tried to flukes a Q10pro from pc film, but the computer locks up, that I'm wrong?
Title: Re: Samba server optimisation (Original thread - locked)
Post by: switchblade on December 13, 2016, 12:59:11 AM
Hello

Samba server optimization are for effected on Q10/Q5 samba client performance, you can try do some samba optimization on you NAS Samba server if supported. Will be better experience for user witch use Q10/Q5 like NAS storing movies and playing from other samba clients via samba share or copy movies from PC to Q10/Q5 Pro attached HDD.

I use my Q10 to play movies on my NAS over my LAN using SMB shares.  Playback is good, since the recent fw 2.0 update, but I was curious if this patch would improve overall network performance when playing movies via network / smb shares.

Sorry, perhaps I did not state my question very well.   I do not have nor do I need any samba changes on my server - it does just fine.  My only issue was when I tried watching a movie with the Q10 via smb over my network.  If I play the same movie from my same NAS  server with my popcorn hour player, works just fine.  Therefore I am asking if this patch will improve overall network performance on the Q10 for network speed - when accessing a smb share from my server.

After the recent FW release, I have had no issues with playback - knock on wood!   That said, I figured if this patch would help improve network communications on my q10, then why not try it.

If these  are good improvements, then they should be added to the official fw.

Title: Re: Samba server optimisation (Original thread - locked)
Post by: danyxp on December 13, 2016, 02:35:12 AM
Thanks, it works. To all that use other name that workgroup - edit smb conf to change it before using the bat file.
Title: Re: Samba server optimisation (Original thread - locked)
Post by: tmihai20 on December 13, 2016, 07:57:51 AM
@switchblade: you should really try it, it improves the speed when copying to and from the Q10 Pro.

I got a sustained 80 MB/s on mine copying from the Q10 Pro to my desktop (from the HDD connected to SATA port). It is way better than before. Thank you so much for doing this. My observation remains, I would backup the old smb.conf before making any changes to the existing smb.conf.
Title: Re: Samba server optimisation (Original thread - locked)
Post by: andys on December 13, 2016, 08:32:12 AM
successfully installed, but with slow shutter speed
Title: Re: Samba server optimisation (Original thread - locked)
Post by: q10pro1 on December 13, 2016, 01:13:41 PM
I installed the patch I tried to flukes a Q10pro from pc film, but the computer locks up, that I'm wrong?

what should I do?

ps windows7 on pc, android 7 on Q10pro
Title: Re: Samba server optimisation (Original thread - locked)
Post by: futeko.com on December 13, 2016, 02:00:30 PM
I installed the patch I tried to flukes a Q10pro from pc film, but the computer locks up, that I'm wrong?

I don't understand the question.

This patch makes no changes at all to your PC.
Title: Re: Samba server optimisation (Original thread - locked)
Post by: q10pro1 on December 13, 2016, 02:22:04 PM
I installed the patch I tried to flukes a Q10pro from pc film, but the computer locks up, that I'm wrong?

I don't understand the question.

This patch makes no changes at all to your PC.
I installed the patch on q10pro with Android 7
in this way
1. Download and unzip.
2. Run RUN_ME.bat, players enter ip-address, select action.
stop
I should do anything else?
Title: Re: Samba server optimisation (Original thread - locked)
Post by: pcristi on December 13, 2016, 03:19:16 PM
v1.0.6

RUN_ME.bat improve
- autobackup smb.conf when patch apply
- add Backup(pull) smb.conf
- add Restore(push) smb.bak
- add Install custom smb.conf

OP: http://www.futeko.com/newforum/index.php?topic=1467.msg11727#msg11727

I would backup the old smb.conf before making any changes to the existing smb.conf.
Title: Re: Samba server optimisation (Original thread - locked)
Post by: switchblade on December 13, 2016, 03:37:42 PM
1.06 - where??

please update the first post with the most recent version / link.  Existing link on post 1 is 1.01.
Title: Re: Samba server optimisation (Original thread - locked)
Post by: pcristi on December 13, 2016, 04:15:33 PM
OP: http://www.futeko.com/newforum/index.php?topic=1467.msg11727#msg11727

1.06 - where??

please update the first post with the most recent version / link.  Existing link on post 1 is 1.01.
Title: Re: Samba server optimisation (Original thread - locked)
Post by: q10pro1 on December 13, 2016, 05:48:37 PM
samba.conf not exist
because?
Title: Re: Samba server optimisation (Original thread - locked)
Post by: futeko.com on December 14, 2016, 08:34:41 AM
New thread here: http://www.futeko.com/newforum/index.php?topic=1479.0