mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 06:58:05 +02:00
docs/envvars: document ANV_SYS_MEM_LIMIT
This option was added by fdbdfaed01 ("anv: add ANV_SYS_MEM_LIMIT for
debugging system memory restrictions").
Acked-by: Tapani Pälli <tapani.palli@intel.com>
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41277>
This commit is contained in:
parent
cf7ada8475
commit
0e81aac260
1 changed files with 17 additions and 0 deletions
|
|
@ -1002,6 +1002,23 @@ Anvil(ANV) driver environment variables
|
|||
advertised queues to include 1 queue with compute-only support, and
|
||||
it would override the number of graphics+compute queues to be 0.
|
||||
|
||||
.. envvar:: ANV_SYS_MEM_LIMIT
|
||||
|
||||
Changes the amount of system memory that is available for graphics usage in
|
||||
the Vulkan system memory heap. The variable accepts an integer from 10 to
|
||||
100, which represents the percentage of system memory that will be used as
|
||||
the host memory heap size. The default value is 75 if the system has more
|
||||
than 4GB of system RAM, 50 otherwise.
|
||||
|
||||
Note that this memory is shared between the application's Vulkan allocations
|
||||
and the system's general needs. If a value too close to 100 is set and fully
|
||||
used, the driver may not have enough memory for its data structures and the
|
||||
application may fail to perform system allocations (e.g., malloc()), which
|
||||
may lead to errors or excessive memory swapping.
|
||||
|
||||
This option can also be used to limit memory usage by memory-hungry
|
||||
applications.
|
||||
|
||||
Hasvk driver environment variables
|
||||
---------------------------------------
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue