[dpdk-dev] DPDK's vhost-user logging capability

2016-03-23 Thread shesha Sreenivasamurthy (shesha)
Hi All, I was going over vhost-user migration capability in DPDK in lieu of a Cisco's multi-q DPDK vhost-user application. I see that log_base address is implemented as per virtio_net device. However, desc, addr and used is per vhost_virtqueue. Additionally, QEMU sends one VHOST_USER_SET_LOG_BA

[dpdk-dev] Reshuffling of rte_mbuf structure.

2015-11-04 Thread shesha Sreenivasamurthy (shesha)
Is there a way where we can just define the fields that ought to be there in the mbuf structure, but the position and size is implementation dependent ? The application can provide "mbuf_impl.h" that contains mbuf_rte fields in the order that seems appropriate to application. -- - Thanks char *

[dpdk-dev] Reshuffling of rte_mbuf structure.

2015-11-02 Thread shesha Sreenivasamurthy (shesha)
NO_TX_OFFLOAD only changes the layout in terms of relative field location in cache lines, and does not eliminate the fields themselves why should the using code be affected? On Mon, Nov 2, 2015 at 8:30 PM, shesha Sreenivasamurthy (shesha) mailto:shesha at cisco.com>> wrote: One issue I se

[dpdk-dev] Reshuffling of rte_mbuf structure.

2015-11-02 Thread shesha Sreenivasamurthy (shesha)
the structure replacements, creating your custom version, and placing it instead of the installed copy of rte_mbuf.h. Maybe the only facility required from dpdk is just the ability to register calls to such user scripts at some install stage(s), providing the mean along with responsibility to

[dpdk-dev] Reshuffling of rte_mbuf structure.

2015-10-31 Thread shesha Sreenivasamurthy (shesha)
In Cisco, we are using DPDK for a very high speed packet processor application. We don't use NIC TCP offload / RSS hashing. Putting those fields in the first cache-line - and the obligatory mb->next datum in the second cache line - causes significant LSU pressure and performance degradation. If

[dpdk-dev] [PATCH v8] mem: command line option to delete hugepage backing files

2015-10-28 Thread Shesha Sreenivasamurthy
does not need those backing files can remove them, thus not changing the current default behavior. The application itself can clean it up, however the rationale behind DPDK cleaning it up is, DPDK created it and therefore, it is better it unlinks it. Signed-off-by: Shesha Sreenivasamurthy Acked-by

[dpdk-dev] [PATCH v7] mem: command line option to delete hugepage backing files

2015-10-28 Thread Shesha Sreenivasamurthy
that does not need those backing files can remove them, thus not changing the current default behavior. The application itself can clean it up, however the rationale behind DPDK cleaning it up is, DPDK created it and therefore, it is better it unlinks it. Signed-off-by: Shesha Sreenivasamurthy

[dpdk-dev] [PATCH v6] mem: command line option to delete hugepage backing files

2015-10-28 Thread shesha Sreenivasamurthy (shesha)
that does not need those backing files can remove them, thus not changing the current default behavior. The application itself can clean it up, however the rationale behind DPDK cleaning it up is, DPDK created it and therefore, it is better it unlinks it. Signed-off-by: Shesha Sreenivasamurthy

[dpdk-dev] [PATCH v5] mem: command line option to delete hugepage backing files

2015-10-27 Thread shesha Sreenivasamurthy (shesha)
does not need those backing files can remove them, thus not changing the current default behavior. The application itself can clean it up, however the rationale behind DPDK cleaning it up is, DPDK created it and therefore, it is better it unlinks it. Signed-off-by: Shesha Sreenivasamurthy Acked-by

[dpdk-dev] [PATCH v5] mem: command line option to delete hugepage backing files

2015-10-27 Thread shesha Sreenivasamurthy (shesha)
does not need those backing files can remove them, thus not changing the current default behavior. The application itself can clean it up, however the rationale behind DPDK cleaning it up is, DPDK created it and therefore, it is better it unlinks it. Signed-off-by: Shesha Sreenivasamurthy Acked

[dpdk-dev] [PATCH v3] mem: command line option to delete hugepage backing files

2015-10-23 Thread shesha Sreenivasamurthy (shesha)
Employee Cc: "dev at dpdk.org" , Bruce Richardson Subject: Re: [dpdk-dev] [PATCH v3] mem: command line option to delete hugepage backing files On 22/10/2015 17:03, shesha Sreenivasamurthy (shesha) wrote: > Sergio, >Your comment regarding remap_all_functions is correct and c

[dpdk-dev] [PATCH v3] mem: command line option to delete hugepage backing files

2015-10-22 Thread shesha Sreenivasamurthy (shesha)
mmand line option to delete hugepage backing files On 21/10/2015 17:34, Bruce Richardson wrote: > On Wed, Oct 21, 2015 at 04:22:45PM +, shesha Sreenivasamurthy >(shesha) wrote: >> When an application using huge-pages crash or exists, the hugetlbfs >> backing files are not cleaned

[dpdk-dev] [PATCH v4] mem: command line option to delete hugepage backing files

2015-10-21 Thread shesha Sreenivasamurthy (shesha)
does not need those backing files can remove them, thus not changing the current default behavior. The application itself can clean it up, however the rationale behind DPDK cleaning it up is, DPDK created it and therefore, it is better it unlinks it. Signed-off-by: Shesha Sreenivasamurthy

