All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andi Kleen <andi@firstfloor.org>
To: cy6erGn0m <cy6ergn0m@gmail.com>
Cc: tytso@mit.edu, Eric Sandeen <sandeen@redhat.com>,
	linux-ext4@vger.kernel.org
Subject: Re: No space left on device after many files creation
Date: Thu, 15 Apr 2010 17:14:52 +0200	[thread overview]
Message-ID: <87ljco928j.fsf@basil.nowhere.org> (raw)
In-Reply-To: <4BC410AB.1030607@gmail.com> (cy6ergn0m@gmail.com's message of "Tue, 13 Apr 2010 10:35:23 +0400")

cy6erGn0m <cy6ergn0m@gmail.com> writes:
> 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.

If the files are always empty you could just create hard links: 
ln file number instead of touch.
Then you'll only need a single inode for your complete set
and also avoid a lot of seeking.

-Andi

-- 
ak@linux.intel.com -- Speaking for myself only.

      parent reply	other threads:[~2010-04-15 15:14 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-12 21:20 No space left on device after many files creation cy6erGn0m
2010-04-12 21:28 ` Eric Sandeen
2010-04-12 21:57   ` cy6erGn0m
2010-04-12 22:00     ` Eric Sandeen
2010-04-12 22:44       ` tytso
2010-04-13  6:35         ` cy6erGn0m
2010-04-13 15:34           ` Eric Sandeen
2010-04-15 15:14           ` Andi Kleen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ljco928j.fsf@basil.nowhere.org \
    --to=andi@firstfloor.org \
    --cc=cy6ergn0m@gmail.com \
    --cc=linux-ext4@vger.kernel.org \
    --cc=sandeen@redhat.com \
    --cc=tytso@mit.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.