Re: Entirely unexpected ENOSPC?



On Wed, Mar 04, 2009 at 06:06:19PM +0000, Hugo Mills wrote:
Last night, this event jammed up a good chunk of my server:

Mar 4 01:51:36 vlad kernel: btrfs searching for 1716224 bytes, num_bytes 1716224, loop 2, allowed_alloc 1
Mar 4 01:51:36 vlad kernel: btrfs searching for 860160 bytes, num_bytes 860160, loop 2, allowed_alloc 1
[lots of this...]
Mar 4 01:55:52 vlad kernel: btrfs searching for 4096 bytes, num_bytes 4096, loop 2, allowed_alloc 1
Mar 4 01:55:52 vlad kernel: btrfs allocation failed flags 1, wanted 4096
Mar 4 01:55:52 vlad kernel: space_info has 0 free, is full
Mar 4 01:55:52 vlad kernel: block group 12582912 has 8388608 bytes, 8388608 used 0 pinned 0 reserved
Mar 4 01:55:52 vlad kernel: 0 blocks of free space at or bigger than bytes is
Mar 4 01:55:52 vlad kernel: block group 1103101952 has 1073741824 bytes, 1073741824 used 0 pinned 0 reserved
Mar 4 01:55:52 vlad kernel: 0 blocks of free space at or bigger than bytes is
[30 more lines of this]

So yeah thats expected, you ran out of space. The key thing is this

Mar 4 01:55:52 vlad kernel: space_info has 0 free, is full

If space_info has 0 free and is full, then there is no space to allocate for it
and its completely used. I'd recommend switching to the -rc7 kernel since that
has things in place to keep this from happening as often. Thanks,

Josef
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: Entirely unexpected ENOSPC?
    ... Mar 4 01:55:52 vlad kernel: 0 blocks of free space at or bigger than bytes is ... Is there any likely explanation for that behaviour? ...
    (Linux-Kernel)
  • Entirely unexpected ENOSPC?
    ... Mar 4 01:55:52 vlad kernel: 0 blocks of free space at or bigger than bytes is ... The filesystem was nowhere near full, and I wasn't expecting it to ...
    (Linux-Kernel)
  • btrfs BUG on creating huge sparse file
    ... btrfs seems to tag mostdirty pages with PG_private. ... Below is the kernel messages. ... blocks of free space at or bigger than bytes is ...
    (Linux-Kernel)
  • Re: defrag on linux system
    ... I would imagine he would want to change it to some constant ... multiple of the largest file size that he will use. ... he can get away with a constant number of blocks somewhat bigger than the ... is just to keep some free space hanging around in each cluster ...
    (comp.os.linux.development.system)
  • Re: Adding free space
    ... Jack wrote: ... How can I add more free space, keeping every thing I have on it? ... Buy a bigger hard drive. ... Ken Blake - Microsoft MVP Windows: ...
    (microsoft.public.windowsxp.newusers)