All of lore.kernel.org
 help / color / mirror / Atom feed
From: Edward Shishkin <edward.shishkin@gmail.com>
To: Dushan Tcholich <dusanc@gmail.com>
Cc: reiserfs-devel <reiserfs-devel@vger.kernel.org>
Subject: Re: Long rm times of ccreg40 R4 files
Date: Fri, 23 Apr 2010 12:08:13 +0200	[thread overview]
Message-ID: <4BD1718D.808@gmail.com> (raw)
In-Reply-To: <z2la08621851004230137s75d5c7e4h89ee72477fca56ba@mail.gmail.com>

Dushan Tcholich wrote:
> I was restructuring my partition layout on some disk where I had plain
> R4, and while doing it I deleted some large files.
> I was suprised how short delete times were.
> So on cc partition I created incompressable file ( as per Edwards
> instructions http://marc.info/?l=reiserfs-devel&m=121262617103900&w=2)
> and:
>
> localhost ~ # ls -l /w*
> -rw-r--r-- 1 root root 2600005632 Apr 23 10:22 /windows.qcow2
> localhost ~ # time rm /windows.qcow2
>
> real    0m0.537s
> user    0m0.000s
> sys     0m0.456s
>
> But when that file is managed with ccreg40 plugin on same partition:
> localhost ~ # ls -l /w*
> -r--r--r-- 1 root root 2600005632 Apr 23 10:29 /w.qcow2
> localhost ~ # time rm /w.qcow2
>
> real    1m1.523s
> user    0m0.000s
> sys     0m17.685s
>
>   

Data of a large ccreg40 file is scattered on many-many formatted
nodes, so in order to delete such file we need to scan the tree and
perform expensive surgery.

While a reg40 file is just one extent pointer in a formatted node :)

Edward.

> iotop: 2044 be/4 root       16.23 M/s   16.25 M/s  ?unavailable?  rm /w.qcow2
>
> If I can give any more data feel free to ask
>
> Have a nice day
>
> Dushan
>
> PS.
> localhost ~ # uname -a
> Linux localhost 2.6.31-hh #1 SMP Sat Feb 6 17:58:52 CET 2010 x86_64
> Intel(R) Core(TM)2 CPU 6400 @ 2.13GHz GenuineIntel GNU/Linux
>
> /dev/md2                /               reiser4         noatime         0 0
>
> Partition on Raid1 created with plain mkfs.reiser4 -o create=ccreg40
> --
> To unsubscribe from this list: send the line "unsubscribe reiserfs-devel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
>   


      parent reply	other threads:[~2010-04-23 10:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-23  8:37 Long rm times of ccreg40 R4 files Dushan Tcholich
2010-04-23  9:26 ` Bartosz Szreder
2010-04-23 10:08 ` Edward Shishkin [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=4BD1718D.808@gmail.com \
    --to=edward.shishkin@gmail.com \
    --cc=dusanc@gmail.com \
    --cc=reiserfs-devel@vger.kernel.org \
    /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.