From owner-svn-src-head@freebsd.org Mon Aug 29 18:11:34 2016 Return-Path: Delivered-To: svn-src-head@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 60455BC7359; Mon, 29 Aug 2016 18:11:34 +0000 (UTC) (envelope-from slw@zxy.spb.ru) Received: from zxy.spb.ru (zxy.spb.ru [195.70.199.98]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 19DC47E5; Mon, 29 Aug 2016 18:11:34 +0000 (UTC) (envelope-from slw@zxy.spb.ru) Received: from slw by zxy.spb.ru with local (Exim 4.86 (FreeBSD)) (envelope-from ) id 1beR1w-0008y3-7K; Mon, 29 Aug 2016 21:11:32 +0300 Date: Mon, 29 Aug 2016 21:11:32 +0300 From: Slawa Olhovchenkov To: Bruce Evans Cc: Bruce Evans , src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r305004 - in head/sys: amd64/amd64 amd64/include i386/i386 Message-ID: <20160829181132.GR88122@zxy.spb.ru> References: <201608291307.u7TD7L6H025649@repo.freebsd.org> <20160829173726.GX22212@zxy.spb.ru> <20160830034632.A3851@besplex.bde.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160830034632.A3851@besplex.bde.org> User-Agent: Mutt/1.5.24 (2015-08-30) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: slw@zxy.spb.ru X-SA-Exim-Scanned: No (on zxy.spb.ru); SAEximRunCond expanded to false X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Aug 2016 18:11:34 -0000 On Tue, Aug 30, 2016 at 03:58:54AM +1000, Bruce Evans wrote: > On Mon, 29 Aug 2016, Slawa Olhovchenkov wrote: > > > On Mon, Aug 29, 2016 at 01:07:21PM +0000, Bruce Evans wrote: > >> ... > >> Log: > >> On amd64, declare sse2_pagezero() and start using it again, but only > >> for zeroing pages in idle where nontemporal writes are clearly best. > >> This is almost a no-op since zeroing in idle works does nothing good > >> and is off by default. Fix END() statement forgotten in previous > >> commit. > >> ... > > > > Do you think about using nontemporal writes for copying from user > > space to kernel space? In much cases this copy result don't need any parsing > > anf just go to DMA, eliminate cache use. > > I once tried that (for copyin/out, without DMA). It was just a small > pessimization. For small data, it increases setup overheads, and > large data isn't common enough to matter. DMA can be even slower > since it increases latency. First there is latency to set it up, > and May be I am not very clear: not using DMA for tranfer. Using nontemporal for data passed to devices DMA buffers. > then you often don't want it to touch the cache since that gives more > latency for cache misses. No, I am talk not about total replace such copy, only on per-case bases. I.e. introduce new function and use it in special cases (for example: tcp output).