You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@inlong.apache.org by GitBox <gi...@apache.org> on 2021/07/28 11:27:03 UTC

[GitHub] [incubator-inlong] dockerzhang opened a new issue #719: [INLONG-120] Aligned disk data storage

dockerzhang opened a new issue #719:
URL: https://github.com/apache/incubator-inlong/issues/719


   <p>1. Data read and write operations should consider the characteristics of the disk, for example, the disk is based on 512-byte sectors as its storage unit, and read data in batches of 64k; the file system will eliminate the cache according to certain rules Pages in memory etc. If the read and write operations take these contents into account, I believe that the current TPS can be higher;</p>
   
   <p>-----------------------------------</p>
   
   <p>I understand the reason for this problem, the problem I think is that the data alignment needs to be considered when storing data to disk, so that the head can read the data with as few accesses as possible. For example, the data b in the picture, when it unaligned stored, two sectors need to be accessed, but the head only needs to access and read one sector after aligned storage:</p>
   
   <p><span class="image-wrap" style=""><img src="https://issues.apache.org/jira/secure/attachment/13003002/13003002_image-2020-05-15-11-28-20-118.png" style="border: 0px solid black" /></span>  <br/>
    The performance difference of this problem may not be obvious under a single access, but under the reading of massive messages, the performance will be essentially improved from quantitative to qualitative changes, especially since TubeMQ internally reads data randomly, it is more necessary to consider this .</p>
   
   <p>After the modification, a new problem introduced based on this modification needs our attention, that is, the storage space used after the system modification will increase under the same data amount. As shown in the picture, because the data is aligned, for small packet data (below the sector size ) a, will occupy more space. However, considering that the overall performance of the disk is unchanged, and the disk space can reach a very high capacity, this waste is considered acceptable to me</p>
   
   <p>For the optimization of this problem, do you have any suggest ? If not, I am going to claim this modification and optimize it according to this idea.</p>
   <i>JIRA link - <a href="https://issues.apache.org/jira/browse/INLONG-120">[INLONG-120]</a> created by gosonzhang</i>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@inlong.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-inlong] gosonzhang commented on issue #719: [INLONG-120] Aligned disk data storage

Posted by GitBox <gi...@apache.org>.
gosonzhang commented on issue #719:
URL: https://github.com/apache/incubator-inlong/issues/719#issuecomment-942936451


   Closed due to long periods of inactivity
   
   Please reopen it if needed


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@inlong.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-inlong] gosonzhang closed issue #719: [INLONG-120] Aligned disk data storage

Posted by GitBox <gi...@apache.org>.
gosonzhang closed issue #719:
URL: https://github.com/apache/incubator-inlong/issues/719


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@inlong.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org