Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753344AbbGPO7Y (ORCPT ); Thu, 16 Jul 2015 10:59:24 -0400 Received: from mail-yk0-f170.google.com ([209.85.160.170]:33723 "EHLO mail-yk0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751697AbbGPO7W (ORCPT ); Thu, 16 Jul 2015 10:59:22 -0400 Date: Thu, 16 Jul 2015 10:59:19 -0400 From: Tejun Heo To: Jens Axboe Cc: Ming Lei , linux-kernel@vger.kernel.org, Mike Snitzer Subject: Re: [PATCH 0/4] block: account io: kill atomic operations Message-ID: <20150716145919.GV15934@mtj.duckdns.org> References: <1437016607-375-1-git-send-email-tom.leiming@gmail.com> <55A7C449.4030406@kernel.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <55A7C449.4030406@kernel.dk> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 866 Lines: 20 On Thu, Jul 16, 2015 at 08:48:41AM -0600, Jens Axboe wrote: > I've played with this before, but always ran into the hurdle of making > part_in_flight() too expensive ended up hurting results in the end. Making > the inc/dec parts of accounting percpu is a no-brainer, unfortunately the > summing then becomes pretty expensive. I'll run this through some testing > and see what kind of results I get. The only place which could be a problem is part_round_stats() and we can do that *way* lazier. I don't think we're using that internally. Why are we even invoking it from IO issue / completion path? Thanks. -- tejun -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/