Bug 586078
Summary: | vmstat disk device field is not long enough | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 5 | Reporter: | Casey Dahlin <cdahlin> | ||||
Component: | procps | Assignee: | Jan Görig <jgorig> | ||||
Status: | CLOSED ERRATA | QA Contact: | BaseOS QE - Apps <qe-baseos-apps> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | high | ||||||
Version: | 5.4 | CC: | albert, bnater, gianluca.cecchi, ovasik, rvokal, tumeya, vanhoof | ||||
Target Milestone: | rc | ||||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | procps-3.2.7-17.el5 | Doc Type: | Bug Fix | ||||
Doc Text: |
Cause
vmstat doesn't read whole device name if it is too long
Consequence
Devices with long name weren't showed by vmstat -d command
Fix
Increased number of maximum characters for device name
Result
Devices with long name are shown
|
Story Points: | --- | ||||
Clone Of: | |||||||
: | 596948 1169349 (view as bug list) | Environment: | |||||
Last Closed: | 2011-04-20 13:25:40 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 590060, 596948, 1169349 | ||||||
Attachments: |
|
Description
Casey Dahlin
2010-04-26 18:49:49 UTC
OK, can change this, thanks for the bug report Can I also add request to fix layout so that the command vmstat 3 returns correct headers alignment with data? As an example I'm going to attach an image where I have: - default gnome terminal window in F13 without customizations (so 80x24) (but the output result is similar running a terminal session from putty on windows or from secure shell client for windows by http://www.ssh.com) - vmstat 3 2 on F13 ---> headers are correctly aligned - ssh to localhost vmstat 3 2 ---> headers are correctly aligned - ssh to a rh el 5.5 host vmstat 3 2 ---> headers are not correctly aligned So that you have to resize your terminal.... I presume in F13 a fix was inserted. Any chance to have it in rhg el 5.5 too? And possibly in rh el 6 .... (not tried yet beta1 or beta2) Thanks for reading, Gianluca Created attachment 432079 [details]
image with vmstat disalignment in rh el 5.x anc correct in F13
I don't know if the problem arises only in big-memory configurations where you can have generally big number for "free", "cache" columns... It would be good to have a sort of auto alignment: For example if I use -S M switch I can get something like this [root@orasvi2 ~]# vmstat -S M 3 2 procs -----------memory---------- ---swap-- -----io---- --system-- -----cpu------ r b swpd free buff cache si so bi bo in cs us sy id wa st 1 46 0 24123 798 8134 0 0 7676 1730 5 4 13 4 41 41 0 0 46 0 24123 798 8134 0 0 87457 12092 12325 34963 18 6 10 66 0 where the second line has the final "0" character one line below, because "bi" column is 87457 vs 7676 of the first line..... Or perhaps it would be good to add a switch to not show some fields (for example si and so if you are not interested in them when doing a particular proactive monitoring... Gianluca This request was evaluated by Red Hat Product Management for inclusion in the current release of Red Hat Enterprise Linux. Because the affected component is not scheduled to be updated in the current release, Red Hat is unfortunately unable to address this request at this time. Red Hat invites you to ask your support representative to propose this request, if appropriate and relevant, in the next release of Red Hat Enterprise Linux. Fixed in procps-3.2.7-17.el5. Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: Cause vmstat doesn't read whole device name if it is too long Consequence Devices with long name weren't showed by vmstat -d command Fix Increased number of maximum characters for device name Result Devices with long name are shown An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2011-0459.html |