UK BASED
FREE WORLD SHIPPING
2 YEAR WARRANTY
FEATURED  :  MEDIA BOX  :  OTHER  FORUM  :  CART
Zidoo X20 Pro
ESS9038 DAC
DUAL HDMI PORT
DUAL 3.5" HDD BAY
AUTO REFRESH+RESOLUTION SWITCHING
IN STOCK

Author Topic: [PATCH] Samba server optimisation  (Read 24852 times)

futeko.com

  • Administrator
  • Senior Member
  • *****
  • Posts: 4096
    • View Profile
[PATCH] Samba server optimisation
« on: December 13, 2016, 09:15:25 PM »
New thread so opening post can always contain the latest version and instructions. Original (locked) thread: http://www.futeko.com/newforum/index.php?topic=1467.0

All work and credit qqq1971 and pcristi.

This patch improves Samba server performance on Q5/Q10 Pro (streaming using another device from Q5/Q10 Pro attached storage via Samba).

Compatible with all Android 5.1 and Android 7.0 firmwares. Also working on HiMedia 2th, 3th, 4th generation from any series if adb is enabled.

Android_DExxx hostname preserved, active/inactive password setting preserved.

Before vs After apply patch


USE AT YOUR OWN RISK!

Version History

v1.0.8
- check if Samba server running before apply patch
- improve workgroup change
- ensure adb is connected

v1.0.7
- comment socket options / like original patch by qqq1971

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

v1.0.5
- Rewrite to apply in smb.conf

v1.0.3
- Restored access to sdcard

v1.0.2
- Added the ability to install on Android 5

v1.0.1
- Created

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.

Requires:

- Windows PC to run the batch file at command prompt.
- Q5/Q10 Pro connected to same network as PC and the IP address of Q5/Q10 Pro (Settings - Network).

Instructions:

- Download: http://www.mediafire.com/?135obeqriheefox
- Unzip
- Execute RUN_ME.bat at command prompt
- Insert Q5/Q10 Pro IP address

v1.0.8
- check if Samba server running before apply patch
- improve workgroup change
- ensure adb is connected

v1.0.7
- comment socket options / like original patch by qqq1971

---------
How to update:
Apply option 6 to uninstall
Apply option 1 to install
Apply option 2 to change workgroup if need it
---------
Option 3, 4, 5 are for advanced user.
« Last Edit: March 22, 2017, 11:50:24 AM by futeko.com »

Nice Monkey

  • Senior Member
  • ***
  • Posts: 722
  • Loves classic movies
    • View Profile
Re: [PATCH] Samba server optimisation
« Reply #1 on: December 14, 2016, 09:17:12 AM »
Works conform specs reaching over 80 MBytes/sec transfer rate.

What needs to be checked first is that an upload happens as a background task without jeopardizing the NAS Server output function. It should be possible to play UHD material concurrently using the same player without jitter etc. Best also another player accessing this NAS Server as a SMB client should run flawless. Can't test this myself as I don't have an UHD TV setup. If this is not the case it is not a potential default for me. Adding an extra option for the choice "SMB Throughput Optimized: YES/NO" is an alternative .
« Last Edit: December 14, 2016, 12:09:13 PM by Nice Monkey »

imats

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: [PATCH] Samba server optimisation
« Reply #2 on: December 16, 2016, 02:20:04 AM »
Thank you very much, I was already burned to pass the files so slowly, after installing the Patch and multiplied by 4 the transfer data.
Great job.

regards

MusiCManiaC

  • Full Member
  • **
  • Posts: 94
    • View Profile
