Skip to contentSkip to conversation

Question about incorrect free bits setting

Ocfs2-devel Joseph Qi 3 participants 4 messages Mar 27, 2015 – Apr 1, 2015 OCFS2

lore
Share & tools
lore

Joseph Qi

author
#0 lore raw

Hi Goldwyn,
I found you posted a mail to discuss about incorrect free bits setting.
https://oss.oracle.com/pipermail/ocfs2-devel/2012-January/008458.html

In this topic, Sunil said it was because of the patch added to delay dropping of the dentry locks (commit ea455f8ab683) and suggested to fix the quota issue in a different way.
Then you reverted the patches based on Honza's new way to fix the quota issue.
https://oss.oracle.com/pipermail/ocfs2-devel/2014-February/009662.html

I have investigated these patches and still do not know how can it happen.
Could you please tell me more about the case that bits to be cleared twice?

#1 lore raw

Hi joseph,

Quoted 11 lines · Joseph Qi

Hi Goldwyn,
I found you posted a mail to discuss about incorrect free bits setting.
https://oss.oracle.com/pipermail/ocfs2-devel/2012-January/008458.html

In this topic, Sunil said it was because of the patch added to delay dropping of the dentry locks (commit ea455f8ab683) and suggested to fix the quota issue in a different way.
Then you reverted the patches based on Honza's new way to fix the quota issue.
https://oss.oracle.com/pipermail/ocfs2-devel/2014-February/009662.html

Quoted 4 lines

I have investigated these patches and still do not know how can it happen.
Could you please tell me more about the case that bits to be cleared twice?

I am not sure how the quota patches were related. It was a long time ago.

However, what we fixed in Honza's patches is the way unlink is performed. The problem was we were getting very bad performance because of too much of journal activity. We realized that it was because the inodes were shown as busy and hence moved orphan directory, when they were not busy. It all came to the point that the open lock was still being held because it was delayed/offloaded to another thread.

I am not sure, but I guess that this delay may be messing up the accounting between the node being the owner of the lock and the one deleting the file (also requesting for the lock). I have not seen this issue for a long time now so I am not sure. Perhaps Sunil may be able to give more inputs.

Signature · 1 line
Goldwyn
#2 lore raw

Hi joseph,

Quoted 11 lines · Joseph Qi

Hi Goldwyn,
I found you posted a mail to discuss about incorrect free bits setting.
https://oss.oracle.com/pipermail/ocfs2-devel/2012-January/008458.html

In this topic, Sunil said it was because of the patch added to delay dropping of the dentry locks (commit ea455f8ab683) and suggested to fix the quota issue in a different way.
Then you reverted the patches based on Honza's new way to fix the quota issue.
https://oss.oracle.com/pipermail/ocfs2-devel/2014-February/009662.html

Quoted 4 lines

I have investigated these patches and still do not know how can it happen.
Could you please tell me more about the case that bits to be cleared twice?

I am not sure how the quota patches were related. It was a long time ago.

However, what we fixed in Honza's patches is the way unlink is performed. The problem was we were getting very bad performance because of too much of journal activity. We realized that it was because the inodes were shown as busy and hence moved orphan directory, when they were not busy. It all came to the point that the open lock was still being held because it was delayed/offloaded to another thread.

I am not sure, but I guess that this delay may be messing up the accounting between the node being the owner of the lock and the one deleting the file (also requesting for the lock). I have not seen this issue for a long time now so I am not sure. Perhaps Sunil may be able to give more inputs.

Signature · 1 line
Goldwyn
author
#3 lore raw

Hi Goldwyn,
Thanks very much for the quick reply.

Hi Sunil,
Could you help provide more inputs?

Thanks,
Joseph

Quoted 35 lines · Goldwyn Rodrigues

Hi joseph,

Quoted 11 lines · Joseph Qi

Hi Goldwyn,
I found you posted a mail to discuss about incorrect free bits setting.
https://oss.oracle.com/pipermail/ocfs2-devel/2012-January/008458.html

In this topic, Sunil said it was because of the patch added to delay dropping of the dentry locks (commit ea455f8ab683) and suggested to fix the quota issue in a different way.
Then you reverted the patches based on Honza's new way to fix the quota issue.
https://oss.oracle.com/pipermail/ocfs2-devel/2014-February/009662.html

Quoted 4 lines

I have investigated these patches and still do not know how can it happen.
Could you please tell me more about the case that bits to be cleared twice?

I am not sure how the quota patches were related. It was a long time ago.

However, what we fixed in Honza's patches is the way unlink is performed. The problem was we were getting very bad performance because of too much of journal activity. We realized that it was because the inodes were shown as busy and hence moved orphan directory, when they were not busy. It all came to the point that the open lock was still being held because it was delayed/offloaded to another thread.

I am not sure, but I guess that this delay may be messing up the accounting between the node being the owner of the lock and the one deleting the file (also requesting for the lock). I have not seen this issue for a long time now so I am not sure. Perhaps Sunil may be able to give more inputs.