Commit 4dab024
context: set SHM window to be as large as the host's RAM
On version 1.9.5 libkrun introduced an API to set the size of the
SHM window for virtio-gpu. Use it to set it to be as large as the
host's RAM. This should give us enough room for running large
models, accounting for potential device memory fragmentation.
Signed-off-by: Sergio Lopez <slp@redhat.com>1 parent 153aab4 commit 4dab024
2 files changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
| 68 | + | |
68 | 69 | | |
69 | 70 | | |
70 | 71 | | |
| |||
0 commit comments