Skip to contentSkip to conversation

Default low water mark threshold for a new thin pool

DISCUSSION M. Mohan Kumar 2 participants 3 messages Feb 5, 2013 Device mapper

lore
Share & tools
lore
#0 lore raw

Hello,

We are adding a lvm2api for creating a thin pool. During thin pool creation if user does not specify anything for the low water mark thresold, it would result in 0 and no events will be generated when thin pool capacity is reaching its full size. IMHO, if user does not specify anything during thin pool creation, we can assume some value something like 25%, so that when a thin pool is consumed more than 75%, there will be an event generated for that pool.

I am not sure what should be the default low water threshold percentage. Is there any recommended value for low water threshold value in dm thin pools?

Regards,
M. Mohan Kumar

--
lvm-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/lvm-devel

#1 lore raw
Quoted 7 lines · M. Mohan Kumar

Hello,

We are adding a lvm2api for creating a thin pool. During thin pool creation if user does not specify anything for the low water mark thresold, it would result in 0 and no events will be generated when thin pool capacity is reaching its full size.

An event will be generated.

Quoted 3 lines

I am not sure what should be the default low water threshold percentage. Is there any recommended value for low water threshold value in dm thin pools?

It's very hard to say since it depends on your use case. In general you want to allow dmeventd plenty of time to extend the pool before you run out of space. So if you're seeing a _peak_ provisioning rate of 100meg a minute, I'd set the lwm to about 100meg. It would be nice if LVM could help you through this process.

- Joe

--
lvm-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/lvm-devel

#2 lore raw
Quoted 10 lines · [email protected] writes:
Quoted 7 lines · M. Mohan Kumar

Hello,

We are adding a lvm2api for creating a thin pool. During thin pool creation if user does not specify anything for the low water mark thresold, it would result in 0 and no events will be generated when thin pool capacity is reaching its full size.

An event will be generated.

Yeah, I missed that. But if thin pool is consumed fully there is no enough time to resize the pool and it may result in unwanted scenario?

Quoted 10 lines
Quoted 4 lines

I am not sure what should be the default low water threshold percentage. Is there any recommended value for low water threshold value in dm thin pools?

It's very hard to say since it depends on your use case. In general you want to allow dmeventd plenty of time to extend the pool before you run out of space. So if you're seeing a _peak_ provisioning rate of 100meg a minute, I'd set the lwm to about 100meg. It would be nice if LVM could help you through this process.

Do you mean mesaure how much MB/blocks dm-thin is able to provision in a minute and treat it as the default lwm blocks?

Quoted 7 lines

- Joe

--
lvm-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/lvm-devel

--
lvm-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/lvm-devel