[EXTERNAL] Re: [PATCH v3 1/1] examples/l2fwd-jobstats: fix lock availability
    Rakesh Kudurumalla 
    rkudurumalla at marvell.com
       
    Thu Aug  8 13:41:38 CEST 2024
    
    
  
From: Thomas Monjalon <thomas at monjalon.net>
Sent: Tuesday, July 30, 2024 9:42 PM
To: Rakesh Kudurumalla <rkudurumalla at marvell.com>
Cc: ferruh.yigit at amd.com; andrew.rybchenko at oktetlabs.ru; orika at nvidia.com; dev at dpdk.org; Jerin Jacob <jerinj at marvell.com>; Nithin Kumar Dabilpuram <ndabilpuram at marvell.com>; stable at dpdk.org
Subject: [EXTERNAL] Re: [PATCH v3 1/1] examples/l2fwd-jobstats: fix lock availability
Hello, 30/07/2024 12: 03, Rakesh Kudurumalla: > This patch addresses the issue by introducing a delay Please start with describing the issue. > before acquiring the lock in the loop. This delay allows for better > availability of the
Hello,
30/07/2024 12:03, Rakesh Kudurumalla:
> This patch addresses the issue by introducing a delay
Please start with describing the issue.
> before acquiring the lock in the loop. This delay allows for better
> availability of the lock, ensuring that show_lcore_stats() can
> periodically update the statistics even when forwarding jobs are running.
Why a delay is better than a pause?
due to high frequency of polling in l2fwd_main_loop()  rte_pause() is not yieding the processor
to display stats relating to fwd and flush execution time so added a delay achieve the same.
> @@ -542,7 +542,7 @@ l2fwd_main_loop(void)
>                           } while (likely(stats_read_pending == 0));
>
>                           rte_spinlock_unlock(&qconf->lock);
> -                        rte_pause();
> +                       rte_delay_us(10);
>           }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mails.dpdk.org/archives/stable/attachments/20240808/70f4ea69/attachment.htm>
    
    
More information about the stable
mailing list