-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-20817][core] Fix to return "Unknown processor" on ppc and 390 platforms by Benchmark.getProcessorName() #18042
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
Conversation
|
Test build #77119 has finished for PR 18042 at commit
|
|
ping @rxin |
|
Does it matter that the format of the output isn't quite in the same format - is it just used for display? |
|
It is due to differences among CPU architectures. Here are original outputs of POWER S390 |
|
Yeah I get that, but does it cause a problem? it won't if it's just for display, but that's what I'm asking. |
|
Does this really matter? I'd rather not complicate the actual code for it to display properly in some niche hardware that very few people use. |
|
@kiszk unless you want to make the output of this function consistent, I'd say I'm not clear that this is a good change |
|
@srowen What do you mean "consistent"? Is it good to use a consistent format "processor identification information @ clock"? Any other great ideas are appreciated. |
|
For example, S390 appears to output "cpu, machine", not "cpu @ clock". If this is actually used by code somewhere it needs to be consistent right? if it's just for display, it's a nice-to-have, but still, seems nicer to output similar strings? |
|
I see. I will try to use "cpu @ clock" format. |
|
Please let's not waste more time here. I don't think the gain is worth the effort required (or even the discussions here). |
## What changes were proposed in this pull request? This PR proposes to close stale PRs, mostly the same instances with apache#18017 I believe the author in apache#14807 removed his account. Closes apache#7075 Closes apache#8927 Closes apache#9202 Closes apache#9366 Closes apache#10861 Closes apache#11420 Closes apache#12356 Closes apache#13028 Closes apache#13506 Closes apache#14191 Closes apache#14198 Closes apache#14330 Closes apache#14807 Closes apache#15839 Closes apache#16225 Closes apache#16685 Closes apache#16692 Closes apache#16995 Closes apache#17181 Closes apache#17211 Closes apache#17235 Closes apache#17237 Closes apache#17248 Closes apache#17341 Closes apache#17708 Closes apache#17716 Closes apache#17721 Closes apache#17937 Added: Closes apache#14739 Closes apache#17139 Closes apache#17445 Closes apache#18042 Closes apache#18359 Added: Closes apache#16450 Closes apache#16525 Closes apache#17738 Added: Closes apache#16458 Closes apache#16508 Closes apache#17714 Added: Closes apache#17830 Closes apache#14742 ## How was this patch tested? N/A Author: hyukjinkwon <[email protected]> Closes apache#18417 from HyukjinKwon/close-stale-pr.
What changes were proposed in this pull request?
This PR fixes that
Benchmark.getProcessorName()returnsUnknown processorstring on ppc and 390 Linux platforms.After applying this PR,
Benchmark.getProcessorName()on two Linux platforms return the following strings:ppc64le:
s390x:
How was this patch tested?
Manually tested on ppc64le and s390x Linux platforms