Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2992794ybt; Mon, 29 Jun 2020 12:19:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy3TkVZZ26akwy8lv6is89wfnQA0fxcpYF1ljBYnxH4DGnou/OQpa36QTLKuYvaPieoI8u9 X-Received: by 2002:a17:906:1245:: with SMTP id u5mr14972582eja.286.1593458373313; Mon, 29 Jun 2020 12:19:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593458373; cv=none; d=google.com; s=arc-20160816; b=jFvAoUZUa/aFYDbXZteubZdv5no/MnHyeG8qFQOA4NKzh0WPHHQGAClMyhzCp3dYGT Kh6dy4/nF79Tqkoqawy00zbj14yZ4aKP2/9w6SSw6TR7jnTwYFCgrGrS7saLM49k6qHA TY/ua25ssMEk5ZdtuW9rPXFeoGztH/k5UpYaoUCpTB1MUkqOlsqJRx7r2ZJ8wiGKrZa/ vkHunw7kYUHFSEL5M2TVB6f53mK03P1VIRhWDlxOYdPwEXSJpXuBGdS9K5EKF5d10ry+ NPa6FvWVZY2ToibqdkfGgUbRlGDDWcgMamb7PKncnI0zvEnzDHDJ783vOxb6CQ0uDxoC okZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=oCU9JjYn8E5EJ3tgtkZ8fJQcI1jYdB8KZDv2+twV1/g=; b=sPGJ116QR1tc+daBSsf5BAYcB72d4GlDfe9v+k8o5+VqMGC2+/BU2ujIbsLkukylBf FnVmeoxrrUDKtmRmov97c2sZiZQia1+r3Jn8eKcI6A21Mnkjzc6miEdFcaL1tfNSPTmj 0glQ32CdHj/OCti2YKQbabTbu591zmb//76XeFQcW3ztnYKFrv+ZC6/D2Xw8z5grUfkj dPQTiymwKQehRCs2bJ/IWOMm0J/gstRmYXtqBHux3VPEM+YF3GUS9EaG4vtY2e5lQOu7 ZM7Neced2FGN1JQtd2Elf7tJxlFscuDJrcrH6Mcmr/dsaebVMq/0pGWULqBA9FFRp9F0 52+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=A9TU9zrr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n8si245091edi.222.2020.06.29.12.19.10; Mon, 29 Jun 2020 12:19:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=A9TU9zrr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731968AbgF2TRK (ORCPT + 99 others); Mon, 29 Jun 2020 15:17:10 -0400 Received: from us-smtp-2.mimecast.com ([205.139.110.61]:55572 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1731963AbgF2TRJ (ORCPT ); Mon, 29 Jun 2020 15:17:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1593458228; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=oCU9JjYn8E5EJ3tgtkZ8fJQcI1jYdB8KZDv2+twV1/g=; b=A9TU9zrrWi35e6LxvVRWC3ssuzs97B2pnNvjC9jSNTDhQEBT9f1+XUZBVBY+pT4wv2TJz0 nDd9TUFapZWDpwXTSOtU3jc5nu8RU5GUfJq5dw6Q00NNVSePLwZPSXMTBuDc91BabDWL7y KuQJGaJiUKHGRXov1guNRhxcMQP4/2Y= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-230-UuU0pLxkNTqGodv5frl3IQ-1; Mon, 29 Jun 2020 15:17:04 -0400 X-MC-Unique: UuU0pLxkNTqGodv5frl3IQ-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id F09FE91362B; Mon, 29 Jun 2020 19:17:02 +0000 (UTC) Received: from krava (unknown [10.40.195.81]) by smtp.corp.redhat.com (Postfix) with SMTP id 261F71C4; Mon, 29 Jun 2020 19:17:00 +0000 (UTC) Date: Mon, 29 Jun 2020 21:17:00 +0200 From: Jiri Olsa To: Alexey Budankov Cc: Arnaldo Carvalho de Melo , Namhyung Kim , Alexander Shishkin , Peter Zijlstra , Ingo Molnar , Andi Kleen , linux-kernel Subject: Re: [PATCH v8 01/13] tools/libperf: avoid moving of fds at fdarray__filter() call Message-ID: <20200629191700.GC3031756@krava> References: <0781a077-aa82-5b4a-273e-c17372a72b93@linux.intel.com> <3d36dc7a-4249-096c-7554-80e6d290eac5@linux.intel.com> <20200625171405.GL2719003@krava> <688910f3-289e-d63e-79e3-0a17a6df0e9e@linux.intel.com> <20200626093745.GM2719003@krava> <6582201a-9570-709f-f6e9-5a644296f49d@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 29, 2020 at 06:11:52PM +0300, Alexey Budankov wrote: SNIP > >> > >> I'm confused, are you talking about file descriptors limit now? > >> this wont be affected by epoll change.. what do I miss? > > > > Currently there is already uname -n limit on the amount of open file descriptors > > and Perf tool process is affected by that limit. > > > > Moving to epoll() will impose one more max_user_watches limit and that can additionally > > confine Perf applicability even though default value on some machines currently > > is high enough. > > Prior making v9 I would prefer to agree on some design to be implemented in order to > avoid guessing and redundant reiterating. > > Options that I see as good balanced ones are 1) or 5), + non screwing of fds to fix > staleness of pos(=fdarray__add()). > > Are there any thoughts so far? let's try it and discuss over the code jirka