From owner-freebsd-hackers@freebsd.org Wed Feb 14 08:13:23 2018 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 64D63F0AC02 for ; Wed, 14 Feb 2018 08:13:23 +0000 (UTC) (envelope-from cse.cem@gmail.com) Received: from mail-it0-f41.google.com (mail-it0-f41.google.com [209.85.214.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id EBA366A331 for ; Wed, 14 Feb 2018 08:13:22 +0000 (UTC) (envelope-from cse.cem@gmail.com) Received: by mail-it0-f41.google.com with SMTP id d10so8118237itj.2 for ; Wed, 14 Feb 2018 00:13:22 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:reply-to:in-reply-to:references :from:date:message-id:subject:to:cc; bh=1ZhLuRzMpnBo1T9q5/WfIbZDvxAT4DAdHjz/A5EIVr4=; b=eA1vMyBcle+ahAaw5PMLc7+TknEvA8m9zR9kqwK1kctm+/KSVd6ZJrSeKHLmN/KTXE 9uX6xnmWXXLwZ3LweBsNAh8OQ+RRB8f200x4RP7yLo3YB//M0CcdG1AQbpxkd5bF3nrQ DKXfqPF84TE294fcFLVnpoZyWUec3DA0IFRJLkJmppTHPm1UCshoEumFGDHVzku6rqbr /5D1PX7igGdoxDH0oZZ+tS4NULF1TaBuusKEAVm4nbD6gX3q7g2xuocPQ14utUDKs9mY JdtZjlBhaTRDD6vljyGM7b8CS/UPfbzjtEI34LW3T+bLn8fPNtJzCkNyntAvrqshud/i 0/cw== X-Gm-Message-State: APf1xPA+iDdyXdsLS32z2koOWHEK0RNzeoL4inyHVMXd188CuKpfvov2 SWx/sDYLK/RMRfI+JW8p+XPt6WSX X-Google-Smtp-Source: AH8x224tflOH4Qmr8Ov1RsBDb0MklqMrtjX3+oPqYfLwQ+C4Ogyfso8XYRv/Rxrj+VYfn6ORBIGl3A== X-Received: by 10.36.58.6 with SMTP id m6mr4871077itm.138.1518595612279; Wed, 14 Feb 2018 00:06:52 -0800 (PST) Received: from mail-io0-f172.google.com (mail-io0-f172.google.com. [209.85.223.172]) by smtp.gmail.com with ESMTPSA id d186sm12398467itd.22.2018.02.14.00.06.52 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 Feb 2018 00:06:52 -0800 (PST) Received: by mail-io0-f172.google.com with SMTP id t22so24261920ioa.7 for ; Wed, 14 Feb 2018 00:06:52 -0800 (PST) X-Received: by 10.107.35.84 with SMTP id j81mr4344468ioj.226.1518595611963; Wed, 14 Feb 2018 00:06:51 -0800 (PST) MIME-Version: 1.0 Reply-To: cem@freebsd.org Received: by 10.2.30.149 with HTTP; Wed, 14 Feb 2018 00:06:51 -0800 (PST) In-Reply-To: References: From: Conrad Meyer Date: Wed, 14 Feb 2018 00:06:51 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: select call in devd To: Gleb Popov <6yearold@gmail.com> Cc: FreeBSD Hackers Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Feb 2018 08:13:23 -0000 On Tue, Feb 13, 2018 at 11:56 PM, Gleb Popov <6yearold@gmail.com> wrote: > Haven't looked at code at all, but why is it using select and not > kqueue/kevent? Because select/poll are a lot easier to use for one-off monitoring of a single descriptor, and devd isn't trying to scale to 10k descriptors here.