-
Notifications
You must be signed in to change notification settings - Fork 232
Fixing incorrect variable name 'size_gb' which actually represents 'size_mb' #4409
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -98,9 +98,9 @@ def verify_cpu_hot_plug(self, log: Logger, node: Node) -> None: | |
| ) | ||
| def verify_cpu_offline_storage_workload(self, log: Logger, node: Node) -> None: | ||
| # run fio process asynchronously on the node | ||
| fio_data_size_in_gb = 1 | ||
| fio_data_size_in_mb = 1 | ||
| try: | ||
| image_folder_path = node.find_partition_with_freespace(fio_data_size_in_gb) | ||
| image_folder_path = node.find_partition_with_freespace(fio_data_size_in_mb) | ||
| # Each CPU takes ~10 seconds to toggle offline-online | ||
|
Comment on lines
+101
to
104
|
||
| fio_run_time = 300 + (node.tools[Lscpu].get_thread_count() * 10) | ||
| fio_process = node.tools[Fio].launch_async( | ||
|
Comment on lines
+101
to
106
|
||
|
|
@@ -111,7 +111,7 @@ def verify_cpu_offline_storage_workload(self, log: Logger, node: Node) -> None: | |
| numjob=10, | ||
| time=fio_run_time, | ||
| block_size="1M", | ||
| size_gb=fio_data_size_in_gb, | ||
| size_mb=fio_data_size_in_mb, | ||
| group_reporting=False, | ||
| overwrite=True, | ||
| time_based=True, | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -153,7 +153,7 @@ def verify_disk_with_fio_verify_option(self, node: Node) -> None: | |
| numjob=0, | ||
| time=0, | ||
| block_size="", | ||
| size_gb=100, | ||
| size_mb=100, | ||
| group_reporting=False, | ||
| do_verify=True, | ||
|
Comment on lines
154
to
158
|
||
| bsrange="512-256K", | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -96,7 +96,7 @@ def launch( | |
| time: int = 120, | ||
| ssh_timeout: int = 6400, | ||
| block_size: str = "4K", | ||
| size_gb: int = 0, | ||
| size_mb: int = 0, | ||
| direct: bool = True, | ||
| gtod_reduce: bool = False, | ||
|
Comment on lines
96
to
101
|
||
| group_reporting: bool = True, | ||
|
|
@@ -118,7 +118,7 @@ def launch( | |
| numjob, | ||
| time, | ||
| block_size, | ||
| size_gb, | ||
| size_mb, | ||
| direct, | ||
| gtod_reduce, | ||
| group_reporting, | ||
|
|
@@ -154,7 +154,7 @@ def launch_async( | |
| numjob: int, | ||
| time: int = 120, | ||
| block_size: str = "4K", | ||
| size_gb: int = 0, | ||
| size_mb: int = 0, | ||
| direct: bool = True, | ||
| gtod_reduce: bool = False, | ||
| group_reporting: bool = True, | ||
|
|
@@ -176,7 +176,7 @@ def launch_async( | |
| numjob, | ||
| time, | ||
| block_size, | ||
| size_gb, | ||
| size_mb, | ||
| direct, | ||
| gtod_reduce, | ||
| group_reporting, | ||
|
|
@@ -326,7 +326,7 @@ def _get_command( # noqa: C901 | |
| numjob: int = 0, | ||
| time: int = 120, | ||
| block_size: str = "4K", | ||
| size_gb: int = 0, | ||
| size_mb: int = 0, | ||
| direct: bool = True, | ||
| gtod_reduce: bool = False, | ||
| group_reporting: bool = True, | ||
|
|
@@ -358,8 +358,8 @@ def _get_command( # noqa: C901 | |
| cmd += " --direct=1" | ||
| if gtod_reduce: | ||
| cmd += " --gtod_reduce=1" | ||
| if size_gb: | ||
| cmd += f" --size={size_gb}M" | ||
| if size_mb: | ||
| cmd += f" --size={size_mb}M" | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. just change this into
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If we do this all fio tests will run against GB ( * 1024 ) of current values. Which will result in timeouts as the time required for fio file size in GBs will be more than MBs.
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. "perf_disk()" accepts the value as 'size_mb' but passing the value to "fio.launch()" as 'size_gb'. This is a typo issue not a test case issue.
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If you want to run current fio tests against 1023GB like we had in lisav2, I can raise a different PR for that after through testing. This is for just fixing the typo which impacts testcases not just disk perf tests but CPU and Power test cases as well.
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @SRIKKANTH thanks for fixing this, but I still would like to just change
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let me put the PR in draft until I finish the validation with you suggestion. |
||
| if group_reporting: | ||
| cmd += " --group_reporting" | ||
| if overwrite: | ||
|
|
||

There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the unit of this method find_partition_with_freespace is gb