From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id E4966A04B5 for ; Thu, 17 Sep 2020 05:42:36 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 677D51D449; Thu, 17 Sep 2020 05:42:36 +0200 (CEST) Received: from mx0a-00000d04.pphosted.com (mx0a-00000d04.pphosted.com [148.163.149.245]) by dpdk.org (Postfix) with ESMTP id 729DC1D444 for ; Thu, 17 Sep 2020 05:42:35 +0200 (CEST) Received: from pps.filterd (m0102887.ppops.net [127.0.0.1]) by mx0a-00000d04.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 08H3UUHJ012584 for ; Wed, 16 Sep 2020 20:42:34 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=stanford.edu; h=mime-version : from : date : message-id : subject : to : content-type; s=pps05272020; bh=igPrbKX/aKqoDdadLAEtec25Yx1KXfvVIssOCBq5kHE=; b=FgWtaLfAO9QFvjKMqhiqDZfAb3ESlNkBzWkKUcEvE+cKAQJIDttGb57Umx0WH4Nv9GJN U2hWEqweL287875+IV/TG9gL1F6uFM7eDZAp8iUH45WxT2ZqbER4ziwSIb8z5VtefAeq lNf0Tesd0w8fHP+3nhQ9YfcAVnmJHWHKHPIQBJBc57jzyWO2a6rXskE8RdtsV2PSCHXF Rw8Sqi8VHT57H0uTNsdmcILg9FLItHmBExWQPr7VcsHvksi+qWeiT5gBNlwtz0LVxB9B hfswPAh4OSDfWoyL3HSmp9IiMpa93FiLsBZoi3IBqmtWSL88WVZy9yCtzLPDb3ed42wF Dw== Received: from mx0a-00000d03.pphosted.com (mx0a-00000d03.pphosted.com [148.163.149.244]) by mx0a-00000d04.pphosted.com with ESMTP id 33k5r2r1er-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 16 Sep 2020 20:42:34 -0700 Received: from pps.filterd (m0102881.ppops.net [127.0.0.1]) by mx0a-00000d03.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 08H3XIRb022152 for ; Wed, 16 Sep 2020 20:42:34 -0700 Received: from mx0b-00000d06.pphosted.com (mx0b-00000d06.pphosted.com [148.163.139.119]) by mx0a-00000d03.pphosted.com with ESMTP id 33k5qr010j-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 16 Sep 2020 20:42:34 -0700 Received: from pps.filterd (m0167939.ppops.net [127.0.0.1]) by mx0b-00000d06.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 08H3fW6F023520 for ; Wed, 16 Sep 2020 20:42:33 -0700 Received: from smtp.stanford.edu (smtp6.stanford.edu [171.67.219.73]) by mx0b-00000d06.pphosted.com with ESMTP id 33k5pma3j6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 16 Sep 2020 20:42:33 -0700 Received: from mail-oi1-f177.google.com (mail-oi1-f177.google.com [209.85.167.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: gerryw) by smtp.stanford.edu (Postfix) with ESMTPSA id 324E881FC7 for ; Wed, 16 Sep 2020 20:42:32 -0700 (PDT) Received: by mail-oi1-f177.google.com with SMTP id t76so860454oif.7 for ; Wed, 16 Sep 2020 20:42:32 -0700 (PDT) X-Gm-Message-State: AOAM531Rk7uFkexFndfZ+JmfbyPXmrvbdeiDJyN8E1VkVhgfNscJIIO7 /uh2zR/Y3u7upxMoLdJRheYthLqgxEyzyMonYGU= X-Google-Smtp-Source: ABdhPJz/fNYOfVK2YC5XlCgrVibW6KRlAwOvKFp5jsbPY5/zG43xKDsGRyywcvHdgJl+mDlnaYMT+e8zmQ+5DPSZHIE= X-Received: by 2002:a05:6808:5ca:: with SMTP id d10mr5181919oij.27.1600314151495; Wed, 16 Sep 2020 20:42:31 -0700 (PDT) MIME-Version: 1.0 From: Gerry Wan Date: Wed, 16 Sep 2020 20:42:20 -0700 X-Gmail-Original-Message-ID: Message-ID: To: users@dpdk.org x-proofpoint-stanford-dir: outbound X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235, 18.0.687 definitions=2020-09-17_02:2020-09-16, 2020-09-17 signatures=0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235, 18.0.687 definitions=2020-09-17_02:2020-09-16, 2020-09-17 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=3 bulkscore=0 mlxlogscore=774 priorityscore=1501 impostorscore=0 mlxscore=0 phishscore=0 spamscore=0 clxscore=1011 malwarescore=0 lowpriorityscore=0 adultscore=100 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2009170023 Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-users] rte_eth_stats counters X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org Sender: "users" Hi, I'm testing out the maximum RX throughput my application can handle and am using rte_eth_stats_get() to measure the point at which RX packets start getting dropped. I have a traffic generator directly connected to my RX port. I've noticed that imissed is the number of packets that are dropped due to hardware queue fulls, while ipackets is the number of packets successfully received and agrees with the total number of packets retrieved from calls to rte_eth_rx_burst(). I'm not sure exactly what ierrors is supposed to count, but so far I have not seen this go beyond 0? I have been interpreting the sum of (ipackets + imissed + ierrors) = itotal as the total number of packets hitting the port. However, I've noticed that when throughput gets too high, imissed will remain 0 while itotal is smaller than the number of packets sent by the traffic generator. I've ruled out connection issues because increasing the number of RSS queues seems to fix the problem (up to a certain threshold before itotal again becomes smaller than the number sent), but I don't understand why. If it is not dropped in HW because the queues are full (since imissed = 0), where are the packets being dropped and is there a way I can count these? I am using DPDK 20.08 with a Mellanox CX-5, RSS queue size = 4096 Thanks