futeko.com FORUM

Current Product Support => HiMedia Q10 Pro, Q5 Pro => Topic started by: futeko.com on December 13, 2016, 09:15:25 PM

Title: [PATCH] Samba server optimisation
Post by: futeko.com 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
(http://www.mediafire.com/convkey/45c7/v4cv41u0cx35nz6zg.jpg) (http://www.mediafire.com/convkey/0efe/2mqhk3w7xnaa4dgzg.jpg)

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 (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.
Title: Re: [PATCH] Samba server optimisation
Post by: Nice Monkey 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 .
Title: Re: [PATCH] Samba server optimisation
Post by: imats 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
Title: Re: [PATCH] Samba server optimisation
Post by: MusiCManiaC 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.
Title: Re: [PATCH] Samba server optimisation
Post by: futeko.com 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.
Title: Re: [PATCH] Samba server optimisation
Post by: q10pro1 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
Title: Re: [PATCH] Samba server optimisation
Post by: Nice Monkey 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?
Title: Re: [PATCH] Samba server optimisation
Post by: q10pro1 on December 18, 2016, 05:10:52 PM
(https://s23.postimg.org/ocgsufi57/Cattura.png) (https://postimg.org/image/mxf85ph1z/)caricare immagini (https://postimage.org/index.php?lang=italian)
what should I do?
step by step
thank you
Title: Re: [PATCH] Samba server optimisation
Post by: switchblade 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.

Title: Re: [PATCH] Samba server optimisation
Post by: futeko.com on December 18, 2016, 09:26:17 PM
1.

Or 3 then 1 if you want to backup up Samba config before starting.
Title: Re: [PATCH] Samba server optimisation
Post by: q10pro1 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
Title: Re: [PATCH] Samba server optimisation
Post by: pcristi 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
Title: Re: [PATCH] Samba server optimisation
Post by: jxupi 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
Title: Re: [PATCH] Samba server optimisation
Post by: giacomo.antonioli on December 23, 2016, 05:31:37 PM
Hello , I got the same message yesterday when i tried to run the patch.
Giacomo
Title: Re: [PATCH] Samba server optimisation
Post by: pcristi 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
Title: Re: [PATCH] Samba server optimisation
Post by: switchblade on December 24, 2016, 12:49:22 AM
same thing for me, got the same error.  I also noticed that the sub director within the zip is labeled 1.05, the file name is 1.06.

I ended up Uninstalling and then tried Install again and it seem to work.

I s there a way to confirm the patch is applied correctly?
Title: Re: [PATCH] Samba server optimisation
Post by: pcristi on December 24, 2016, 01:51:18 PM
labeled 1.05, the file name is 1.06 --> please do download again I observed few days ago and fixed.
Is there a way to confirm the patch is applied correctly? --> use option 3 to make backup and compare smb.conf with smb.orig,  smb.conf will show you few more lines.

same thing for me, got the same error.  I also noticed that the sub director within the zip is labeled 1.05, the file name is 1.06.

I ended up Uninstalling and then tried Install again and it seem to work.

I s there a way to confirm the patch is applied correctly?
Title: Re: [PATCH] Samba server optimisation
Post by: switchblade on December 24, 2016, 06:35:20 PM
I cannot find the smb.conf file or the backup.  I'm connected to my Q10 ip address/share    and I do not find it in any of the directories.

Title: Re: [PATCH] Samba server optimisation
Post by: pcristi on December 24, 2016, 06:38:43 PM
You miss understand smb.conf, smb.bak, smb.orig are create in same folder with RUN_ME.bat, not on player.
I cannot find the smb.conf file or the backup.  I'm connected to my Q10 ip address/share    and I do not find it in any of the directories.
Title: Re: [PATCH] Samba server optimisation
Post by: switchblade on December 24, 2016, 06:45:26 PM
Got it, thank you.  Yes, the new file has a few more lines than the .orig file.   Looks to be installed correctly so I will do some testing.

Title: Re: [PATCH] Samba server optimisation
Post by: carl on December 26, 2016, 04:54:45 AM
Hi!
When trying to run the patch i get an error with a message like "more than one device and emulator".

This is the stack for example when trying to backup the smb.conf

Quote
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++                        Samba config file                          +++
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++      1      Apply patch in smb.conf                               +++
+++      2      Change WORKGROUP                                      +++
+++      3      Backup(pull) smb.conf                                 +++
+++      4      Restore(push) from smb.bak                            +++
+++      5      Install custom smb.conf                               +++
+++      6      Unistall remove smb.conf                              +++
+++      7      Reboot Media-Player                                   +++
+++      0      Exit                                                  +++
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Please make your decision:3
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++                      Backup(pull) smb.conf                        +++
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
error: more than one device and emulator
Android Debug Bridge version 1.0.26

 -d                            - directs command to the only connected USB device
                                 returns an error if more than one USB device is present.
 -e                            - directs command to the only running emulator.
                                 returns an error if more than one emulator is running.
 -s <serial number>            - directs command to the USB device or emulator with
                                 the given serial number. Overrides ANDROID_SERIAL
                                 environment variable.
 -p <product name or path>     - simple product name like 'sooner', or
                                 a relative/absolute path to a product
                                 out directory like 'out/target/product/sooner'.
                                 If -p is not specified, the ANDROID_PRODUCT_OUT
                                 environment variable is used, which must
                                 be an absolute path.
 devices                       - list all connected devices
 connect <host>[:<port>]       - connect to a device via TCP/IP
                                 Port 5555 is used by default if no port number is specified.
 disconnect [<host>[:<port>]]  - disconnect from a TCP/IP device.
                                 Port 5555 is used by default if no port number is specified.
                                 Using this ocmmand with no additional arguments
                                 will disconnect from all connected TCP/IP devices.

device commands:
  adb push <local> <remote>    - copy file/dir to device
  adb pull <remote> [<local>]  - copy file/dir from device
  adb sync [ <directory> ]     - copy host->device only if changed
                                 (-l means list but don't copy)
                                 (see 'adb help all')
  adb shell                    - run remote shell interactively
  adb shell <command>          - run remote shell command
  adb emu <command>            - run emulator console command
  adb logcat [ <filter-spec> ] - View device log
  adb forward <local> <remote> - forward socket connections
                                 forward specs are one of:
                                   tcp:<port>
                                   localabstract:<unix domain socket name>
                                   localreserved:<unix domain socket name>
                                   localfilesystem:<unix domain socket name>
                                   dev:<character device name>
                                   jdwp:<process pid> (remote only)
  adb jdwp                     - list PIDs of processes hosting a JDWP transport
  adb install [-l] [-r] [-s] <file> - push this package file to the device and install it
                                 ('-l' means forward-lock the app)
                                 ('-r' means reinstall the app, keeping its data)
                                 ('-s' means install on SD card instead of internal storage)
  adb uninstall [-k] <package> - remove this app package from the device
                                 ('-k' means keep the data and cache directories)
  adb bugreport                - return all information from the device
                                 that should be included in a bug report.

  adb help                     - show this help message
  adb version                  - show version num

DATAOPTS:
 (no option)                   - don't touch the data partition
  -w                           - wipe the data partition
  -d                           - flash the data partition

scripting:
  adb wait-for-device          - block until device is online
  adb start-server             - ensure that there is a server running
  adb kill-server              - kill the server if it is running
  adb get-state                - prints: offline | bootloader | device
  adb get-serialno             - prints: <serial-number>
  adb status-window            - continuously print device status for a specified device
  adb remount                  - remounts the /system partition on the device read-write
  adb reboot [bootloader|recovery] - reboots the device, optionally into the bootloader or recovery program
  adb reboot-bootloader        - reboots the device into the bootloader
  adb root                     - restarts the adbd daemon with root permissions
  adb usb                      - restarts the adbd daemon listening on USB
  adb tcpip <port>             - restarts the adbd daemon listening on TCP on the specified port
networking:
  adb ppp <tty> [parameters]   - Run PPP over USB.
 Note: you should not automatically start a PPP connection.
 <tty> refers to the tty for PPP stream. Eg. dev:/dev/omap_csmi_tty1
 [parameters] - Eg. defaultroute debug dump local notty usepeerdns

adb sync notes: adb sync [ <directory> ]
  <localdir> can be interpreted in several ways:

  - If <directory> is not specified, both /system and /data partitions will be updated.

  - If it is "system" or "data", only the corresponding partition
    is updated.

environmental variables:
  ADB_TRACE                    - Print debug information. A comma separated list of the following values
                                 1 or all, adb, sockets, packets, rwx, usb, sync, sysdeps, transport, jdwp
  ANDROID_SERIAL               - The serial number to connect to. -s takes priority over this if given.
  ANDROID_LOG_TAGS             - When used with the logcat option, only these debug tags are printed.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++                    Restore(push) from smb.bak                     +++
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
"smb.bak not exist"
Presione una tecla para continuar . . .


Any advice?

Thanks!
Title: Re: [PATCH] Samba server optimisation
Post by: pcristi on December 26, 2016, 11:36:22 AM
error: more than one device and emulator

- edit with notepad++  RUN_ME.bat and replace all  adb shell with  adb -s %var%:5555 shell
- just restart you computer.
Title: Re: [PATCH] Samba server optimisation
Post by: jole14 on December 29, 2016, 04:34:47 PM
I'm new here and today I have get my Q10.
the mediaplay have a fix IP and I can connect with run_me.bat. no errors.

I will change smb.conf:
from
   workgroup = WORKGROUP
   server string = Android_f8abc
   netbios name = Android_f8abc
to:
   workgroup = GHW23
   server string = HiMedia_Q10Pro
        netbios name = HiMedia_Q10Pro

This I have done:
I have press 2. Change WORKGROUP -> nothing
I have 3., change smb.conf, 5. and 1.
If I do 3. once more the changes are in the file.
But if I reboot mediaplayer, the changes away.

Can everybody help me?
Title: Re: [PATCH] Samba server optimisation
Post by: tmihai20 on December 29, 2016, 07:39:34 PM
I'm new here and today I have get my Q10.
the mediaplay have a fix IP and I can connect with run_me.bat. no errors.

I will change smb.conf:
from
   workgroup = WORKGROUP
   server string = Android_f8abc
   netbios name = Android_f8abc
to:
   workgroup = GHW23
   server string = HiMedia_Q10Pro
        netbios name = HiMedia_Q10Pro

This I have done:
I have press 2. Change WORKGROUP -> nothing
I have 3., change smb.conf, 5. and 1.
If I do 3. once more the changes are in the file.
But if I reboot mediaplayer, the changes away.

Can everybody help me?

Did you root your Q10? I think this mod does not work unless rooted (I may be wrong).
Title: Re: [PATCH] Samba server optimisation
Post by: jole14 on December 29, 2016, 10:07:06 PM
I have tried it once more - nothing.

I have restart the Q10 - stop and start
I have reboot the Q10 - 0. in run_me.bat

It will not change. :-[ :-[
Title: Re: [PATCH] Samba server optimisation
Post by: Killastyle on December 31, 2016, 10:36:30 AM
Is it wise to use samba when i only stream via kodi? Or is it only usefull for streaming via lan?
Title: Re: [PATCH] Samba server optimisation
Post by: pcristi on December 31, 2016, 12:38:29 PM
This patch not improve samba client performance from box or Kodi, not benefit for streaming from Kodi.
Patch is apply to samba server, a benefit are visible people witch use other device to connect via samba share to Q10/Q5 box.
Is it wise to use samba when i only stream via kodi? Or is it only usefull for streaming via lan?
Title: Re: [PATCH] Samba server optimisation
Post by: Killastyle on December 31, 2016, 01:22:18 PM
This patch not improve samba client performance from box or Kodi, not benefit for streaming from Kodi.
Patch is apply to samba server, a benefit are visible people witch use other device to connect via samba share to Q10/Q5 box.
Is it wise to use samba when i only stream via kodi? Or is it only usefull for streaming via lan?

Thanks for the info
Title: Re: [PATCH] Samba server optimisation
Post by: IamEvel on January 22, 2017, 02:05:54 PM
Title: Re: [PATCH] Samba server optimisation
Post by: pcristi on January 22, 2017, 02:42:42 PM
Title: Re: [PATCH] Samba server optimisation
Post by: switchblade on January 22, 2017, 05:46:46 PM
Can anyone confirm that this fix is now part of 2.0.1?  See number 3 on the change log.  If yes, then this patch is no longer needed - correct?

2.0.1 Changelog:

1. Recent Key out of operation issue fixed
2. Some HDDs unrecognizable issue fixed
3. Samba copy at low speed issue fixed
4. Video playback fastward buffering issue fixed
5. Bluetooth auto enable after turn off issue fixed
6. Certain applications unable to install issue fixed
7. Wrapper unable to playback the videos in NFS issue fixed
8. Support KODI 17.0
9. Airplay support for IOS10.2
10. Default support widevine L3
11. HDMI compatibility improved
12. Advanced setting descriptions optimized
13. Wifi handling capacity improved
14. Key touch-tone has been turned off
Title: Re: [PATCH] Samba server optimisation
Post by: MusiCManiaC on January 22, 2017, 07:30:38 PM
On my Q10 speed by lan cable is max 15Mb, so further something is not right  >:(. And please do not write that my network is a problem,on a different device network is working perfectly.
Title: Re: [PATCH] Samba server optimisation
Post by: tmihai20 on January 23, 2017, 07:51:17 AM
I did not install this patch on 2.0.1 and I have speeds like it did before. My guess is that this patch is not needed anymore.

@MusiCManiaC: what firmware are you using? I only tried this on Nougat based firmware, 2.0.0.
Title: Re: [PATCH] Samba server optimisation
Post by: futeko.com on January 23, 2017, 11:36:09 AM
On my Q10 speed by lan cable is max 15Mb, so further something is not right  >:(. And please do not write that my network is a problem,on a different device network is working perfectly.

How have you tested it?
Title: Re: [PATCH] Samba server optimisation
Post by: MusiCManiaC on January 24, 2017, 08:35:45 PM
On my Q10 speed by lan cable is max 15Mb, so further something is not right  >:(. And please do not write that my network is a problem,on a different device network is working perfectly.

How have you tested it?

Speed connections tested on several files below 1GB, Laptop Dell Studio,Lan cable with a length of about 8 meters,transfer rate of not more than 18mb.
I'm using the latest software

Title: Re: [PATCH] Samba server optimisation
Post by: Cartman11 on January 27, 2017, 09:32:51 PM
Worked great for me now getting 80MB/s was about 25 before patch
Title: Re: [PATCH] Samba server optimisation
Post by: switchblade on January 28, 2017, 04:00:47 PM
Worked great for me now getting 80MB/s was about 25 before patch

What fw are you using?  With the lastest, you should not need this patch anymore.
Title: Re: [PATCH] Samba server optimisation
Post by: tmihai20 on January 28, 2017, 04:59:49 PM
Yeah, I wanted to say the same thing. I am referring to 2.0.1, based on Nougat, this is what I am using.
Title: Re: [PATCH] Samba server optimisation
Post by: switchblade on January 28, 2017, 05:58:54 PM
Interesting, thanks for sharing.  I'm on 2.0.0 and close to upgrading to 2.0.1 (looking for a better way to backup all installed apps so I don't have to keep re-installing everything I want). 

The 2.0.1 Fix Llist slows the samba slow speed fix item number 3.

This needs to be reported so they can remove the false claim on the Fix List and add  the real fix to the next fw release. 
Title: Re: [PATCH] Samba server optimisation
Post by: Cartman11 on January 28, 2017, 07:37:51 PM
Worked great for me now getting 80MB/s was about 25 before patch

What fw are you using?  With the lastest, you should not need this patch anymore.

Im running the latest fw 2.0.1 Driod 7, I was getting about 25mbs before patch then 80 but today its back to normal  :'(
Title: Re: [PATCH] Samba server optimisation
Post by: DancesWithChickens on January 29, 2017, 08:57:53 AM
I cannot get it to work.

(http://i.imgur.com/ckTyYR5.jpg)

The patch does nothing to increase that speed. :\

Title: Re: [PATCH] Samba server optimisation
Post by: t123 on January 29, 2017, 09:48:34 AM
I cannot get it to work.

(http://i.imgur.com/ckTyYR5.jpg)

The patch does nothing to increase that speed. :\


Looks like something in your network is only 100 mbit, which would only give you the speeds you are seeing.
Title: Re: [PATCH] Samba server optimisation
Post by: DancesWithChickens on January 29, 2017, 12:35:15 PM
Solved.

It was just the goddamn cable, even though it was supposed to be "high end"...
Title: Re: [PATCH] Samba server optimisation
Post by: CookiePuss on February 15, 2017, 09:12:41 PM
Man, I would LOVE to get 80Mbs transfer speeds. I'm running Android 5.1 with the 1.9 firmware. I was getting around 7.5MBs wireless LAN transfer speeds, after patch about 23MBs. I have all GB gear, ie ASUS AC1900 GB router, GB Ethernet card, etc.  I wonder what I'm doing wrong?

Title: Re: [PATCH] Samba server optimisation
Post by: tmihai20 on February 15, 2017, 09:56:47 PM
@CookiePuss: check the cable. Try with another one. We are talking about ethernet, right? Not wireless connectivity.
Title: Re: [PATCH] Samba server optimisation
Post by: futeko.com on February 16, 2017, 10:16:42 AM
Man, I would LOVE to get 80Mbs transfer speeds. I'm running Android 5.1 with the 1.9 firmware. I was getting around 7.5MBs wireless LAN transfer speeds, after patch about 23MBs. I have all GB gear, ie ASUS AC1900 GB router, GB Ethernet card, etc.  I wonder what I'm doing wrong?

Wireless will be slower than wired ethernet and will depend on distance to router / obstacles / other wifi networks.

23MB/s is not bad for wifi, it's 184Mbps, which is higher than you'll need for any video.
Title: Re: [PATCH] Samba server optimisation
Post by: CookiePuss on February 17, 2017, 08:45:43 PM
I feel dumb haha. Yes, I'm running wireless. I tried using on of those Powerline Adapters that plug into the wall but I didn't see any increase in speed. I feel better knowing the speeds I'm getting are normal for a wireless connection. I was happy even with the 3x boost from 7.7MBs to 23MBs to be honest, I just thought I was supposed to be getting 80+ on wireless when I read the thread. Thanks for the replies and for the continued patches/updates fort he Q10 Pro. :)
Title: Re: [PATCH] Samba server optimisation
Post by: futeko.com on March 22, 2017, 11:51:22 AM
This patch is not necessary when running Android 5.1 firmware 1.1.0 or Android 7 firmware 2.0.1 or later.
Title: Re: [PATCH] Samba server optimisation
Post by: harpreetz on November 23, 2017, 05:18:32 AM
Iam using the most recent firware for Himedia Q10 Pro. " Android 7  v2.06. and getting a transfer speed of 3MB/Second over Wifi network.
What can possibly be wrong for such a slow transfer rate.
Title: Re: [PATCH] Samba server optimisation
Post by: futeko.com on November 23, 2017, 08:31:09 AM
Iam using the most recent firware for Himedia Q10 Pro. " Android 7  v2.06. and getting a transfer speed of 3MB/Second over Wifi network.
What can possibly be wrong for such a slow transfer rate.

Try changing wifi channel on your router.
Title: Re: [PATCH] Samba server optimisation
Post by: mihailuican on March 14, 2018, 08:51:08 PM
Hello everyone.
There are news about critical vulnerabilities in SAMBA being discovered and repaired by patching SAMBA.
Info here:  https://thehackernews.com/2018/03/samba-server-vulnerability.html
Official SAMBA Patches here: https://www.samba.org/samba/history/security.html
What can we do #Pcristi?
Title: Re: [PATCH] Samba server optimisation
Post by: ch33psk8 on March 15, 2018, 09:49:35 AM
Are there any improvements to samba transfer rates available ... with the new patches ??
Title: Re: [PATCH] Samba server optimisation
Post by: mihailuican on March 23, 2018, 07:18:30 PM
No way of patching the samba app ourselves, is it? Well, I tried bringing this up but apparently we all have to wait, as usual.
Title: Re: [PATCH] Samba server optimisation
Post by: pcristi on April 19, 2018, 11:45:59 PM
Apparently FW v2.0.8 required again to apply this patch. Need more user for testing.
Title: Re: [PATCH] Samba server optimisation
Post by: JohnnyBoyIsMe on July 12, 2018, 11:09:15 AM
Apparently FW v2.0.8 required again to apply this patch. Need more user for testing.
Im running 2.0.8


Before patch im getting approx. 12MB/s, after patch I get the same 12MB/s


Using a single video file of 3GB.


Everything in the network is gigabit. Have tested by connecting a old laptop to the same ethernet port and transferring files. I get around 90MB/s.


When transferring files between my NAS to my computer I max out the connection at 112MB/s

any ideas to increase the speed?


Cheers
Title: Re: [PATCH] Samba server optimisation
Post by: pcristi on July 12, 2018, 05:44:25 PM

Before patch im getting approx. 12MB/s, after patch I get the same 12MB/s

Look like box is connect to 100Mbps/Full

Check via adb shell
Code: [Select]
adb connect ip_player
adb root
adb connect ip_player
adb shell "dmesg | grep eth0"

Output will be like that eth0: Link is Up - 1Gbps/Full
Code: [Select]
hi_gmac_v200 f9841000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Title: Re: [PATCH] Samba server optimisation
Post by: Mount81 on July 13, 2018, 04:07:25 AM

Before patch im getting approx. 12MB/s, after patch I get the same 12MB/s

Look like box is connect to 100Mbps/Full

Check via adb shell
Code: [Select]
adb connect ip_player
adb root
adb connect ip_player
adb shell "dmesg | grep eth0"

Output will be like that eth0: Link is Up - 1Gbps/Full
Code: [Select]
hi_gmac_v200 f9841000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

What does it mean? The box output is limited to 100Mbit anyways, or it's just connected to a 100Mbit router port?
Title: Re: [PATCH] Samba server optimisation
Post by: pcristi on July 13, 2018, 07:34:33 AM
@Mount81

For a rezone somehow ethernet(eth0) is negotiate with router(switch) to 100Mbit.
If look on first post of this topic will see samba copy speed is 25MB/s with ethernet(eth0) connect to 1Gbit when samba optimization is was not implemented on smb.conf. JohnnyBoyIsMe have to check ethernet(eth0) link status reading status port reported by router(switch) or from adb shell on output of dmesg command.
Reboot router(switch) or change cables maybe can solve his problem.
Title: Re: [PATCH] Samba server optimisation
Post by: JohnnyBoyIsMe on July 13, 2018, 10:44:51 AM

Before patch im getting approx. 12MB/s, after patch I get the same 12MB/s

Look like box is connect to 100Mbps/Full

Check via adb shell
Code: [Select]
adb connect ip_player
adb root
adb connect ip_player
adb shell "dmesg | grep eth0"

Output will be like that eth0: Link is Up - 1Gbps/Full
Code: [Select]
hi_gmac_v200 f9841000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

Thanks for the information, but no idea how to get abd shell to work. I downloaded something but not sure how to use it.

After some investigation it appears my unit is connecting to the router at only 100mbits.

I believe its either a firmware issue or hardware issue in the box after the following testing

- pluged laptop into the same ethernet port as the Q10 pro and got 1000mbits connection
- plugged Q10 pro into another ethernet port (i have 6 running to my home theatre) and connected only at 100mbits
- used seperate long ethernet cable to connect directly from Q10 pro to router (bi-passing switch) and connecting at 100mbits


This would explain why video gets choppy at around the 70-80mbits range as its maxing out the 100mbit connection.

Any ideas on this?

Title: Re: [PATCH] Samba server optimisation
Post by: JohnnyBoyIsMe on July 13, 2018, 10:55:20 AM
Just tried to use the wifi connection for transfers......18Mb/s (not mbits)

Do I just have a dud unit?

Title: Re: [PATCH] Samba server optimisation
Post by: razorback on July 15, 2018, 12:10:45 PM
using 2.0.8 Original
no patch

Transmission rates over 1GB Network average 60 MB (MegaBytes) /s
some additional Traffic too.....

so no urgent need for a patch so far.......
Title: Re: [PATCH] Samba server optimisation
Post by: xenon4711 on April 08, 2019, 08:58:43 PM
Using 2.1.1 Custom firmware.
Patch doesn't work. Got 2-10 MB/s.

EDIT: HDD was almost full. Deleted some files and now I'm back to normal speeds (~40-50 MB/s).