From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-vs1-f68.google.com (mail-vs1-f68.google.com [209.85.217.68]) by dpdk.org (Postfix) with ESMTP id 59DD24C93 for ; Wed, 30 Jan 2019 09:31:03 +0100 (CET) Received: by mail-vs1-f68.google.com with SMTP id p74so13771860vsc.0 for ; Wed, 30 Jan 2019 00:31:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=imvisiontech-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=fKCpN5oZ+40V2ZYEm01CKO4utq4zwrxcQ6di6LD/v7o=; b=KpbGhM7EkeMzUsGgoEozvhO0+RYLNVF+VL9evgT6Anh9KBR8XLe6Z3qCk1cqgAlb1E 2TQLrf94uf+J+lCpPJycNDq/X9Hv8r5XRu9QkXRp/HSDW7lCwA2TzGr9sAYF2D/CN0Tu 9Avb5uSJ1VAcGBPl/2X3fmr0LHp090HBM4DP4SbeEaZXr4I4tKZpJNieeFk0z4FD8lrs 3MBkoaKkXT1VeFLawSKHxLXB8vqOqPnDcxFd8+mbQpBt82NuIFPkB3tuIqicKhsjBwWe 8c9y7FRqDscItYvK+SAyOn1WVA5DM+fXRobWcgZLId3MkYrorT/yIvzwx8PPehTL/1cx 4O7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=fKCpN5oZ+40V2ZYEm01CKO4utq4zwrxcQ6di6LD/v7o=; b=CJ6ejaCGlJZni4xHLok6HIQ8VdYg9MHQsGHec+eTBUaavkN8YgfTl0WUUUvHLGJkK1 U3tIEUfCaVamkB9qWk4SX/pqKZE3ByqloskwzZoadENm7ncS9yaSCQk50LSGTGyTpXiI sjcUO5E73WLP58LD3rOyhwPBDFi6LAoPvRNqRv/CKHONRrDWfJ16o1A8kLij+hfLmWsI MlCwyNrpDFcbDf5LWI5WZKqtZsgnORsjgYnNfmeCoIjLxbSHsAL9rYLAVoQv60L7ruoQ 9BBZbEAeiWmnMwNnAOtOM6lPJ8gOIkUTAN99nJth8izVKXbG7WGUlvo5IINshW2DEQAK DV+A== X-Gm-Message-State: AJcUukdm1uCEN5tM+1QVlvdycLGbbCbhPMl3knQUTzWleOb8gzLbxwtu NaPb2nSF1i2ymC0nG30PSzkdJykWz4PBOMmMiTZwcQ== X-Google-Smtp-Source: ALg8bN44/8cSkSiNTRWy/aqam++ndzkj4Xmf0slUnzyI7LTrVXFnNfGjY/db4Tl79kyzVbtEpIhwx4KpMg5l2ab2bvY= X-Received: by 2002:a67:1cc5:: with SMTP id c188mr12702621vsc.195.1548837062649; Wed, 30 Jan 2019 00:31:02 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Shirley Avishour Date: Wed, 30 Jan 2019 10:30:51 +0200 Message-ID: To: Rami Rosen Cc: dev@dpdk.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-dev] running dpdk application on the same machine with other none dpdk application X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jan 2019 08:31:03 -0000 Perhaps by modifying the function set_cpus_allowed() which sets the kernel threads flag with PF_NO_SETAFFINITY. To remark it in the kernel code and to recompile the code. On Wed, Jan 30, 2019 at 10:27 AM Shirley Avishour wrote: > Hi Rami, > This is correct but that is because the default value of the PF_NO_SETAFFINITY > flags does not allow to set affinity to kernel threads from user space. > I was looking for a way to change the kernel and recompile it to be able > to block kernel threads from running on the cpu isolated cores. (same as > user space threads). > > BR, > Shirley. > > > > On Wed, Jan 30, 2019 at 10:18 AM Rami Rosen wrote: > >> Hi Shirley, >> >> > Do you know if the PF_NO_SETAFFINITY flag can help in any way? >> >> AFAIK, this will not work for kernel thread. >> >> For example, with 4.8.13-1 kernel: >> Display all kernel threads with >> ps aux | grep "\["n >> >> (as kernel threads are enclosed in square brackets, [ ]) >> And pick one of them and try: >> taskset -pc 7 521 >> pid 521's current affinity list: 0-15 >> taskset: failed to set pid 521's affinity: Invalid argument >> Regards, >> Rami Rosen >> >>