numam-spdk/lib
Vitaliy Mysak 33f97fa33a lib/ocf_env: fix incorrect value for free memory estimate
OCF relies on our env to get information about free memory.
It then uses that information to return a descriptive
error if not enough memory is available.
But no other calculation done based on that value.

Our implementation was not correct because it returned
the size of available physical memory in the system,
while we use HUGEPAGE memory for most of OCF operations.

There doesn't seem to be a reliant API for getting
the size of available HUGEPAGE memory, so instead
return UINT64_MAX, as it is done in ocf/env/posix/ocf_env.h.
This way, OCF will not know ahead of time if there
is enough memory available, but it will still fail
properly on operations that require too much memory.

Change-Id: Iec2e3cfa8453253513d5861d7e6acf0e08dad1e9
Signed-off-by: Vitaliy Mysak <vitaliy.mysak@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/1976
Community-CI: Mellanox Build Bot
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
2020-04-29 06:42:33 +00:00
..
accel module/idxd: accel framework plug-in for idxd 2020-04-23 15:48:32 +00:00
bdev lib/bdev: add a map file. 2020-04-15 22:10:08 +00:00
blob blob: add pages_per_cluster_shift 2020-04-24 15:45:21 +00:00
blobfs lib/blobfs: remove spdk prefix from private APIs 2020-04-22 09:21:55 +00:00
conf lib/conf: make INI deprecation less verbose 2020-04-28 13:36:35 +00:00
env_dpdk module/idxd: accel framework plug-in for idxd 2020-04-23 15:48:32 +00:00
env_ocf lib/ocf_env: fix incorrect value for free memory estimate 2020-04-29 06:42:33 +00:00
event reactor: add an assert for thread context. 2020-04-24 07:07:43 +00:00
ftl lib/ftl: Add a map file. 2020-04-22 09:21:55 +00:00
idxd module/idxd: accel framework plug-in for idxd 2020-04-23 15:48:32 +00:00
ioat memory.h: move to public headers 2020-03-19 08:50:45 +00:00
iscsi lib/iscsi: fix possible memory leak. 2020-04-24 07:07:43 +00:00
json make: rev SO versions individually for libraries. 2020-03-18 08:02:30 +00:00
jsonrpc make: rev SO versions individually for libraries. 2020-03-18 08:02:30 +00:00
log log: spdk_log_dump more characters than required 2020-04-14 11:34:45 +00:00
log_rpc make: rev SO versions individually for libraries. 2020-03-18 08:02:30 +00:00
lvol lvol: do not refer to blob when create returned error 2020-04-02 07:03:35 +00:00
nbd lib/thread: Use function name as poller name by using macro SPDK_POLLER_REGISTER 2020-04-15 07:23:09 +00:00
net make: rev SO versions individually for libraries. 2020-03-18 08:02:30 +00:00
notify make: rev SO versions individually for libraries. 2020-03-18 08:02:30 +00:00
nvme nvme/nvme_rdma: assign rctrlr in each qpair->ctrlr check 2020-04-29 06:32:12 +00:00
nvmf nvmf: allow to override KAS 2020-04-28 13:48:17 +00:00
reduce make: rev SO versions individually for libraries. 2020-03-18 08:02:30 +00:00
rocksdb global: rename copy to accel 2020-02-18 08:05:34 +00:00
rpc make: rev SO versions individually for libraries. 2020-03-18 08:02:30 +00:00
rte_vhost make: rev SO versions individually for libraries. 2020-03-18 08:02:30 +00:00
scsi lib/scsi: add map file 2020-04-24 07:06:52 +00:00
sock sock: Add spdk sock opts related three functions. 2020-04-24 15:53:34 +00:00
thread lib/thread: Add busy count for poller to increment only when some work was done 2020-04-09 13:44:14 +00:00
trace make: rev SO versions individually for libraries. 2020-03-18 08:02:30 +00:00
ut_mock make: rev SO versions individually for libraries. 2020-03-18 08:02:30 +00:00
util pipe: Simplify the pipe code 2020-03-31 07:59:26 +00:00
vhost lib/vhost: Don't dereference svdev->name in dev_remove. 2020-04-29 06:38:53 +00:00
virtio memory.h: move to public headers 2020-03-19 08:50:45 +00:00
vmd make: rev SO versions individually for libraries. 2020-03-18 08:02:30 +00:00
Makefile lib/idxd: add low level idxd library 2020-04-23 15:48:32 +00:00