Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#71 closed defect (fixed)

Performance of over a (Open)VPN is terribly slow

Reported by: Herwig Bauernfeind Owned by:
Priority: critical Milestone: Samba Server for eCS (OS/2) 1.0.1
Component: Samba Client Plugin Version: 3.0.31
Keywords: VPN speed 100% CPU load Cc: herwig.bauernfeind@…

Description

When running Samba connections over a VPN connection (using OpenVPN for OS/2 by Pavel Shtemenko from hobbes on both sides), transfer speed is really slow.

The tests were done on the same connection within 10 minutes:

  • Transfer speed using Netdrive/ndpsmb: 1,5 to 3,0 KB/s
  • Transfer speed using smbclient.exe: 30,0 to 50,0 KB/s
  • Transfer speed using FTP: 30,0 to 50,0 KB/s

smbclient.exe is Version 3.0.33 (but that does not matter most likely). I will attach logfiles later.

Change History (7)

comment:1 by Herwig Bauernfeind, 16 years ago

Keywords: 100% CPU load added
Priority: majorcritical

Further investigation reveals:

  1. Problem occurs when writing to the share over VPN, not when reading.
  2. Server jumps to 100% CPU usage as soon as the first bytes are written, which explains why transfer is so slow.
  3. Tested Samba Server Version 3.0.31.

comment:2 by Herwig Bauernfeind, 16 years ago

Keywords: plugin removed
Milestone: Netdrive SMB Client plugin 1.5 beta 1Samba Server for OS/2 1.0.1
Version: Netdrive SMB Client plugin 1.5 alpha 1

The above explorations suggest a different source (server not client!)

comment:3 by Herwig Bauernfeind, 16 years ago

Summary: Performance of ndpsmb over a (Open)VPN is terribly slowPerformance of over a (Open)VPN is terribly slow

comment:4 by Herwig Bauernfeind, 16 years ago

Works with the following incarnation of OS2_EAGAIN_RETRY_CHECK macro (both read and write):

#define OS2_EAGAIN_RETRY_INIT time_t t1 = time(NULL); #define OS2_EAGAIN_RETRY_CHECK \

if (ret == -1) { \

DEBUG(10,("sys_read: op failed, errno: %d,%s\n", errno, strerror(errno))); \

} \ if (ret==-1 && errno==EAGAIN) { \

DosSleep(100); \ if (time(NULL) - t1 > 60) \

break; \

errno = EINTR; \

}

#else #define OS2_EAGAIN_RETRY_INIT #define OS2_EAGAIN_RETRY_CHECK #endif

comment:5 by Herwig Bauernfeind, 16 years ago

This Ticket is closely related to Ticket #69

comment:6 by Silvan Scherrer, 16 years ago

Resolution: fixed
Status: newclosed

Changeset http://svn.netlabs.org/samba/changeset/170 fixes this issue.

comment:7 by Herwig Bauernfeind, 15 years ago

Version: 3.0.31
Note: See TracTickets for help on using tickets.