From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qt0-f177.google.com (mail-qt0-f177.google.com [209.85.216.177]) by dpdk.org (Postfix) with ESMTP id 1092329CA for ; Thu, 3 Nov 2016 10:35:15 +0100 (CET) Received: by mail-qt0-f177.google.com with SMTP id c47so24407407qtc.2 for ; Thu, 03 Nov 2016 02:35:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lightcyber-com.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to:cc; bh=OHTRTYt3vT+t/BK8BPGFS3yozDnuvErLRPu+13XATto=; b=Ptqsv0cyTi6yipmcWc5SBfmsnPJK8BhYqYYIaaUiGNxLjgrXS0IV8Dic2JK+Bg7VDk PaKmOxobs7Suzd7m4nsE8G2P5p6w1+dL4S3S+UwI799nt7Z53gA0deKGX/pkWyrwXYEJ eNEtQIXkTDw9S5DYRMLRxUiwNl0f+w9wYEshJRc/7ZrIgm212VWJXR1PPkSi+iPpKIER eEhzpBDvND2aIpz1vymovVa3GTLtOeE1cEAUzBKxvvykGZmRpcONvn8l4Mlf0syu8Dme 17jLxq4EK92VLAyjM/PhOvgp0+JX7UDPWqyH2rWwNH5ixYLOhr+uDrGbVVyJjwpDwNdY Vknw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=OHTRTYt3vT+t/BK8BPGFS3yozDnuvErLRPu+13XATto=; b=RSjz06OuZQHaPouI53Oue3iOxcthcSDzIiJcaZcnwLWxDGqJV6KHGxnM45Y47sigXC hUhJL+8lZwBpW1jeIrBk3ZJ2iiHlbJekO2E+4ho5+w7pqJIC78TVWqfVy3OyZwNadS58 WyYc5goFCm9xzNs9h97h/ZcYhE0DOQ1AZb34j/wpyj9mxz+YeEamupwFUcwFYDKi7AEp PjrIQ87QhUuzu4t1xjJ7LKkihjo5tTpJ2yj+C0ktsm19UQane4FcVgcqC5hCxiIr2D78 fodHXCHl2K3wpp/bLAAZld26Tj+1UxRHMvLzZyGvmDyo6tldHjD76rmxgTzhS9s9xNKe ZtBw== X-Gm-Message-State: ABUngvfZwpIYk6D6inpqxcV/qBJlVYWGT24jNbK2AGflqZClbsELKoIr9B0p03deWJU03UzV9b0uqz2RzxrUUQ== X-Received: by 10.237.37.149 with SMTP id x21mr6848490qtc.148.1478165715113; Thu, 03 Nov 2016 02:35:15 -0700 (PDT) MIME-Version: 1.0 Received: by 10.55.72.201 with HTTP; Thu, 3 Nov 2016 02:35:14 -0700 (PDT) From: Dror Birkman Date: Thu, 3 Nov 2016 11:35:14 +0200 Message-ID: To: dev@dpdk.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Cc: Nicolas Pernas Maradei , ferruh.yigit@intel.com Subject: [dpdk-dev] PCAP memory leak in freeing jumbo frames 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: Thu, 03 Nov 2016 09:35:16 -0000 Hi, I have a huge memory leak when I release mbufs allocated by eth_pcap_rx_jumbo(). I use rte_mempool_put_bulk() to release the mbufs. To my horror I found out it puts back to the mempool only the head mbuf and not its segments! I know rte_pktmbuf_free() frees the mbuf and all it segments, but afaik it is not thread safe. What is the thread safe way to free mbufs (preferably in bulk) and their segments? TIA, Dror