From: Zhou Bo
This patch adds btrfs snapshot function test to xfstests.
Signed-off-by: Zhou Bo
---
285 | 365 +++
285.out |2 +
group |1 +
3 files changed, 368 insertions(+), 0 deletions(-)
create mode 100755 285
cre
While testing with my buffer read fio jobs[1], I find that btrfs does not
perform well enough.
Here is a scenario in fio jobs:
We have 4 threads, "t1 t2 t3 t4", starting to buffer read a same file,
and all of them will race on add_to_page_cache_lru(), and if one thread
successfully puts its page
On 07/21/2012 02:42 AM, Zach Brown wrote:
>> +struct page *page;
>> +int i = 0;
>> +int nr = 0;
>
> i doesn't need to be initialized.
>
>> for (page_idx = 0; page_idx < nr_pages; page_idx++) {
>> -struct page *page = list_entry(pages->prev, struct page, lru);
>> +
On Fri, Jul 20, 2012 at 12:36 PM, Goffredo Baroncelli
wrote:
> On 07/20/2012 09:15 PM, Josef Bacik wrote:
>> SSD's do not gain anything by having metadata DUP turned on. The underlying
>> file system that is a part of all SSD's could easily map duplicate metadat
>
> If I understood correctly you
In support of the recently added capability to remount with lzo
compression, provide a helper function to check the compression
INCOMPAT flags when remounting with lzo compression, and set
the flags if necessary.
Also, implement the new helper function when defragmenting with
explicit lzo compress
The following patch is against Josef's btrfs-next repository,
and depends on Arnd Hannemann's patch:
"Btrfs: allow mount -o remount,compress=no"
The method was based on a previous example of checking for
lzo INCOMPAT used by Li Zefan when defragmenting with explicit
compression ("btrfs: Allow to s
There is a small window where an eb can have no IO bits set on it, which
could potentially result in extent_buffer_under_io() returning false when we
want it to return true, which could result in not fun things happening. So
in order to protect this case we need to hold the refs_lock when we make
This sounds sort of impossible but it is the only thing I can think of and
at the very least it is theoretically possible so here it goes.
If we are in try_release_extent_buffer we will check that the ref count on
the extent buffer is 1 and not under IO, and then go down and clear the tree
ref. I
I noticed while looking at an extent_buffer race that we will
unconditionally return 1 if we get down to release_extent_buffer after
clearing the tree ref. However we can easily race in here and get a ref on
the eb and not actually free the eb. So make release_extent_buffer return 1
if it free'd
On 07/20/2012 09:15 PM, Josef Bacik wrote:
> SSD's do not gain anything by having metadata DUP turned on. The underlying
> file system that is a part of all SSD's could easily map duplicate metadat
If I understood correctly you are stating that because an SSD *might*
"eliminates the benefit of du
When defragmenting with explicit lzo compression, simplify
the check for lzo INCOMPAT by using the new common function
introduced to support remounting with lzo compression.
Signed-off-by: Mitch Harder
---
fs/btrfs/ioctl.c |7 +--
1 files changed, 1 insertions(+), 6 deletions(-)
diff --
In support of the recently added capability to remount with lzo
compression, check the compression INCOMPAT flags when remounting
with lzo compression, and set the flags if necessary.
Signed-off-by: Mitch Harder
---
v1-v2:
- Remove extraneous formatting change.
fs/btrfs/ctree.h |1 +
fs/btr
SSD's do not gain anything by having metadata DUP turned on. The underlying
file system that is a part of all SSD's could easily map duplicate metadat
blocks into the same erase block which effectively eliminates the benefit of
duplicating the metadata on disk. So detect if we are formatting a si
> + struct page *page;
> + int i = 0;
> + int nr = 0;
i doesn't need to be initialized.
> for (page_idx = 0; page_idx < nr_pages; page_idx++) {
> - struct page *page = list_entry(pages->prev, struct page, lru);
> + page = list_entry(pages->prev, struct pa
On Fri, Jul 20, 2012 at 12:20:56PM -0600, Josef Bacik wrote:
> On Fri, Jul 20, 2012 at 12:18:59PM -0600, Zach Brown wrote:
> > > +static int is_ssd(const char *file)
> > > +{
> > > + char *dev = strrchr(file, '/');
> >
> > [ ... ]
> >
> > > + snprintf(path, PATH_MAX, "/sys/block/%s/queue/rotatio
On Fri, Jul 20, 2012 at 02:20:56PM -0400, Josef Bacik wrote:
>
> Partitions are for losers.
*fist bump*
- z
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-inf
On Fri, Jul 20, 2012 at 12:18:59PM -0600, Zach Brown wrote:
> > +static int is_ssd(const char *file)
> > +{
> > + char *dev = strrchr(file, '/');
>
> [ ... ]
>
> > + snprintf(path, PATH_MAX, "/sys/block/%s/queue/rotational", dev);
> > + fd = open(path, O_RDONLY);
>
> Hmm, this doesn't see
> +static int is_ssd(const char *file)
> +{
> + char *dev = strrchr(file, '/');
[ ... ]
> + snprintf(path, PATH_MAX, "/sys/block/%s/queue/rotational", dev);
> + fd = open(path, O_RDONLY);
Hmm, this doesn't seem right. The last path component can have nothing
to do with the underlyi
On Fri, Jul 20, 2012 at 11:36:20AM -0600, Mitch Harder wrote:
> In support of the recently added capability to remount with lzo
> compression, check the compression INCOMPAT flags when remounting
> with lzo compression, and set the flags if necessary.
>
> Signed-off-by: Mitch Harder
> ---
> fs/b
When defragmenting with explicit lzo compression, simplify
the check for lzo INCOMPAT by using the new common function
introduced to support remounting with lzo compression.
Signed-off-by: Mitch Harder
---
fs/btrfs/ioctl.c |7 +--
1 files changed, 1 insertions(+), 6 deletions(-)
diff --
In support of the recently added capability to remount with lzo
compression, check the compression INCOMPAT flags when remounting
with lzo compression, and set the flags if necessary.
Signed-off-by: Mitch Harder
---
fs/btrfs/ctree.h |1 +
fs/btrfs/super.c | 21 -
2 file
The following patches are against Josef's btrfs-next repository,
and depend on Arnd Hannemann's "Btrfs: allow mount -o remount,compress=no"
patch.
The method was based on a previous example of checking for
lzo INCOMPAT used by Li Zefan when defragmenting with explicit
compression ("btrfs: Allow to
SSD's do not gain anything by having metadata DUP turned on. The underlying
file system that is a part of all SSD's could easily map duplicate metadat
blocks into the same erase block which effectively eliminates the benefit of
duplicating the metadata on disk. So detect if we are formatting a si
Am Freitag, 20. Juli 2012 schrieb Remco Hosman:
> > 11 really fast 15000rpm FC / SAS disks could possibly do 936 MB/s.
> > But regular 7200rpm SATA disks depending to the on disk location
> > might be as slow as 40-50 MB/s – just try fio disk-zone-profile on
> > one if you do not believe this – and
On Wed, Jul 18, 2012 at 08:31:05PM -0600, Liu Bo wrote:
> On 07/19/2012 10:05 AM, David Sterba wrote:
[ pagevec vs array ]
> Sorry, I see no difference between 16 pages array and pagevec(14 pages), and
> I have no idea why ext4 use 16 pages array(maybe historical reasons), but IMO
> it is proper
On Fri, Jul 20, 2012 at 5:23 PM, Shavi N wrote:
> Hence I'm asking.. I know that I get fast copy/write speeds on the
> btrfs volume from real life situations,
How did you know that? So far none of your posted test result have
shown that btrfs vol in your system is FAST.
--
Fajar
--
To unsubscri
Martin,
I agree with you 100% that dd does not measure proper performance (and
that /dev/zero is not a very good test).
Hence I'm asking.. I know that I get fast copy/write speeds on the
btrfs volume from real life situations, but NOT with samba.
So, is there something I can do to test why samba
Op 20-7-2012 11:15, Martin Steigerwald schreef:
Am Freitag, 20. Juli 2012 schrieb Shavi N:
On Fri, Jul 20, 2012 at 12:19 AM, Martin Steigerwald
wrote:
Am Donnerstag, 19. Juli 2012 schrieb Shavi N:
Hi,
Hi Shavi,
Thanks.
This is the output:
btrfs:
$ dd if=/dev/zero of=/mnt/shared/misc/te
Am Freitag, 20. Juli 2012 schrieb Shavi N:
> On Fri, Jul 20, 2012 at 12:19 AM, Martin Steigerwald
>
> wrote:
> > Am Donnerstag, 19. Juli 2012 schrieb Shavi N:
> >> Hi,
> >
> > Hi Shavi,
> >
> >> Thanks.
> >>
> >> This is the output:
> >> btrfs:
> >> $ dd if=/dev/zero of=/mnt/shared/misc/temp_
29 matches
Mail list logo