From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io0-f178.google.com (mail-io0-f178.google.com [209.85.223.178]) by dpdk.org (Postfix) with ESMTP id 798552EDA for ; Wed, 10 Feb 2016 08:43:20 +0100 (CET) Received: by mail-io0-f178.google.com with SMTP id d63so13209420ioj.2 for ; Tue, 09 Feb 2016 23:43:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=ejtBoSNYYRlhvI8tzw5BCSzJ3TNfX4rc2Jp2ZrPOkHw=; b=kO0YlNUIODCG1qk+UOyzS7cpF1ZJwnjyTtT71xCzRDClcau3VuJrXXnIby3AkDbthJ OIO4h3yuEpwhY1Q5xY4q52ERWM8C5R4hAZZN2lTw6jsHH3tYFRa7pCathGv4CZieLJh8 j7sDCf2pQK5zYso7Q0WJpxws87nVwFWyaJR5JvMas/yvEGriOc+p/Em+I8EpkXULZify YXZJeYzcYT+616DEetVOvXPWc2CFWnZG4mQbLK/fcVSBeOR10IaqTJb4GSLoD35gUdkc QSNkwC4aM80FND2Ke2/ay1XOyoQ/o6OFe7dl9aCzFNKW47JyojG2XWvZs8d9QzVBs3u8 5jlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=ejtBoSNYYRlhvI8tzw5BCSzJ3TNfX4rc2Jp2ZrPOkHw=; b=g5YCqsDTgbwSyDFZzU6EgNNbvfTkwtSgBcn7IeD67QLqV/m4luoNGizEIHVcJeriH8 Vq5wP/sOl2nptaNVd/vIBRabWCwsKeB65xjn/UGH0GOjSCZa32E0QHWYWj74Z/xxxIxR j5eknt0pC6adR5UbOKsxLB7qgRCMMO0G6uibd9kL77wHYXlUrK0sB3x7nnCmOxr65QSu JKG7ehj+6HRLLIjOXleKON2R4s6XiKnPY23g8U1K7oWJ2fhZPDjNCwOyA44B3HNDwFJj XCH+TXcD7LO7c8Ec7Hp7wPVDG5Gkpga5Xx2RZ5HIO/2vf+z84w7xDw3X9DaoCoSmXS+6 s9ig== X-Gm-Message-State: AG10YOReVC9/h7q6jT36T2ctfmHzmE1mRozzfXOUvdgyoEQYRvXoDCvgUnm2B0uovwBI2dVV2gghqID1biC1xg== MIME-Version: 1.0 X-Received: by 10.107.138.203 with SMTP id c72mr37503037ioj.107.1455090199908; Tue, 09 Feb 2016 23:43:19 -0800 (PST) Received: by 10.79.102.4 with HTTP; Tue, 9 Feb 2016 23:43:19 -0800 (PST) Date: Tue, 9 Feb 2016 23:43:19 -0800 Message-ID: From: Saravana Kumar To: dev@dpdk.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] Regarding mbuf allocation/free in secondary process X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Feb 2016 07:43:20 -0000 Hi DPDK community, I'd like to have DPDK NIC IO operations in (primary) process and execution logic in (secondary) processes. Primary process pushes NIC Rx mbufs to Secondary process through S/W ring Seconary process allocates mbuf for Tx path and pushes down to Primary process for NIC Tx I have few doubts here: 1. If Secondary process dies because of SIGKILL then how can the mbufs allocated in Secondary process can be freed. If it is normal signals like SIGINT/SIGTERM then we can be catch those and free in those respective signal handlers 2. Secondary process needs to poll on the S/W ring. This can consume 100% cpu. Is there a way to avoid polling in secondary process for Rx path Thanks Sara