Skip to content

Commit

Permalink
disk: setting read_ahead_kb after add_random so the read ahead value …
Browse files Browse the repository at this point in the history
…is not reset
  • Loading branch information
wwmm committed Oct 7, 2024
1 parent 3c010a0 commit b611cd8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/fastgame_apply.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
#include <boost/property_tree/json_parser.hpp>
#include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/ptree_fwd.hpp>
#include <chrono>
#include <cstdint>
#include <filesystem>
#include <fstream>
Expand Down Expand Up @@ -194,9 +193,9 @@ auto main([[maybe_unused]] int argc, [[maybe_unused]] char* argv[]) -> int {

enable_realtime_io_priority = root.get<bool>("disk.enable-realtime-priority", false);

update_system_setting(disk_device + "/queue/read_ahead_kb", disk_readahead);
update_system_setting(disk_device + "/queue/add_random", enable_add_random);
update_system_setting(disk_device + "/queue/scheduler", disk_scheduler);
update_system_setting(disk_device + "/queue/read_ahead_kb", disk_readahead);
update_system_setting(disk_device + "/queue/nr_requests", disk_nr_requests);
update_system_setting(disk_device + "/queue/nomerges", disk_nomerges);
update_system_setting(disk_device + "/queue/wbt_lat_usec", disk_wbt_lat_usec);
Expand Down

0 comments on commit b611cd8

Please sign in to comment.