From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx0a-00103a01.pphosted.com (mx0a-00103a01.pphosted.com [67.231.144.234]) by dpdk.org (Postfix) with ESMTP id 3518FC62C for ; Fri, 19 Jun 2015 02:58:03 +0200 (CEST) Received: from pps.filterd (m0000419.ppops.net [127.0.0.1]) by mx0a-00103a01.pphosted.com (8.14.5/8.14.5) with SMTP id t5J0tial028726 for ; Thu, 18 Jun 2015 20:58:02 -0400 Received: from vawvcgsie2k1302.ciena.com (LIN1-118-36-36.ciena.com [63.118.36.36]) by mx0a-00103a01.pphosted.com with ESMTP id 1v3w28ah4f-1 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT) for ; Thu, 18 Jun 2015 20:58:01 -0400 Received: from VAWVMDMAIL01.ciena.com (10.4.156.37) by VAWVCGSIE2K1302.ciena.com (10.4.62.16) with Microsoft SMTP Server (TLS) id 15.0.847.32; Thu, 18 Jun 2015 20:58:00 -0400 Received: from ONWVEXCHHT02.ciena.com (10.128.6.17) by VAWVMDMAIL01.ciena.com (10.4.156.37) with Microsoft SMTP Server (TLS) id 15.0.847.32; Thu, 18 Jun 2015 20:57:47 -0400 Received: from ONWVEXCHMB01.ciena.com ([10.128.6.18]) by ONWVEXCHHT02.ciena.com ([::1]) with mapi; Thu, 18 Jun 2015 20:57:47 -0400 From: "Yeddula, Avinash" To: "dev@dpdk.org" Date: Thu, 18 Jun 2015 20:57:45 -0400 Thread-Topic: RTE TIMER LIBRARY Thread-Index: AdCqJb8E/sVLgwGvS6KFbVntVALmXA== Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.14.151, 1.0.33, 0.0.0000 definitions=2015-06-18_06:2015-06-18,2015-06-18,1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=7.0.1-1402240000 definitions=main-1506190014 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] RTE TIMER LIBRARY 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: Fri, 19 Jun 2015 00:58:04 -0000 Hello Dpdk-team, I have few very basic questions. In the DPDK timer sample application, the= periodic timer0's callback function is not called unless "rte_timer_manage= ()" is called. I understand rte_timer_manage() function looks at all the ex= pired timers in the core and runs them. Here are my questions: 1. If I comment out the rte_timer_manage() function in the code, time0= _cb function is not getting called at all. Why is this ? I see some documentation saying if they are in Running state the tim= er would fail, what exactly does this mean, could you please provide more d= etails. 2. Is it mandatory to call rte_timer_manage to trigger for the dpdk ti= mers when they expire? 3. I see this point "The Timer library provides a timer service to Int= el(r) DPDK execution units to enable execution of callback functions asynch= ronously." What does asynchronously means ? For example, I just have 1 worker thread in my application and the periodi= c timer expired and the corresponding call back function has to be executed= . Now does the worker thread stop what it is doing now and starts executin= g timer's callback function or how does it work. I apologies if the questions are very basic and doesn't make sense. Thanks -Avinash PS: I modified the app to make it run only on 1 core. Here is the output wh= en it runs on one core. Let me know if I'm doing something wrong. [root@localhost timer]# ./build/timer -c 1 -n 1 EAL: Requesting 1024 pages of size 2MB from socket 0 EAL: TSC frequency is ~2399986 KHz EAL: Master lcore 0 is ready (tid=3Dadaa8c0;cpuset=3D[0]) EAL: PCI device 0000:00:14.0 on NUMA socket -1 EAL: probe driver: 8086:1f41 rte_igb_pmd EAL: PCI memory mapped at 0x7f4b08e00000 EAL: PCI memory mapped at 0x7f4b08e20000 PMD: eth_igb_dev_init(): port_id 0 vendorID=3D0x8086 deviceID=3D0x1f41 EAL: PCI device 0000:00:14.1 on NUMA socket -1 EAL: probe driver: 8086:1f41 rte_igb_pmd EAL: PCI memory mapped at 0x7f4b08e24000 EAL: PCI memory mapped at 0x7f4b08e44000 PMD: eth_igb_dev_init(): port_id 1 vendorID=3D0x8086 deviceID=3D0x1f41 EAL: PCI device 0000:00:14.2 on NUMA socket -1 EAL: probe driver: 8086:1f41 rte_igb_pmd EAL: PCI memory mapped at 0x7f4b08e48000 EAL: PCI memory mapped at 0x7f4b08e68000 PMD: eth_igb_dev_init(): port_id 2 vendorID=3D0x8086 deviceID=3D0x1f41 EAL: PCI device 0000:00:14.3 on NUMA socket -1 EAL: probe driver: 8086:1f41 rte_igb_pmd EAL: Not managed by a supported kernel driver, skipped Starting mainloop on core 0 timer0_cb() on lcore 0 timer0_cb() on lcore 0 timer0_cb() on lcore 0