From owner-freebsd-current@freebsd.org Fri Jan 13 09:19:40 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B8B55CAAA02 for ; Fri, 13 Jan 2017 09:19:40 +0000 (UTC) (envelope-from jakob@alvermark.net) Received: from smtprelay-h22.telenor.se (smtprelay-h22.telenor.se [195.54.99.197]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 722CC14A0; Fri, 13 Jan 2017 09:19:39 +0000 (UTC) (envelope-from jakob@alvermark.net) Received: from ipb3.telenor.se (ipb3.telenor.se [195.54.127.166]) by smtprelay-h22.telenor.se (Postfix) with ESMTP id 2F1262422D; Fri, 13 Jan 2017 09:58:04 +0100 (CET) X-SENDER-IP: [85.229.94.62] X-LISTENER: [smtp.bredband.net] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2CEBwDClXhYED5e5VVdGgEBAQECAQEBAQgBAQEBgz8BAQEBAR+Bb4Z1h06RIw6XKYYiAoIORBABAgEBAQEBAQEGAQEBAQEBAjhFhGoBBSMPASMjEAsOCgICFBICAjkKFAaJGAGwTIIlFYl6AQEBAQEFAQEBASSBC4obhDBkgjiCXgWbLgGBfqBFkTMBgTE2IIFQCoZrPYkbAQEB X-IPAS-Result: A2CEBwDClXhYED5e5VVdGgEBAQECAQEBAQgBAQEBgz8BAQEBAR+Bb4Z1h06RIw6XKYYiAoIORBABAgEBAQEBAQEGAQEBAQEBAjhFhGoBBSMPASMjEAsOCgICFBICAjkKFAaJGAGwTIIlFYl6AQEBAQEFAQEBASSBC4obhDBkgjiCXgWbLgGBfqBFkTMBgTE2IIFQCoZrPYkbAQEB X-IronPort-AV: E=Sophos;i="5.33,221,1477954800"; d="scan'208";a="1554124007" Received: from c-3e5ee555.06-11-73746f31.cust.bredbandsbolaget.se (HELO sigyn.alvermark.net) ([85.229.94.62]) by ipb3.telenor.se with ESMTP; 13 Jan 2017 09:58:05 +0100 Received: from localhost ([127.0.0.1] helo=webmail.alvermark.net) by sigyn.alvermark.net with esmtp (Exim 4.80.1 (FreeBSD)) (envelope-from ) id 1cRxgP-000Od7-Nw; Fri, 13 Jan 2017 09:58:01 +0100 Received: from 193.12.143.142 (SquirrelMail authenticated user alvis) by webmail.alvermark.net with HTTP; Fri, 13 Jan 2017 09:58:01 +0100 (CET) Message-ID: <54232.193.12.143.142.1484297881.squirrel@webmail.alvermark.net> In-Reply-To: <1610370.k87iRho0oa@ralph.baldwin.cx> References: <57236.193.12.143.142.1484240708.squirrel@webmail.alvermark.net> <20170112174211.5nmvpjatg6zap35a@mutt-hardenedbsd> <1610370.k87iRho0oa@ralph.baldwin.cx> Date: Fri, 13 Jan 2017 09:58:01 +0100 (CET) Subject: Re: r311568 makes freerdp very slow From: "Jakob Alvermark" To: "John Baldwin" Cc: freebsd-current@freebsd.org, "Shawn Webb" , "Jakob Alvermark" User-Agent: SquirrelMail/1.5.1 MIME-Version: 1.0 Content-Type: text/plain;charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Jan 2017 09:19:40 -0000 On Thu, January 12, 2017 19:26, John Baldwin wrote: > On Thursday, January 12, 2017 12:42:11 PM Shawn Webb wrote: > >> On Thu, Jan 12, 2017 at 06:05:08PM +0100, Jakob Alvermark wrote: >> >>> Hi, >>> >>> >>> r311568 Set MORETOCOME for AIO write requests on a socket. >>> >>> After this commit freerdp is very slow. >>> >>> >>> Before the password prompt would appear immediately when connecting >>> to a server. Now it takes 5-10 seconds. After entering the password, >>> another 5-10 seconds until I am connected. >>> Once connected, there is a considerable lag. >>> >>> >>> What could be the problem? >>> >> >> I don't know what the problem is, but I am seeing the same symptom. >> > > Can you get a ktrace of the freerdp process during this? The commit > should only be setting MORETOCOME if multiple aio_write requests are queued > to the same socket (so that TCP can batch them into a single packet). > However, it should not affect an application just calling > aio_write() on a socket once. > > -- > John Baldwin Hi John, I got the ktrace, what do I do with it? Thanks, Jakob