mirror of
https://github.com/Droid-VM/crosvm.git
synced 2026-11-17 06:58:03 +00:00
Every GPU blob a guest makes holds host descriptors: the dma-buf the
renderer object keeps, the virgl resource's, and the export the
rutabaga resource keeps. An iPadOS benchmark (GFXBench Aztec Ruins high,
offscreen) holding about 12,000 buffers at once took the process to its
65,536 descriptors; the next ResourceCreateBlob failed with EMFILE ("dup
failed: Too many open files" in drm2kgsl_renderer_get_blob), which the
guest's driver met as an allocation failure, and the app crashed.
run_config now raises RLIMIT_NOFILE to /proc/sys/fs/nr_open (at most
1 << 20) before anything opens a device, or, without CAP_SYS_RESOURCE,
the soft limit to the hard one (base::linux::raise_max_open_files_to_ceiling).
The minijails take the raised limit as well. The same run now peaks at
66,340 descriptors and completes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MmgVbdYzu7uPjUcpLVQMTq
|
History
|
|
|---|---|---|
| .. | ||
| base_event_token_derive | ||
| patches | ||
| src | ||
| tests | ||
| .build_test_serial | ||
| Android.bp | ||
| Cargo.toml | ||