From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-vk1-f196.google.com (mail-vk1-f196.google.com [209.85.221.196]) by dpdk.org (Postfix) with ESMTP id 7999F1B1EA for ; Wed, 30 Jan 2019 09:27:43 +0100 (CET) Received: by mail-vk1-f196.google.com with SMTP id y14so5158053vky.9 for ; Wed, 30 Jan 2019 00:27:43 -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=RPga/hwgLWG+qvwkzPu6vkORlgXHOQi5Uc414KPRJm4=; b=lWCnR58jbrdlHvfJnrzE2rFYV3DWlzc3ojlkd8f2YDEHXQMeBXc27v7FgOwFYsjqjr tSMtfNZo9s8wYaQ9v6usC+HMKw+VVeH82yG93WX6/NwKaL6WSCoW16nnleJdb3ZF4eWD yVmvzt9BQxVq/SvGv8ObAw1YcwFARXNAnlcuFS3jkxI+nya4ZVlun8JnWV/T0QyXWTtS wdK+sNGvRTj3lGvw+jqged5s7Ml3Yv9WEcZneL9SLpPZy1Eh1jRxaWq5+R5g99LHUyWQ IcPxIuiQUnHm6TQRjrld2S2BxFReu/QFgKNEHPcPPaJyowcE78QflfoFhr4Mlcc4nEa/ wriw== 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=RPga/hwgLWG+qvwkzPu6vkORlgXHOQi5Uc414KPRJm4=; b=kfCsBtMjyRGQpINxRLE0yqD3n6jhzOqAP9G3HLluiw01NZAQitW0+NfTQKLEno+Min K7ah08fdDSPhPtWwnhBebZfoKT9SG0g4lc/RSX/Wx3/jHo1SAyMQbPcwcwEA1NF29wG5 agMfzTVLTaRsBjstOJ2k2Wd66g/zTa7qwrFhcLzXJ4pr4KhG28BUWJaRRHiIo4HMLxTc IUzfXtzrYgi1UIjUNdYXPGrqfgRCCLFcln2Gb61eZlsngr0j6EaKfZ9CcnilsDg01hOi dbxVetf/7JE2uzgQuLcFfiKW2Kt8uj6c5OIV+kuZ0+MjZw885b012uHOZji1S0+lbXlY Ylyg== X-Gm-Message-State: AJcUukdh2qI1hgfnFQ6IKp674sfdvCY5lRSgtM44RjdqK2vGrynoFEX4 VpV65QnnZrK1eTgoYkLoy8Ktei8bNmqZ9AzWfwr5sg== X-Google-Smtp-Source: ALg8bN55+K00CQ9acEOoHe/nQdnqW9lwDw88xBOvpZoRC5CKXhrHzM5vPGMBGPSboSE6JyyCN1JaGSQ4bIz8VxTRf7o= X-Received: by 2002:a1f:298e:: with SMTP id p136mr12221647vkp.40.1548836862739; Wed, 30 Jan 2019 00:27:42 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Shirley Avishour Date: Wed, 30 Jan 2019 10:27:31 +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:27:43 -0000 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 > >