From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx0b-00103a01.pphosted.com (mx0b-00103a01.pphosted.com [67.231.152.227]) by dpdk.org (Postfix) with ESMTP id 9EDE09422 for ; Wed, 25 Nov 2015 18:59:05 +0100 (CET) Received: from pps.filterd (m0002317.ppops.net [127.0.0.1]) by mx0b-00103a01.pphosted.com (8.15.0.59/8.15.0.59) with SMTP id tAPHv9bc027112 for ; Wed, 25 Nov 2015 12:59:04 -0500 Received: from vawvcgsie2k1302.ciena.com (lin1-118-36-36.ciena.com [63.118.36.36]) by mx0b-00103a01.pphosted.com with ESMTP id 1yanqhdthr-1 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Wed, 25 Nov 2015 12:59:04 -0500 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.1104.5; Wed, 25 Nov 2015 12:59:03 -0500 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.1104.5; Wed, 25 Nov 2015 12:59:03 -0500 Received: from ONWVEXCHMB04.ciena.com ([::1]) by ONWVEXCHHT02.ciena.com ([::1]) with mapi; Wed, 25 Nov 2015 12:59:03 -0500 From: "Sugumaran, Varthamanan" To: "dev@dpdk.org" Date: Wed, 25 Nov 2015 12:59:01 -0500 Thread-Topic: Issues with running multicore Thread-Index: AdEnqqRsIf8KINENQ/+0Mo7y46CQxw== Message-ID: <5D52F6EC3531E949B1A9130CBFCE032F99359829@ONWVEXCHMB04.ciena.com> 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:, , definitions=2015-11-25_12:, , signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1507310000 definitions=main-1511250311 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Cc: "Bly, Mike" Subject: [dpdk-dev] Issues with running multicore 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, 25 Nov 2015 17:59:05 -0000 Hi All, Iam trying to create multi core application by mapping separate function fo= r each core. I had followed Multi process example and I had used pthread. The use case is: 1. In a single process, launch pthread and run rte_eal_init 2. Once rte_eal_init is done, create 3 pthreads 3. Launch master core. 4. In each of 3 pthread, launch slave core. The issue is, I don't see 4 cores running. Instead I see only single core r= unning. Here is the Pseudo code: Init_pmd{ ret =3D rte_eal_init(args, argv) =3D=3D> I had set the number of cores t= o 4 in the params. pthread_create(&thread1, NULL, (void*)threadFun1, NULL); pthread_create(&thread2, NULL, (void*)threadFun2, NULL); pthread_create(&thread3, NULL, (void*)threadFun3, NULL); rte_eal_mp_remote_launch(launch_pmd_single_lcore, NULL, CALL_MASTER); } Iam mapping each core to threadFun1, threadFun2 and threadFun3. threadFun1 { RTE_LCORE_FOREACH_SLAVE(lcore_id) { if( lcore_id =3D=3D 1 ) rte_eal_remote_launch(threadFun1_launch_one_lcore, NULL, lcore_id)= ; } } Has anyone seen this issue? Please let me know if iam missing something? Thanks Vartha