Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: "7.4.2 virtual memory"항목 제거

Table of Contents

...


Type
System
Level range
Remarks
IQAHW1~9Requires Intel QAT H/W compression board
ZLIBSW1~9-
LZ4SW1~9-
NONE--OFF


The command to set the compression plug-in is as follows.

TypeCommandsExample output
IQAdrx-ctl set compress iqa [level] [connect name] 


Code Block
themeDJango
titleset compress
collapsetrue
< Set compression plug-in to IQA >
[root@c73-qat-1 drbd.d]# drx-ctl set compress iqa 1 r0-c73-qat-2-c73-qat-1
r0-c73-qat-2-c73-qat-1: updated.
Result: 1 resource(s) updated.

[root@c73-qat-1 drbd.d]#


ZLIB drx-ctl set compress zlib [level] [connect name] 


Code Block
themeDJango
titleset compress
collapsetrue
< Set compression plug-in to ZLIB >
[root@c73-qat-1 drbd.d]# drx-ctl set compress zlib 1 r0-c73-qat-2-c73-qat-1
r0-c73-qat-2-c73-qat-1: updated.
Result: 1 resource(s) updated.

[root@c73-qat-1 drbd.d]#


LZ4drx-ctl set compress lz4 [level] [connect name] 


Code Block
themeDJango
titleset compress
collapsetrue
< Set compression plug-in to LZ4 >
[root@c73-qat-1 drbd.d]# drx-ctl set compress lz4 1 r0-c73-qat-2-c73-qat-1
r0-c73-qat-2-c73-qat-1: updated.
Result: 1 resource(s) updated.

[root@c73-qat-1 drbd.d]#


NONEdrx-ctl set compress none 0 [connect name] 


Code Block
themeDJango
titleset compress
collapsetrue
< Turn off compression plug-ins >
[root@c73-qat-1 drbd.d]# drx-ctl set compress none 0 r0-c73-qat-2-c73-qat-1
r0-c73-qat-2-c73-qat-1: updated.
Result: 1 resource(s) updated.

[root@c73-qat-1 drbd.d]#



...

  • QA team's analysis of performance impact
    • /wiki/spaces/QA/pages/925794470

      ConfigurationCPU Core countNumber of automatically calculated threads
      S/W Zlib Level 18 Core / 1GBps 4
      H/W Zlib Level 116 Core / 2GBps8


  • Commands


    Code Block
    themeDJango
    titleprocess-thread-count
    collapsetrue
    < Configuration >
    [root@c73-qat-1 drbd.d]# drx-ctl set process-thread-count 10
    Result: done.
    
    [root@c73-qat-1 drbd.d]# 
    
    
    < Check > 
    [root@c73-qat-1 drbd.d]# drx-ctl show all
    ...
    ip-verification=on
    process-thread-count=10
    
    [root@c73-qat-1 drbd.d]#
    
    


...

  • Change TCP socket buffer size
    • Server used for testing : Server of Appendix D. Appliance Configuration Guide
    • References link : https://www.ibm.com/support/knowledgecenter/en/SSZTET_10.1/smpi01/smpi01_tysfbpjp.html
    • Default : 208KBytes


      Code Block
      themeDJango
      [root@c73-qat-1 drbd.d]# sysctl -a | grep net.core.[rw]mem
      net.core.rmem_default = 212992
      net.core.rmem_max = 212992
      net.core.wmem_default = 212992
      net.core.wmem_max = 212992
      [root@c73-qat-1 drbd.d]#
      
      


    • Modify command : Change the max entry to 2 MBytes.


      Code Block
      themeDJango
      sysctl -w net.core.rmem_max="2097152"
      sysctl -w net.core.wmem_max="2097152" 


      Info

      The set value is not an absolute value and the performance result may be different depending on server and network environment.

7.4.2 Virtual Memory Management

The virtual memory size of process information is the total amount of memory used by the process. Linux can adjust the virtual memory size used by the process through the environment variable MALLOC_ARENA_MAX. Windows is excluded because it can only change the total size of virtual memory.

You can control the amount of virtual memory used by the DRX process. Linux can adjust the virtual memory size used by the process through the environment variable MALLOC_ARENA_MAX. Windows is excluded because it can only change the total size of virtual memory.

Info

Setting environment variables can affect the entire system because it adjusts the memory pool of the process. 

There should be enough testing to proceed.

    the way to set MALLOC_ARENA_MAX value.
    Code Block
    $> export MALLOC_ARENA_MAX=1 
    Info

    The value "1" in the example is not an absolute value and should be set differently depending on the server and environment.

    Considerations
    Changing the value of MALLOC_ARENA_MAX reduces virtual memory usage but may increase CPU utilization
    • .