Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deepin: Use BFQ as the elevator for SQ rotate devices #421

Open
wants to merge 2 commits into
base: linux-6.6.y
Choose a base branch
from

Commits on Sep 16, 2024

  1. deepin: Use BFQ as the elevator for SQ devices

    For hdd optimize.
    Question: 
    1.How to test QUEUE_FLAG_NONROT?
    2.It is correct time to get the flag??
    3.If we can get the flag,so we can only use BFQ elevator for hdd.
    
    Link:zen-kernel/zen-kernel@c614dbb
    opsiff authored Sep 16, 2024
    Configuration menu
    Copy the full SHA
    3f4d760 View commit details
    Browse the repository at this point in the history
  2. deepin: only use BFQ as the elevator for single queue rotate devices

    Why: bfq elevator shows high bandwidth in read/write than other in hdd.[1]
    
    Question:
    It is correct time to get the flag?
    
    If we can get the flag,so we can only use BFQ elevator for hdd.
    or it is same as before.
    
    Answer:
    It is ok for:
    use this macro:blk_queue_flag_set(QUEUE_FLAG_NONROT
    for no rotate block device like ssd:
    blk_queue_flag_set(QUEUE_FLAG_NONROT
    device_add_disk->
    elevator_init_mq->
    elevator_get_default-> choose mq-deadline
    for rotate device like hdd:
    device_add_disk->
    elevator_init_mq->
    elevator_get_default-> choose bfq
    
    Link:https://ieeexplore.ieee.org/document/7469567 [1]
    
    Signed-off-by: Wentao Guan <[email protected]>
    opsiff committed Sep 16, 2024
    Configuration menu
    Copy the full SHA
    ad0a462 View commit details
    Browse the repository at this point in the history