mirror of
https://github.com/Lizonghang/prima.cpp.git
synced 2025-09-06 14:19:02 +00:00
reverse 128MiB free mem in termux
This commit is contained in:
parent
1b169f8f37
commit
aa6c352aa2
1 changed files with 2 additions and 0 deletions
|
@ -1467,6 +1467,8 @@ static float device_disk_access_delay(struct device_info & dev_info, struct llam
|
|||
|
||||
#if defined(__linux__)
|
||||
if (getenv("TERMUX_VERSION") != NULL) {
|
||||
// Android will forcibly reserve some physical memory, usually 128 MiB
|
||||
dev_info.memory.available_physical -= 0.128;
|
||||
// termux on android: swap has higher priority than releasing mmap
|
||||
// non-app memory that can be swapped to disk
|
||||
float swapout_gib = std::min(
|
||||
|
|
Loading…
Add table
Reference in a new issue