You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geode.apache.org by Alberto Gomez <al...@est.tech> on 2021/05/24 15:51:41 UTC

Question about the write-buffer-size parameter when creating a disk store

Hi,

According to the Geode documentation, it is possible to set the write buffer size by using --write-buffer-size when creating a disk store [1].

Nevertheless, looking at the code, I have not seen that setting a value for that parameter has any effect. Does anybody know if I am correct or if I am missing something?

Thanks in advance,

Alberto G.

[1] https://geode.apache.org/docs/guide/113/tools_modules/gfsh/command-pages/create.html

Re: Question about the write-buffer-size parameter when creating a disk store

Posted by Alberto Gomez <al...@est.tech>.
Thanks, Darrel.

I have created a JIRA for this issue (https://issues.apache.org/jira/browse/GEODE-9300).

Alberto
________________________________
From: Darrel Schneider <da...@vmware.com>
Sent: Monday, May 24, 2021 6:24 PM
To: dev@geode.apache.org <de...@geode.apache.org>
Subject: Re: Question about the write-buffer-size parameter when creating a disk store

I also could not find any code that used the write-buffer-size when allocating a buffer.
I did find this method: Oplog.allocateWriteBuf
It seems like this would be the allocation of the disk store write buffer.
If one is not already allocated then this method checks a sysprop and then defaults to 32k.

return ByteBuffer.allocateDirect(Integer.getInteger("WRITE_BUF_SIZE", 32768));

It seems like this code should at least also ask the DiskStoreImpl (using Oplog.parent) what the write buffer size is if the sys prop is not set.
________________________________
From: Alberto Gomez <al...@est.tech>
Sent: Monday, May 24, 2021 8:51 AM
To: dev@geode.apache.org <de...@geode.apache.org>
Subject: Question about the write-buffer-size parameter when creating a disk store

Hi,

According to the Geode documentation, it is possible to set the write buffer size by using --write-buffer-size when creating a disk store [1].

Nevertheless, looking at the code, I have not seen that setting a value for that parameter has any effect. Does anybody know if I am correct or if I am missing something?

Thanks in advance,

Alberto G.

[1] https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgeode.apache.org%2Fdocs%2Fguide%2F113%2Ftools_modules%2Fgfsh%2Fcommand-pages%2Fcreate.html&amp;data=04%7C01%7Cdarrel%40vmware.com%7Cb63852a3a5f3443fba8608d91ecbda73%7Cb39138ca3cee4b4aa4d6cd83d9dd62f0%7C0%7C0%7C637574683156060826%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=Ws2jZCItSzOU31LjWpNVl55m4J74VrkII0apK8AfGQk%3D&amp;reserved=0

Re: Question about the write-buffer-size parameter when creating a disk store

Posted by Darrel Schneider <da...@vmware.com>.
I also could not find any code that used the write-buffer-size when allocating a buffer.
I did find this method: Oplog.allocateWriteBuf
It seems like this would be the allocation of the disk store write buffer.
If one is not already allocated then this method checks a sysprop and then defaults to 32k.

return ByteBuffer.allocateDirect(Integer.getInteger("WRITE_BUF_SIZE", 32768));

It seems like this code should at least also ask the DiskStoreImpl (using Oplog.parent) what the write buffer size is if the sys prop is not set.
________________________________
From: Alberto Gomez <al...@est.tech>
Sent: Monday, May 24, 2021 8:51 AM
To: dev@geode.apache.org <de...@geode.apache.org>
Subject: Question about the write-buffer-size parameter when creating a disk store

Hi,

According to the Geode documentation, it is possible to set the write buffer size by using --write-buffer-size when creating a disk store [1].

Nevertheless, looking at the code, I have not seen that setting a value for that parameter has any effect. Does anybody know if I am correct or if I am missing something?

Thanks in advance,

Alberto G.

[1] https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgeode.apache.org%2Fdocs%2Fguide%2F113%2Ftools_modules%2Fgfsh%2Fcommand-pages%2Fcreate.html&amp;data=04%7C01%7Cdarrel%40vmware.com%7Cb63852a3a5f3443fba8608d91ecbda73%7Cb39138ca3cee4b4aa4d6cd83d9dd62f0%7C0%7C0%7C637574683156060826%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=Ws2jZCItSzOU31LjWpNVl55m4J74VrkII0apK8AfGQk%3D&amp;reserved=0