Re: No space left on device after many files creation

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: cy6erGn0m
Date: Monday, April 12, 2010 - 11:35 pm

tytso@mit.edu wrote:
I use filysystem as Set data structure to make fast checks from scripts.
Of course I can make long long file and test it with grep but it's will
have linear performance degradation (List), at the same time file system
has efficient tree binary structures (smth. like TreeSet). So, using
filesystem is the simplest way to do this efficient. Also I always have
timestamps for every entry. In this usecase all files are always empty.

Here is simple performance comparison: list vs tree:
cy6ergn0m@cgmachine /e4/sandbox/heap $ time cat ../x | grep ^610845$ ../x
610845
cat ../x  0,00s user 0,00s system 2% cpu 0,127 total
grep --color ^610845$ ../x  0,08s user 0,03s system 87% cpu 0,136 total
cy6ergn0m@cgmachine /e4/sandbox/heap $ time stat 610845            
  File: `610845'
  Size: 0               Blocks: 0          IO Block: 4096   пустой
обычный файл
Device: 804h/2052d      Inode: 1520242     Links: 1
Access: (0644/-rw-r--r--)  Uid: (  500/cy6ergn0m)   Gid: (  500/cy6ergn0m)
Access: 2010-04-13 10:17:58.119477521 +0400
Modify: 2010-04-13 10:17:58.119477521 +0400
Change: 2010-04-13 10:17:58.119477521 +0400
stat 610845  0,00s user 0,00s system 75% cpu 0,005 total
cy6ergn0m@cgmachine /e4/sandbox/heap $


I know that filesystems is not targeted for this usecase, but inodes
limit looks strange.. why they are can't be allocated dinamically? Can I
enlarge this limit on the fly?
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
No space left on device after many files creation, cy6erGn0m, (Mon Apr 12, 2:20 pm)
Re: No space left on device after many files creation, Eric Sandeen, (Mon Apr 12, 2:28 pm)
Re: No space left on device after many files creation, Eric Sandeen, (Mon Apr 12, 3:00 pm)
Re: No space left on device after many files creation, cy6erGn0m, (Mon Apr 12, 11:35 pm)
Re: No space left on device after many files creation, Eric Sandeen, (Tue Apr 13, 8:34 am)