Menu

errno 27 (EFBIG): RLIMIT_FSIZE, SIGXFSZ, and the bytes that fit
πŸ“°

errno 27 (EFBIG): RLIMIT_FSIZE, SIGXFSZ, and the bytes that fit

DEV Community: pythonΒ·TechBobbyΒ·2 days ago
#jbbYlI9h
#devtopython#devto#dev#ifdef#endif
Long article (1585 words) β€” no AI summary yet.
Reading 0:00
15s threshold

A 4 MB log line that never appeared, a worker that vanished with exit status 153 and nothing in stderr, a copy that stopped exactly at a round number of bytes. Three different incidents, one cause: RLIMIT_FSIZE . This is a condensed field report on errno 27 ( EFBIG ) β€” what the kernel actually does, why C dies while your Python job sometimes raises, and the three checks that tell you which one you are looking at.

TL;DR

EFBIG (27) is not a full disk. It is a per-process ceiling on how large one regular file may grow. A 4,096-byte ceiling on a host with gigabytes free is a perfectly normal configuration.

A write that starts below the ceiling is clipped, not refused : it stores what fits and returns that smaller count, with no error at all.

A write that starts at or past the ceiling makes the kernel send SIGXFSZ (25) and return EFBIG at the same moment.

Which of those two reaches your code depends on the signal disposition .…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.