Re: [PATCH] Samba server optimisation
« Reply #3 on: December 17, 2016, 06:45:21 PM »
This patch works occasionally?I installed yesterday, transfer 40MB, today after running everything was back to "normal" transfer is 3mb  >:(.
Unfortunately, I will repeat: too many patches, no stable software.

futeko.com

  • Administrator
  • Senior Member
  • *****
  • Posts: 4096
    • View Profile
Re: [PATCH] Samba server optimisation
« Reply #4 on: December 17, 2016, 08:47:25 PM »
This patch works occasionally?I installed yesterday, transfer 40MB, today after running everything was back to "normal" transfer is 3mb  >:(.
Unfortunately, I will repeat: too many patches, no stable software.

'Normal' transfer rates are not 3MB/s. There must be a problem with the rest of your network setup for that to be the case.

q10pro1

  • Senior Member
  • ***
  • Posts: 109
    • View Profile
Re: [PATCH] Samba server optimisation
« Reply #5 on: December 17, 2016, 09:10:08 PM »
after installing the Petch the speed was 82MB / s
now he returned to 16Mb / s
that happens?
I reinstalled the ptch, but always goes to 16Mb / s

Nice Monkey

  • Senior Member
  • ***
  • Posts: 722
  • Loves classic movies
    • View Profile
Re: [PATCH] Samba server optimisation
« Reply #6 on: December 18, 2016, 03:02:40 PM »
after installing the Petch the speed was 82MB / s
now he returned to 16Mb / s
that happens?
I reinstalled the ptch, but always goes to 16Mb / s
I have seen variable speeds too. Maybe you are doing something in the foreground concurrently?

q10pro1

  • Senior Member
  • ***
  • Posts: 109
    • View Profile
Re: [PATCH] Samba server optimisation
« Reply #7 on: December 18, 2016, 05:10:52 PM »
caricare immagini
what should I do?
step by step
thank you

switchblade

  • Full Member
  • **
  • Posts: 74
    • View Profile
Re: [PATCH] Samba server optimisation
« Reply #8 on: December 18, 2016, 05:44:57 PM »
 I plan to install this.  From what I have read, you should select 3 to backup your existing smb.conf file.  Then select 1 to install the patch, reboot and that should be it.

I did read some where that you may need to change the Workgroup, although I can't find that post now..

From what I see, the other sections are there if you want to customize or if you have issues and need to restore.


futeko.com

  • Administrator
  • Senior Member
  • *****
  • Posts: 4096
    • View Profile
Re: [PATCH] Samba server optimisation
« Reply #9 on: December 18, 2016, 09:26:17 PM »
1.

Or 3 then 1 if you want to backup up Samba config before starting.

q10pro1

  • Senior Member
  • ***
  • Posts: 109
    • View Profile
Re: [PATCH] Samba server optimisation
« Reply #10 on: December 23, 2016, 01:04:37 AM »
also runs on Android 5, one can install on 1.9?
It installs as  on android  7 ?
thank you
ps 3 and 1

pcristi

  • Senior Member
  • ***
  • Posts: 1002
    • View Profile
Re: [PATCH] Samba server optimisation
« Reply #11 on: December 23, 2016, 08:21:00 AM »
Only 1 is OK,
Step 1 is run backup process too, don't need to do step 3 first if user don't hvea itself smb.conf.
Step 6 uninstall will remove patch and after box is reboot samba server will run on original HiMedia smb.conf.

also runs on Android 5, one can install on 1.9?
It installs as  on android  7 ?
thank you
ps 3 and 1

jxupi

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: [PATCH] Samba server optimisation
« Reply #12 on: December 23, 2016, 02:45:28 PM »
Hi,
how do you know if the patch is applyed well?

after selecting option 1, letters turned to red color and this message appeared:

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++                    Check patch already apply                      +++
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
'adb' is not recognized as an internal or external command,
operable program or batch file.
"patched or custom smb.conf activ"
Press any key to continue . . .


is that normal?

thanks

giacomo.antonioli

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: [PATCH] Samba server optimisation
« Reply #13 on: December 23, 2016, 05:31:37 PM »
Hello , I got the same message yesterday when i tried to run the patch.
Giacomo

pcristi

  • Senior Member
  • ***
  • Posts: 1002
    • View Profile
Re: [PATCH] Samba server optimisation
« Reply #14 on: December 23, 2016, 07:13:43 PM »
'adb' is not recognized as an internal or external command, --> not normal msg, is a error once.

Unpack downloaded archive and don't try to run RUN_ME.bat direct form archive, check if anti-virus program not block or remove adb.exe.

Hi,
how do you know if the patch is applyed well?

after selecting option 1, letters turned to red color and this message appeared:

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++                    Check patch already apply                      +++
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
'adb' is not recognized as an internal or external command,
operable program or batch file.
"patched or custom smb.conf activ"
Press any key to continue . . .


is that normal?

thanks
Hello , I got the same message yesterday when i tried to run the patch.
Giacomo

 

Zidoo X20
DUAL HDMI PORT
DUAL 3.5" HDD BAYS
AUTO REFRESH+RESOLUTION SWITCHING
UHD+BD+DVD ISO FULL MENUS
IN STOCK
DELIVERY  :  WARRANTY  :  RETURNS  :  FAQ  :  BREXIT  :  ABOUT  :  CONTACT
PayPal Acceptance Mark Prices are charged in £GBP with conversion at Paypal's current rate. The Euro / $USD price on our site is approximate. More info here. Prices for UK + EU delivery include VAT at 20%. COOKIE POLICY.

© SDHDIGITAL LTD 2019. All rights reserved.