[dpdk-dev] [PATCH v3] mem: command line option to delete hugepage backing files

2015-10-21 Thread shesha Sreenivasamurthy (shesha)
does not need those backing files can remove them, thus not changing the current default behavior. The application itself can clean it up, however the rationale behind DPDK cleaning it up is, DPDK created it and therefore, it is better it unlinks it. Signed-off-by: Shesha Sreenivasamurthy --- lib

[dpdk-dev] [PATCH v2] mem: command line option to delete hugepage backing files

2015-10-20 Thread shesha Sreenivasamurthy (shesha)
does not need those backing files can remove them, thus not changing the current default behavior. The application itself can clean it up, however the rationale behind DPDK cleaning it up is, DPDK created it and therefore, it is better it unlinks it. Signed-off-by: Shesha Sreenivasamurthy --- lib

[dpdk-dev] [PATCH v2] mem: command line option to delete hugepage backing files

2015-10-20 Thread shesha Sreenivasamurthy (shesha)
that does not need those backing files can remove them, thus not changing the current default behavior. The application itself can clean it up, however the rationale behind DPDK cleaning it up is, DPDK created it and therefore, it is better it unlinks it. Signed-off-by: Shesha Sreenivasamurthy

[dpdk-dev] [PATCH] mem: Command line option to delete hugepage backing files

2015-10-14 Thread shesha Sreenivasamurthy (shesha)
When an application using huge-pages crash or exists, the hugetlbfs backing files are not cleaned up. This is a patch to clean those files. There are multi-process DPDK applications that may be benefited by those backing files. Therefore, I have made that configurable so that the application tha

[dpdk-dev] [PATCH] mem: Command line option to delete hugepage backing files

2015-10-14 Thread shesha Sreenivasamurthy (shesha)
--- lib/librte_eal/common/eal_common_options.c | 12 ++ lib/librte_eal/common/eal_internal_cfg.h | 1 + lib/librte_eal/common/eal_options.h| 2 ++ lib/librte_eal/linuxapp/eal/eal_memory.c | 37 ++ 4 files changed, 52 insertions(+) diff --git a/lib/libr

[dpdk-dev] Unlinking hugepage backing file after initialiation

2015-09-30 Thread shesha Sreenivasamurthy (shesha)
g hugepage backing file after initialiation -Original Message- From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of shesha Sreenivasamurthy (shesha) Sent: Wednesday, September 30, 2015 10:44 PM To: dev at dpdk.org<mailto:dev at dpdk.org> Cc: Michael S. Tsirkin Subject: Re: [dpdk-dev] U

[dpdk-dev] Unlinking hugepage backing file after initialiation

2015-09-30 Thread shesha Sreenivasamurthy (shesha)
.org<mailto:dev at dpdk.org>" mailto:dev at dpdk.org>> Subject: Re: [dpdk-dev] Unlinking hugepage backing file after initialiation On Tue, Sep 29, 2015 at 05:50:00PM +, shesha Sreenivasamurthy (shesha) wrote: Sure. Then, is there any real reason why the backing files should not be unlinked ? AFAIK qemu unlinks them already. -- MST

[dpdk-dev] Unlinking hugepage backing file after initialiation

2015-09-29 Thread shesha Sreenivasamurthy (shesha)
: Cisco Employee mailto:shesha at cisco.com>> Cc: "Xie, Huawei" mailto:huawei.xie at intel.com>>, "dev at dpdk.org<mailto:dev at dpdk.org>" mailto:dev at dpdk.org>> Subject: Re: [dpdk-dev] Unlinking hugepage backing file after initialiation On Tue, Sep 29, 2015 at 0

[dpdk-dev] Unlinking hugepage backing file after initialiation

2015-09-29 Thread shesha Sreenivasamurthy (shesha)
cking file after initialiation On 9/29/2015 10:38 AM, Xie, Huawei wrote: On 9/29/2015 8:04 AM, shesha Sreenivasamurthy (shesha) wrote: Hello, As of DPDK2.1, backing files are created in hugetablefs during mapping (in eal_memory.c::rte_eal_hugepage_init()) and these files are not cleaned up

[dpdk-dev] Unlinking hugepage backing file after initialiation

2015-09-29 Thread shesha Sreenivasamurthy (shesha)
mailto:dev at dpdk.org>> Subject: Re: [dpdk-dev] Unlinking hugepage backing file after initialiation On Tue, Sep 29, 2015 at 09:03:15AM +, Ananyev, Konstantin wrote: > -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of shesha > Sreenivasamurth

[dpdk-dev] Unlinking hugepage backing file after initialiation

2015-09-29 Thread shesha Sreenivasamurthy (shesha)
Additional info: Before staring Application: - cat /sys/devices/system/node/node*/meminfo | grep HugePages_ Node 0 HugePages_Total: 2048 Node 0 HugePages_Free: 2048 Node 0 HugePages_Surp: 0 Node 1 HugePages_Total: 2048 Node 1 HugePages_Free: 2048 Nod

[dpdk-dev] Unlinking hugepage backing file after initialiation

2015-09-29 Thread shesha Sreenivasamurthy (shesha)
Hello, As of DPDK2.1, backing files are created in hugetablefs during mapping (in eal_memory.c::rte_eal_hugepage_init()) and these files are not cleaned up (unlinked) after initialization (mmap-ing). This means, when the application crashes or stopped, the memory is still consumed. Therefore, is