Skip to content

Commit 9da408e

Browse files
authored
Update launch_cvd command to increase fd limit via SSH (#4633)
Resolves following error faced while booting up cuttlefish. ERROR devices::virtio::rng] rng worker thread failed: failed creating WaitContext: Too many open files (os error 24) ERROR crosvm::crosvm::sys::linux] failed to recv VmIrqRequest: failed to serialize/deserialize json from packet: attempt to deserialize out of bounds descriptor at line 1 column 28 This error was observed since executing "launch_cvd" via SSH limits number of FDs that user can create to 1024. This PR increases this limit to "1048576" resolving the error observed and boots up cuttlefish successfully.
1 parent 8014251 commit 9da408e

File tree

1 file changed

+3
-3
lines changed
  • src/clusterfuzz/_internal/platforms/android

1 file changed

+3
-3
lines changed

src/clusterfuzz/_internal/platforms/android/adb.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -420,9 +420,9 @@ def start_cuttlefish_device():
420420
device_memory_mb = environment.get_value('DEVICE_MEMORY_MB',
421421
DEFAULT_DEVICE_MEMORY_MB)
422422
# TODO(https://github.com/google/clusterfuzz/issues/3777): Enable sandboxing
423-
launch_cvd_command_line = (
424-
f'{launch_cvd_path} -daemon -memory_mb {device_memory_mb} '
425-
'-report_anonymous_usage_stats Y')
423+
launch_cvd_command_line = (f'ulimit -n 1048576 && {launch_cvd_path} -daemon '
424+
f'-memory_mb {device_memory_mb} '
425+
f'-report_anonymous_usage_stats Y')
426426
execute_command(launch_cvd_command_line, on_cuttlefish_host=True)
427427

428428

0 commit comments

Comments
 (0)