Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2673794imm; Mon, 24 Sep 2018 08:10:59 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbHh2mwWjuFTdbAU5iL+sGhLS98whfJ2ju2q1XgSgvJUJkWd/aX6c+C0FjM0nuaT72O2Xrq X-Received: by 2002:a62:586:: with SMTP id 128-v6mr10830390pff.80.1537801859656; Mon, 24 Sep 2018 08:10:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537801859; cv=none; d=google.com; s=arc-20160816; b=Q0JFxdi1dhSzlG7Qclh3NVyLXFZ5MnXy1jS5zAOrwQgtFy0F1y2NgvXmB2PuTyWI50 hjznPIfrs35e704nF5SZLlFHXe2mTM6II7Gyq/ZMVZ1WShK7gdb4n1sGZV+GzQ9U0giP 9oPuTI8ExYXe6E/dSCHjGnuo1xD/8Kv9Mlp9PS+woPrjGvCPMLt+/WMFt1nhbQIasgAJ fpFYicSNTcZ1YovXVJVikB5Dm7+dlPBCMqTaIdBwVBidnPYDfNK8WacHj7s/DMfybbUK yz84KqGaUW2uZCEVFExb206GJ7H9iPZCYI1n3S2G2ynITl+zRkxBR4V0jQf6Q1p7oCOx BDFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature; bh=KCZtKkAnBWhjGuHz0Qqtj110cu8mPWHG0oxrWOK5/q4=; b=dtphLrOIbjg5v+jMtmy45/4CDTags9L9JXO5W61V0Z1sOKe/5IJg7SXi8n0LRjdKIe ehqy/ASbXljd64CCGqWe2UEfr5awgguNr9g6BGa3PE+ctZWJelritFzozkdV8jCCcQJL 30e8QPTgg/EpPVLyHxpR/rIWm7MSMexsIvrd+2/x1Ag7ovtXwoDxzOX+qY6T23+v/MTW pjxwcoTMM7UmSxir8sr+0huucq5ddD2CCnCzYetRBwnPvGplV0NttwrzQkQJ/Ue0swYM cLwMPpoSs6sGYWNXpRK+Iag0DzfNpZ0oy1cFzswehhyPj05WXUMFbHrfvJ4aJjGqHlnh TFFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b=VZs6FsOI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d12-v6si5985037plo.210.2018.09.24.08.10.14; Mon, 24 Sep 2018 08:10:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b=VZs6FsOI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731906AbeIXVGv (ORCPT + 99 others); Mon, 24 Sep 2018 17:06:51 -0400 Received: from mail-io1-f68.google.com ([209.85.166.68]:37792 "EHLO mail-io1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730111AbeIXVGt (ORCPT ); Mon, 24 Sep 2018 17:06:49 -0400 Received: by mail-io1-f68.google.com with SMTP id v14-v6so17861593iob.4 for ; Mon, 24 Sep 2018 08:04:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=szeredi.hu; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=KCZtKkAnBWhjGuHz0Qqtj110cu8mPWHG0oxrWOK5/q4=; b=VZs6FsOI2EREWJvZIVz6ylNa4LUHFP9d/0m4tjJzpN7x/HgiwAWnPlasNzsI9ho2m4 k8N0+zimIxAKBXVBgGyL+odfKT3ndbsk4QdWMZ2shgudas5uqUR50aZJUkrMkiTwBA3M mg+swulEL8gS8ALJqZ8Nx/Rz9CK6IP9dpOFMo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=KCZtKkAnBWhjGuHz0Qqtj110cu8mPWHG0oxrWOK5/q4=; b=G1MXVRAZ5vhQRaxNbR2RF+Op2TGnF6/hQ81JZADWiKrBBBQ2Gp7fuHXHDc1qClWqJy U/WozRN9uJgPjdemA4l2akUcDF0hvTBKoZUc1jFFRKHHEpyXoakkqSR/QlPVTkii+q1X HEC1ix/jbprYdFMdpG/6gOwK2KKrrvGtQj7nD8thFyukJZ8MDysnVo2osz5XUaaH1wgG jjr3NASJKgQtmlyTMnqEffMOG8oxso43v746aG4cZM23ztMPnjcHTwaAMbHMVqJe1AaC SQ6MeOC3AjjyebaekAHFx9/tNX62D3k8MjAtyaE0GANk7cBTzGcNyh5RxVU7Ny9kqfnb BwZw== X-Gm-Message-State: ABuFfojqeV1PET/h1CqB3KvlSWs0xq9VqSoAZPAfHta0SGSkt9ZenswW Q2wj9R3rP3mlIhOmGgz+kHW3nNZBlckzZBZIW7RFTg== X-Received: by 2002:a6b:1e91:: with SMTP id e139-v6mr8429141ioe.246.1537801454424; Mon, 24 Sep 2018 08:04:14 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a6b:bf41:0:0:0:0:0 with HTTP; Mon, 24 Sep 2018 08:04:13 -0700 (PDT) X-Originating-IP: [212.96.48.140] In-Reply-To: <8222c235-ff07-b16b-3389-0b9780145abd@virtuozzo.com> References: <153666041612.19117.14667042009014596105.stgit@localhost.localdomain> <8222c235-ff07-b16b-3389-0b9780145abd@virtuozzo.com> From: Miklos Szeredi Date: Mon, 24 Sep 2018 17:04:13 +0200 Message-ID: Subject: Re: [PATCH 0/3] fuse: Solve request_find() bottleneck To: Kirill Tkhai Cc: kuznet@virtuozzo.com, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 24, 2018 at 2:08 PM, Kirill Tkhai wrote: > 2 weeks passed, so ping. > > Miklos, any reaction on this? > > Thanks, > Kirill > > On 11.09.2018 13:11, Kirill Tkhai wrote: >> Hi, >> >> We noticed the performance bottle neck in FUSE running our >> Virtuozzo storage over rdma. On some types of workload >> we observe 20% of time spent in request_find() in profiler. >> This function is iterating over long list of requests, and it >> scales bad. >> >> The patch introduces hash table to reduce the number >> of iterations, we do in this function. Also, algorithm >> of generating IDs for interrupt requests is changed, >> simplified request_find() function and killed >> fuse_req::intr_unique field. Concept looks good. Will review details... Thanks, Miklos