Re: [dpdk-dev] [PATCH] librte_eal: add APIs to speedup virt2iova/phys

2021-04-06 Thread Feng Li
On Thu, Apr 1, 2021 at 6:39 PM Burakov, Anatoly wrote: > > On 25-Mar-21 1:32 PM, David Marchand wrote: > > Hello, > > > > On Mon, Apr 20, 2020 at 4:13 PM Li Feng wrote: > >> > >> Cool, thank you, Anatoly and Kozlyuk. > >> > >> I haven't found how Windows implements the rte_mem_virt2phy. > >> > >>

Re: [dpdk-dev] [PATCH] log: support custom log function

2021-02-05 Thread Feng Li
Li Feng 于2021年2月5日周五 下午7:24写道: > > Currently, the dpdk log is out to stdout/stderr and syslog. > We should support to output the log to another please, e.g. file or > glog. Sorry, sed 's/please/place/g'. > > Signed-off-by: Li Feng > --- > lib/librte_eal/common/eal_private.h | 10 -- > li

Re: [dpdk-dev] [PATCH] log: support custom log function

2021-02-05 Thread Feng Li
David Marchand 于2021年2月5日周五 下午7:56写道: > > On Fri, Feb 5, 2021 at 12:25 PM Li Feng wrote: > > > > Currently, the dpdk log is out to stdout/stderr and syslog. > > We should support to output the log to another please, e.g. file or > > glog. > > Why not use rte_openlog_stream() / rte_log_get_stream(

Re: [dpdk-dev] [PATCH] log: support custom log function

2021-02-07 Thread Feng Li
Stephen Hemminger 于2021年2月6日周六 上午12:11写道: > > On Fri, 5 Feb 2021 12:55:48 +0100 > David Marchand wrote: > > > On Fri, Feb 5, 2021 at 12:25 PM Li Feng wrote: > > > > > > Currently, the dpdk log is out to stdout/stderr and syslog. > > > We should support to output the log to another please, e.g. f

Re: [dpdk-dev] [PATCH] log: support custom log function

2021-02-07 Thread Feng Li
Feng Li 于2021年2月6日周六 上午12:54写道: > > Stephen Hemminger 于2021年2月6日周六 上午12:11写道: > > > > On Fri, 5 Feb 2021 12:55:48 +0100 > > David Marchand wrote: > > > > > On Fri, Feb 5, 2021 at 12:25 PM Li Feng wrote: > > > > > > > > Current

Re: [dpdk-dev] [PATCH v2] log: support custom log function

2021-02-07 Thread Feng Li
Li Feng 于2021年2月6日周六 上午1:42写道: > > Currently, the dpdk log is out to stdout/stderr and syslog. > The rte_openlog_stream could set an external FILE* stream, but it asks the > consumer to give it a FILE* pointer. > For C++ or other languages, it's hard to get a libc FILE*. > > Support to set a hook

Re: [dpdk-dev] [PATCH v2] log: support custom log function

2021-02-08 Thread Feng Li
Thanks for your comments. Dmitry Kozlyuk 于2021年2月6日周六 上午3:32写道: > > On Sat, 6 Feb 2021 01:42:04 +0800, Li Feng wrote: > > Currently, the dpdk log is out to stdout/stderr and syslog. > > The rte_openlog_stream could set an external FILE* stream, but it asks the > > consumer to give it a FILE* poi

Re: [dpdk-dev] [PATCH v2] log: support custom log function

2021-02-11 Thread Feng Li
On Tue, Feb 9, 2021 at 6:40 AM Dmitry Kozlyuk wrote: > > On Mon, 8 Feb 2021 14:58:29 +0800, Feng Li wrote: > > > > +/** > > > > + * Usage function typedef used by the application usage function. > > > > > > It's unrelated to the following typ

Re: [dpdk-dev] [PATCH v3] log: support custom log function

2021-02-19 Thread Feng Li
Ping…… Any comments about this? Thanks, On Wed, Feb 10, 2021 at 1:20 PM Li Feng wrote: > > By default, the dpdk log is out to stdout/stderr and syslog. > The rte_openlog_stream could set an external FILE* stream, but it asks > the > consumer to give it a FILE* pointer. > For C++ or other languag

Re: [dpdk-dev] [PATCH v4] log: support custom log function

2021-02-23 Thread Feng Li
Hi Dmitry, Thanks for your comments. I will submit the next patch to address your concern. On Fri, Feb 19, 2021 at 4:11 PM Dmitry Kozlyuk wrote: > > On Thu, 18 Feb 2021 14:12:53 +0800, Li Feng wrote: > > By default, the dpdk log is out to stdout/stderr and syslog. > > The rte_openlog_stream could

Re: [dpdk-dev] [PATCH] eal: add madvise to avoid dump memory

2020-04-20 Thread Feng Li
Thank you, Marchand, I have just tested your patch, and it doesn't work. The core dump file is still very very large, the same to virtual memory size. David Marchand 于2020年4月20日周一 下午3:13写道: > > On Mon, Apr 20, 2020 at 9:10 AM Li Feng wrote: > > Li Feng 于2020年4月20日周一 下午3:04写道: > > > > > > Avoid

Re: [dpdk-dev] [PATCH] eal: add madvise to avoid dump memory

2020-04-21 Thread Feng Li
Hi Anatoly, This program could run like this: gcc test_map.c ./a.out 2 & gcore `pidof a.out` You will get a core dump sized to 2GiB. Thanks, Feng Li Burakov, Anatoly 于2020年4月21日周二 下午8:19写道: > > On 21-Apr-20 12:06 PM, Feng Li wrote: > > #include > > #include >

Re: [dpdk-dev] [PATCH] eal: add madvise to avoid dump memory

2020-04-21 Thread Feng Li
T_NONE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); if (ptr == (void*)-1) { perror("[-] mmap failed with MAP_PRIVATE | MAP_ANONYMOUS"); exit(1); } while(1) sleep(1); return 0; } Thanks. David Marchand 于2020年4月21日周二 下午3:41写道: > > On Mon, Apr 20, 20

Re: [dpdk-dev] [PATCH v2] eal: add madvise to avoid dump memory

2020-04-26 Thread Feng Li
Bruce Richardson 于2020年4月24日周五 下午5:14写道: > > On Fri, Apr 24, 2020 at 10:12:10AM +0100, Burakov, Anatoly wrote: > > On 23-Apr-20 9:04 PM, David Marchand wrote: > > > On Thu, Apr 23, 2020 at 6:34 PM Burakov, Anatoly > > > wrote: > > > > > diff --git a/lib/librte_eal/common/eal_common_memory.c > >