Skip to content

Hitting ulimit with huge workspace #11296

@potiuk

Description

@potiuk

Summary

When running uv sync with huge workspace (90+ subprojects) uv fails with "too many open files" when the default ulimit for number of opened file descriptors per process is used (256 is the default on MacOS).

Image

Setting ulimit -n 2048 fixes the problem, however it would be great if uv respects the limit that is set per process and does not open more files than it can.

How to reproduce:

  1. Checkout https://github.com/apache/airflow
  2. Run uv sync

Platform

MacOS

Version

uv 0.5.25 (9c07c3f 2025-01-28)

Python version

Python 3.11.10

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions