[SERVER-6849] Remove --cpu flag Created: 24/Aug/12  Updated: 15/Nov/21  Resolved: 15/Nov/21

Status: Closed
Project: Core Server
Component/s: Diagnostics
Affects Version/s: 2.2.0-rc0
Fix Version/s: 5.2.0

Type: Bug Priority: Major - P3
Reporter: Randolph Tan Assignee: Benety Goh
Resolution: Done Votes: 0
Labels: neweng, newgrad
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Documented
is documented by DOCS-14935 [SERVER] Investigate changes in SERVE... Closed
Related
is related to SERVER-29000 Remove the db webserver Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Execution Team 2021-11-29
Participants:

 Description   

Currently, the --cpu displays the elapsed time between now and the last time the log for "cpu utilization" was written, which is almost a constant 4 because the thread sleeps for 4 seconds. This does not show cpu utilization and can be misleading, so either: fix the help message to reflect what it really shows, fix the code to actually show cpu utilization or remove it altogether.



 Comments   
Comment by Githook User [ 15/Nov/21 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-6849 Remove --cpu flag
Branch: master
https://github.com/mongodb/mongo/commit/9ab09dbb5595b2c98465ce7eef7d3602e5dc786d

Comment by Randolph Tan [ 03/Nov/21 ]

Note: this commit removed the code that spins the thread mentioned in the description. The cpu parameter appears to be still in master but it doesn't look like it is used anywhere.

Comment by Andrew Morrow (Inactive) [ 24/Mar/17 ]

Whether or not the flag does anything anymore, we have better tools to achieve this now. We should remove the flag.

Generated at Thu Feb 08 03:12:52 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.