United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: 7165755 OS Information much longer for linux than other platforms
7165755 : OS Information much longer for linux than other platforms

Details
Type:
Bug
Submit Date:
2012-05-02
Status:
Resolved
Updated Date:
2013-04-30
Project Name:
JDK
Resolved Date:
2012-05-26
Component:
hotspot
OS:
generic
Sub-Component:
runtime
CPU:
generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
7u6
Fixed Versions:
hs24

Related Reports
Backport:
Backport:
Backport:
Backport:
Backport:
Relates:

Sub Tasks

Description
When looking at the info from os::print_os_info() in 
src/os/linux/vm/os_linux.cpp:2024 (and other files for other platforms)
the length of the text is radically longer for linux than other platforms. 

This can make it hard for tool writers to get a summary that look good and similar for multiple platforms (sizing of gui fields, having to parse info in the tool code etc)

Lookin at the code, it's in some serious need of refactoring. It would be nice with a method to get a "brief" os info for these kinds of tools that looks similar on all platforms.

                                    

Comments
EVALUATION

http://hg.openjdk.java.net/lambda/lambda/hotspot/rev/7432b9db36ff
                                     
2012-06-29
EVALUATION

http://hg.openjdk.java.net/hsx/hotspot-main/hotspot/rev/7432b9db36ff
                                     
2012-05-23
EVALUATION

http://hg.openjdk.java.net/hsx/hsx23.2/hotspot/rev/8a074526ffca
                                     
2012-05-21
EVALUATION

http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/7432b9db36ff
                                     
2012-05-16
PUBLIC COMMENTS

If there are a lot of distro specific "release" files then potentially the info could be much longer. But beyond that I think the main difference, compared to Solaris, is printing /proc/meminfo - not sure why that is necessary. I expect that everything that gets printed was added at some point because someone needed it to assist with some specific problem.
                                     
2012-05-02



Hardware and Software, Engineered to Work Together