Spdk/lib/nvme
Jonathan Richardson ce70f29662 nvme: Remove calls to getpid() when submitting nvme requests
As of glibc version 2.3.4 onwards getpid() is no longer cached. SPDK
makes calls to it in nvme_allocate_request() which is called for each
nvme request received. This results in a system calls up to millions of
times per second which slows down nvme submissions. Since the pid never
changes, it only needs to be called once in initialization per process.
This improves the performance of nvme_allocate_request() signficantly.

Change-Id: Idee0f06484d459906b9ce1d9b7360a33119c7e56
Signed-off-by: Jonathan Richardson <jonathan.richardson@broadcom.com>
Signed-off-by: Scott Branden <scott.branden@broadcom.com>
Reviewed-by: Ray Jui <ray.jui@broadcom.com>
Reviewed-on: https://review.gerrithub.io/407599
Reviewed-by: Scott Branden <sbranden@gmail.com>
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
2018-04-16 16:19:44 -04:00
..
Makefile build: remove $(ENV_CFLAGS) where not necessary 2018-01-03 12:05:59 -05:00
nvme_ctrlr_cmd.c nvme: use AER configuation structure when starting controller 2018-04-10 15:43:38 -04:00
nvme_ctrlr.c nvme: improve error messages in set_num_qpairs 2018-04-16 12:31:26 -04:00
nvme_internal.h nvme: make timeout function per process 2018-04-13 12:30:51 -04:00
nvme_ns_cmd.c nvme: free children recursively 2018-02-23 15:35:32 -05:00
nvme_ns.c nvme: add spdk_nvme_ns_get_uuid() function 2018-03-27 02:43:46 -04:00
nvme_pcie.c nvme: make timeout function per process 2018-04-13 12:30:51 -04:00
nvme_qpair.c scripts/check_format: check for spaces before tabs 2018-03-05 11:09:13 -05:00
nvme_quirks.c nvme: add debug logs for matched quirks 2018-02-23 10:07:39 -05:00
nvme_rdma.c nvme: Rmove all uses of strncpy 2018-04-12 13:45:04 -04:00
nvme_transport.c scripts/check_format: check for spaces before tabs 2018-03-05 11:09:13 -05:00
nvme_uevent.c util: add spdk_strerror() wrapper with TLS support 2018-01-04 15:00:09 -05:00
nvme_uevent.h nvme: Add support of hotplug for vfio-attached devices. 2017-12-06 17:04:49 -05:00
nvme.c nvme: Remove calls to getpid() when submitting nvme requests 2018-04-16 16:19:44 -04:00