[Sstp-client-devel] Performance problems on Mac OS-X
Brought to you by:
eivnaes
From: Eivind N. <ei...@ya...> - 2012-05-25 05:16:56
|
Guys, I have one problem that I like some help with. Apparently, if I run sstp-client on a Mac OS-X 10.7.3 the performance of the SSTP connection is pretty bad. Using Xcode and Instruments, I am able to detect the function utf8_encodelen being one of the culprits consuming lots of time when writing data to pppd over a pseudo terminal socket. I have tried to setup a termios structure and disable UTF encoding, and/or making the socket "raw" by setting cfmakeraw(termios *p). Not any of these improved the performance. Is there anyone out there that can post this to Apple Support forum, or have a clue on how to improve this (without claiming a re-design)? Regards, - Eivind Running TimeSelfSymbol Name 25245.0ms 100.0%0.0 Main Thread 25180.0ms 99.7%0.0 start 25180.0ms 99.7%0.0 main 25137.0ms 99.5%132.0 event_base_loop 19765.0ms 78.2%22.0 sstp_recv_cont 12034.0ms 47.6%12.0 sstp_state_recv 11933.0ms 47.2%15.0 sstp_pppd_send 10607.0ms 42.0%24.0 write 10508.0ms 41.6%11.0 unix_syscall64 10479.0ms 41.5%7.0 write_nocancel 10447.0ms 41.3%4.0 writev 10426.0ms 41.2%18.0 utf8_encodelen |