From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60204) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aiHhG-0002He-HQ for qemu-devel@nongnu.org; Tue, 22 Mar 2016 04:29:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aiHhC-0003GO-GS for qemu-devel@nongnu.org; Tue, 22 Mar 2016 04:29:50 -0400 Received: from mail-wm0-x236.google.com ([2a00:1450:400c:c09::236]:37793) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aiHhC-0003Fc-8A for qemu-devel@nongnu.org; Tue, 22 Mar 2016 04:29:46 -0400 Received: by mail-wm0-x236.google.com with SMTP id p65so152274019wmp.0 for ; Tue, 22 Mar 2016 01:29:46 -0700 (PDT) Sender: Paolo Bonzini References: <1458317932-1875-1-git-send-email-alex.bennee@linaro.org> <1458317932-1875-2-git-send-email-alex.bennee@linaro.org> <20160321215039.GA2466@flamenco> <20160321235950.GA9356@flamenco> From: Paolo Bonzini Message-ID: <56F10276.8090109@redhat.com> Date: Tue, 22 Mar 2016 09:29:42 +0100 MIME-Version: 1.0 In-Reply-To: <20160321235950.GA9356@flamenco> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [RFC v1 01/11] tcg: move tb_find_fast outside the tb_lock critical section List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Emilio G. Cota" , Peter Maydell Cc: mttcg@listserver.greensocs.com, Peter Crosthwaite , Mark Burton , QEMU Developers , Alvise Rigo , Sergey Fedorov , Richard Henderson , =?UTF-8?Q?Alex_Benn=c3=a9e?= , =?UTF-8?Q?Andreas_F=c3=a4rber?= , =?UTF-8?B?S09OUkFEIEZyw6lkw6lyaWM=?= On 22/03/2016 00:59, Emilio G. Cota wrote: > Good point. Most of my tests have been on x86-on-x86, and the > difference there (for many CPU-intensive benchmarks such as SPEC) was > negligible. > > Just tested the current master booting Alex' debian ARM image, without > LRU, and I see a 20% increase in boot time. > > I'll add per-bucket locks to keep the same behaviour without hurting > scalability. You probably should skip the MRU move if the TB is not within the first N items of the list (e.g. N=4). Then you take the lock much less. Paolo