Skip to contentSkip to conversation

how to free space from rados bench comman?

DISCUSSION Stefan Priebe - Profihost AG 4 participants 8 messages May 24, 2012

lore
Share & tools
lore
#0 lore raw

Hi,

every rados bench write uses disk space and my space fills up. How to free this space again?

Used command?
rados -p data bench 60 write -t 16

Stefan

#1 lore raw

Hi,

Quoted 7 lines · Stefan Priebe - Profihost AG

Hi,

every rados bench write uses disk space and my space fills up. How to free this space again?

Used command?
rados -p data bench 60 write -t 16

What does this show:

$ rados -p data ls|wc -l

If that shows something greater than 0 it means you still have objects in that pool which are using up space.

Try removing those objects manually. Be cautious not to remove any other objects!

To be safe I'd recommend running benchmark commands in a separate pool.

Also note that when you remove objects it will take some time before the OSD's have removed them and you see the usage go down with "ceph -s".

Wido

Quoted 6 lines

Stefan
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#2 lore raw

Am 24.05.2012 09:28, schrieb Wido den Hollander:

Quoted 8 lines

Hi,

Quoted 5 lines · Stefan Priebe - Profihost AG

Hi,

every rados bench write uses disk space and my space fills up. How to free this space again?

Quoted 6 lines
Quoted 2 lines

Used command?
rados -p data bench 60 write -t 16

What does this show:

$ rados -p data ls|wc -l

~# rados -p data ls|wc -l
46631

I do not use the data pool so it is seperate ;-) i only use the rbd pool for block devices.

So i will free the space with:
for i in rados -p data ls; do echo $i; rados -p data rm $i; done

Thanks!

Stefan

#3 lore raw
Quoted 12 lines · Stefan Priebe - Profihost AG

Am 24.05.2012 09:28, schrieb Wido den Hollander:

Quoted 11 lines

Hi,

Quoted 7 lines · Stefan Priebe - Profihost AG

Hi,

every rados bench write uses disk space and my space fills up. How to free this space again?

Used command?
rados -p data bench 60 write -t 16

Quoted 6 lines
Quoted 3 lines

What does this show:

$ rados -p data ls|wc -l

~# rados -p data ls|wc -l
46631

That is weird, I thought the bench tool cleaned up it's "mess".

Imho it should cleanup after it's done, but there might be a reason why it's not. Did you abort the benchmark or did you let it do the whole run?

Quoted 6 lines

I do not use the data pool so it is seperate ;-) i only use the rbd pool for block devices.

So i will free the space with:
for i in rados -p data ls; do echo $i; rados -p data rm $i; done

rados -p data ls|xargs -n 1 rados -p data rm

I love shorter commands ;)

Wido

Quoted 8 lines

Thanks!

Stefan
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#4 lore raw

Am 24.05.2012 10:22, schrieb Wido den Hollander:

Quoted 9 lines · Stefan Priebe - Profihost AG
Quoted 3 lines

~# rados -p data ls|wc -l
46631

That is weird, I thought the bench tool cleaned up it's "mess".

Imho it should cleanup after it's done, but there might be a reason why it's not. Did you abort the benchmark or did you let it do the whole run?

No it doesn't BUG?

~# rados -p data ls
~#
~# rados -p data bench 20 write -t 16
...
~# rados -p data ls| wc -l
589

Quoted 9 lines
Quoted 5 lines

I do not use the data pool so it is seperate ;-) i only use the rbd pool for block devices.

So i will free the space with:
for i in rados -p data ls; do echo $i; rados -p data rm $i; done

rados -p data ls|xargs -n 1 rados -p data rm

I love shorter commands ;)

me too i just tried it without -n and hoped that this works but rados didn't support more than 1 file per command and i didn't remembered -n1 ;)

Stefan

#5 lore raw
Quoted 8 lines · Stefan Priebe - Profihost AG

Am 24.05.2012 10:22, schrieb Wido den Hollander:

Quoted 7 lines · Stefan Priebe - Profihost AG
Quoted 3 lines

~# rados -p data ls|wc -l
46631

Quoted 7 lines
Quoted 4 lines

That is weird, I thought the bench tool cleaned up it's "mess".

Imho it should cleanup after it's done, but there might be a reason why it's not. Did you abort the benchmark or did you let it do the whole run?

No it doesn't BUG?

It doesn't because you might want to leave around the data for read benchmarking (or so that your cluster is full of data). There should probably be an option to clean up bench data, though! I've created a bug: http://tracker.newdream.net/issues/2477

Quoted 27 lines

~# rados -p data ls
~#
~# rados -p data bench 20 write -t 16
...
~# rados -p data ls| wc -l
589

Quoted 11 lines
Quoted 5 lines

I do not use the data pool so it is seperate ;-) i only use the rbd pool for block devices.

So i will free the space with:
for i in rados -p data ls; do echo $i; rados -p data rm $i; done

rados -p data ls|xargs -n 1 rados -p data rm

I love shorter commands ;)

me too i just tried it without -n and hoped that this works but rados didn't support more than 1 file per command and i didn't remembered -n1 ;)

Stefan
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected] (mailto:[email protected]) More majordomo info at http://vger.kernel.org/majordomo-info.html

#6 lore raw
Quoted 11 lines · Greg Farnum
Quoted 10 lines · Stefan Priebe - Profihost AG

Am 24.05.2012 10:22, schrieb Wido den Hollander:

Quoted 9 lines · Stefan Priebe - Profihost AG
Quoted 3 lines

~# rados -p data ls|wc -l
46631

That is weird, I thought the bench tool cleaned up it's "mess".

Quoted 7 lines
Quoted 5 lines
Quoted 2 lines

Imho it should cleanup after it's done, but there might be a reason why it's not. Did you abort the benchmark or did you let it do the whole run?

No it doesn't BUG?

It doesn't because you might want to leave around the data for read benchmarking (or so that your cluster is full of data). There should probably be an option to clean up bench data, though! I've created a bug: http://tracker.newdream.net/issues/2477

Why not have the read benchmark write data itself, and then benchmark reading? Then both read and write benchmarks can clean up after themselves.

It's a bit odd to have the read benchmark depend on you running a write benchmark first.

Josh

#7 lore raw
Quoted 8 lines · Josh Durgin

Why not have the read benchmark write data itself, and then benchmark reading? Then both read and write benchmarks can clean up after themselves.

It's a bit odd to have the read benchmark depend on you running a write benchmark first.

Josh

We've talked about that and decided we didn't like it. I think it was about being able to repeat large read benchmarks without having to wait for all the data to get written out first, and also (although this was never implemented) being able to implement random read benchmarks and things in ways that allowed you to make the cache cold first. Which is not to say that changing it is a bad idea; I could be talked into that or somebody else could do it. :)
-Greg