1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/lib
Zdenek Kabelac ebad057579 vdo: check vdo memory constrains
Add function to check for avaialble memory for particular VDO
configuration - to avoid unnecessary machine swapping for configs
that will not fit into memory (possibly in locked section).

Formula tries to estimate RAM size machine can use also with
swapping for kernel target - but still leaving some amount of
usable RAM.

Estimation is based on documented RAM usage of VDO target.

If the /proc/meminfo would be theoretically unavailable, try to use
'sysinfo()' function, however this is giving only free RAM without
the knowledge about how much RAM could be eventually swapped.

TODO: move _get_memory_info() into generic lvm2 API function used
by other targets with non-trivial memory requirements.
2022-07-11 01:18:24 +02:00
..
activate devices: fix dev_name assumptions 2022-02-24 17:22:04 -06:00
cache exit with error when --devicesfile name doesn't exist 2022-07-06 10:10:58 -05:00
cache_segtype gcc: remove invalid attribute 2021-09-13 12:34:41 +02:00
commands devices file: move clean up after command is run 2022-05-27 12:38:43 -05:00
config vdo: use defines also for configuration defines 2022-07-11 01:18:24 +02:00
datastruct cleanup: eliminate unused assign 2021-03-11 00:18:01 +01:00
device filter-mpath: get wwids from sysfs vpd_pg83 2022-06-08 15:06:01 -05:00
display gcc-fanalyzer: helping understand answer is not null 2021-09-21 21:03:47 +02:00
error device_mapper: remove dbg_malloc. 2018-06-08 13:40:53 +01:00
filters filters: remove unused internal filter 2022-04-06 12:51:34 -05:00
format_text asan: fix some reports from libasan 2022-02-07 20:02:11 +01:00
freeseg device_mapper: remove dbg_malloc. 2018-06-08 13:40:53 +01:00
integrity cleanup: no backtraces needed after log_error 2021-03-10 01:11:52 +01:00
label exit with error when --devicesfile name doesn't exist 2022-07-06 10:10:58 -05:00
locking devices: fix dev_name assumptions 2022-02-24 17:22:04 -06:00
log print warning about unrecognized journal option value 2021-12-02 12:40:52 -06:00
lvmpolld device usage based on devices file 2021-02-23 16:43:32 -06:00
metadata vdo: check vdo memory constrains 2022-07-11 01:18:24 +02:00
mirror lv_info: missing check for info.exists 2021-03-14 16:34:38 +01:00
misc utils: define macro for ffs 2021-09-27 18:56:14 +02:00
mm debug: change message level 2021-09-15 15:24:56 +02:00
notify build: Don't generate symlinks in include/ dir 2018-05-14 10:30:20 +01:00
properties build: Don't generate symlinks in include/ dir 2018-05-14 10:30:20 +01:00
raid cleanup: reduce code dupliction 2021-03-19 23:21:18 +01:00
report writecache: display block size from lvs 2022-02-21 16:11:13 -06:00
snapshot typo: fixes 2021-02-08 23:53:41 +01:00
striped device_mapper: remove dbg_malloc. 2018-06-08 13:40:53 +01:00
thin targets: use target_present_version 2021-02-08 23:43:38 +01:00
unknown device_mapper: remove dbg_malloc. 2018-06-08 13:40:53 +01:00
uuid asan: fix some reports from libasan 2022-02-07 20:02:11 +01:00
vdo vdo: check vdo memory constrains 2022-07-11 01:18:24 +02:00
writecache typo: fixes 2021-02-08 23:53:41 +01:00
zero device_mapper: remove dbg_malloc. 2018-06-08 13:40:53 +01:00
Makefile.in filter-mpath: get wwids from sysfs vpd_pg83 2022-06-08 15:06:01 -05:00