From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi0-f47.google.com (mail-oi0-f47.google.com [209.85.218.47]) by dpdk.org (Postfix) with ESMTP id DA16A58CB for ; Fri, 27 Jul 2018 20:15:58 +0200 (CEST) Received: by mail-oi0-f47.google.com with SMTP id w126-v6so10639142oie.7 for ; Fri, 27 Jul 2018 11:15:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=bZzH4WR9uvkbm5lFOd16msxKbrtEsq3wGCKemAT1PBk=; b=L564Wj3Lad+O4pMVsGtMWOhJH7BnndguAOInl3QF4CcnzixrXa1WoTLaRJlDLfXOki ZroGU071kyjYVLPaqktx3q3myxQfbbQ6XWois1n+EnJe3MN7kzClBwSaj7t+ekwwYdB8 lRgUGzKcmI2V4rZ9O/2E26Zx6u1rYseWsvXgSqZYUfd88lmUgyY6psFSEN2JgJrUPWSW IFUTZZZr3HJ+9ov4+z7tfWytoksLSe4PH2WE7gpy1nwIVSN9zjbBAXmGhz9Qk06/mSrJ J1aC8sGpOrza6wfUrgnJAIOYD1U5Ol5+Wg6vvHhMXFSWkqaoBibxc9QpHs/1kI4uGM2X ndCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=bZzH4WR9uvkbm5lFOd16msxKbrtEsq3wGCKemAT1PBk=; b=ADsgvzP0BEaSZMxD5fi64K5SKoXejkXMaWzayudZR1mXUdPJxgm0CLfKXRHldDp9iY ECLndeT1AuOojNmIT1+DLzM0wNIcYQk7bPP/aVkrvQwteU/IZ6Tfs8igqtZCgheF6s6X z2W9Lmrv7yklqqONxkZ9GvgxkR1qthqlDxj9SmWYWK3dUqc8AAzMUZiJX28z3QtwG501 LnSEirb+C6QtGm5mKMlwgYNcUfAXw7UNINvNTNCnfHJcznGjsIkdNXNtm1eyBQVdARk4 zne7nwR/IGz/Pk+7pwqDPmfmuGAgIcFkArfQ8Csfl0FH2PzRF2IaQcHCVgvVybrzRcyQ r6Sw== X-Gm-Message-State: AOUpUlFJrB2jU8a40lX0JTjhKXYZNlJpRkvl4Pk8eBo5FacgVzx7uLlU r70zGIcFJs96Qmy+vXkLCsnIOFf8Nm52SJLSd/p38dtl X-Google-Smtp-Source: AAOMgpcEaPv2fsPWB1XBHCMTEVS10VnmnndcG1pTjDJYueuSFvrjw3ev50q4MHqxEC8M/6SaHgfU8Az7RaRDxgrnWU8= X-Received: by 2002:aca:2dca:: with SMTP id t193-v6mr7864277oit.253.1532715358116; Fri, 27 Jul 2018 11:15:58 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a8a:128a:0:0:0:0:0 with HTTP; Fri, 27 Jul 2018 11:15:57 -0700 (PDT) From: Hui Liu Date: Fri, 27 Jul 2018 11:15:57 -0700 Message-ID: To: dev@dpdk.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] Questions about TX descriptors run out occasionally 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: Fri, 27 Jul 2018 18:15:59 -0000 Hi Experts, I'm developing my own dpdk-based application via Intel 82599ES port. My Application is doing a job to send ICMP requests (packet size varies from 64 bytes to 1472 bytes, 200,000 pps, 1.1Gbps) and receive responses, with ARP request/response and ICMP response handling when necessary. It was working pretty fine in 5 hours to 10 days randomly and then TX descriptors run out and cannot be freed by ixgbe_tx_free_bufs() due to DD bit is not set: /* check DD bit on threshold descriptor */ status = txq->tx_ring[txq->tx_next_dd].wb.status; if (!(status & IXGBE_ADVTXD_STAT_DD)) return 0; My tx queue setup is: tx_conf->tx_thresh.pthresh = 64; tx_conf->tx_thresh.hthresh = 0; tx_conf->tx_thresh.wthresh = 0; tx_conf->tx_free_thresh = 256; tx_conf->tx_rs_thresh = 32; tx_conf->txq_flags = ETH_TXQ_FLAGS_NOMULTSEGS | ETH_TXQ_FLAGS_NOOFFLOADS; I tried to read code to see if there is any case to take these descriptors and never set IXGBE_ADVTXD_STAT_DD back but no luck yet. And I have not even found the related code when IXGBE_ADVTXD_STAT_DD is set/unset when descriptor is taken/released other than reset queues... So may I ask: 1. where do we set/unset IXGBE_ADVTXD_STAT_DD when descriptor is taken/released? 2. any suggestion or information I should focus on to debug this issue? Is this typically because of my upper application not alloc/free correctly or any other problem? 3. another friend in dpdk-user list raised same issue in fm10k driver, but later he mentioned his problem was because of overheating of NIC (temperature was close to 85 degree Celsius). After setting system FAN to full speed, he made it work perfectly. Since in my system I don't have fan/temp sensors so I could not check this. Might this problem be caused by high temperature in case? Regards, Hui