Testers for inxi/pinxi redone -C CPU logic... huge internal changes
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Testers for inxi/pinxi redone -C CPU logic... huge internal changes
After about a month or more of research, I was finally able to start the big CPU refactor, the very early parts of it were in inxi 3.3.09, but that was released mainly to get other bugs and issue fixes released, and had some temporary placeholder fixes and tools for CPU logic. Those are all gone, and replaced with the actual solution.
Because this is a huge change internally, and also because I had to do some very convoluted stuff to try to maintain BSD support and legacy ancient Linux support (and when I say ancient, I mean ancient), this will need a lot of testing on different hardware, aka, your hardware, since I've already tested it on mine.
Code:
# if you already have pinx installed:
pinxi -U
# if you don't, just do:
cd /usr/local/bin && sudo wget -O pinxi smxi.org/pinxi && sudo chmod +x pinxi
First run inxi to compare, it doesn't matter a lot which version, although 3.3.09 had a few fixes that earlier versions were missing, like L1/L3 caches showing without root/sudo. This is from a system that showed the wrong number of Cores, 2x as many as existed, and the wrong L2 cache, that's inxi 3.3.08.
Post with -M so I can see what the hardware is. Like:
I just got the last features on my todo list done, so this is finally ready for testing.
Note that because these are very large changes, and the old logic is very difficult to work on, I've basically preserved a significantly modified version of the old logic, minus a few features that are in the new logic, like cpu min/max speeds, which can be accessed like so:
Code:
pinxi -MCay1 --force cpuinfo
Note it's not exactly the old logic, but it's a lot of it, only a bit more organized and cleaned up.
There's a few things to check to see if it's right, use cpu-world.com data, they are quite good, do a google search like so:
search: [your cpu model, like: AMD Ryzen 5 2600] cpu-world.com
Verify that the L1, L2, and L3 caches are all correct, particularly in the per CPU totals.
Verify that the CPU type: data is correct. Note that Alder Lake is supported, that was one big reason for the full refactor, the old logic could not handle that complex cpu topology/architecture, or other ones that are coming soon. Note some changes, with -Ca, you see how many of each type of L cache there are in each cpu, as well as the total for all physical cpus.
Many corner cases were failing using the old logic, in fact, the more I looked, the more corner cases I found that were failing, the goal here, which I think is realized unless you find bugs in the logic, is that if the data is 'wrong', it's because the system reported the wrong data, which is fine, as long as inxi itself isn't the cause of the data being wrong.
There are also some debuggers that are useful to paste into a pastebin in some cases, like:
Code:
pinxi -MCazy --dbg 39 --dbg 8
will basically spit out a huge amount of data, and the entire data structures being used, as well as the results, those can be useful to track down errors in the results.
The more obscure CPUs and hardware, old operating systems, ARM SOC devices, whatever, the better, this is one where I can only crudely test for failures, but there are debuggers built in that if you run pinxi --debug 22 to upload a debugger data set, contain files I can use, at least in theory, to debug the issue without even seeing the hardware, though that has not been fully tested yet, but it should in theory work.
Thanks for all hardware/operating systems.
The main thing for BSDs is just to compare inxi and pinxi output, and make sure it didn't get worse for -Cay in pinxi, and ideally, maybe a touch better, but I think due to how little data those systems have to offer, there's not a huge set of things that can go wrong with the output beyond the failures causes by not having enough data in the first place.
Tested on Debian 3,1, sarge, 4.0, etch, in VM, tested on 5.0 on 1998 hardware, tested on Openbsd 6.9 and 7.0. And newer hardware/servers/desktops/laptops.
Of particular interest are a certain generation of intel core quadro that were made out of 2 core duos stuck together, and any ARM SOC that uses two different CPU blocks, with different speeds per block.
You must be crazy. Am I supposed to run your ixi fix whatever as root? Script or binary from unknown source? Debian testing is unimpressive. You should post something more convincing.My advice for you is go away and you know what.
You are lucky I am in forgiving mood. Most I can't stand is stupidity. [removed].
Cut your paranoia, I've been here many times, get a clue. Learn how to do forum (or better, internet) searches, and you'll find I do this fairly routinely, over the years. Obviously you missed all those times however. Or, even better, search the forums for pinxi and me, and then delete your post and just move on. If you can't forgive stupidity, then stop being stupid, for christ's sake.
You don't have to install this as root, if you don't want, it's just more convenient. And you certainly don't need to run this as root, in fact, I prefer you don't for this test.
Again, try not to derail a bug catching thread and find something else to do, please. I tend to post on the slackware for this testing because, usually (but not always, obviously, in this case) the people here are very good. Try not to embarrass them any further please since I tend to respect the people here, most of them anyway. If you can't contribute positively, then just find something else to do, I have better things to do with my time, really.
Patrick Volkerding must be really confused since he packages inxi, the stable version, pinxi being the development version, in core slackware, which you'd know if you had bothered checking before typing and hitting enter.
You have only seven threads on this forum all about testing your creations. So again tell you: go and find some enough poor guys some other place. Locate yourself on gpg server, sign your software then we can talk. For now just goodbye.
So you're going away now? Good. I'll wait for the real people to show up. Find something else to troll please, I'm not in the mood. I don't need to post often because I only do big changes occasionally (they take a lot of work and time, which if you had any clue about what free software involves, you'd respect), and when I do, I don't like wasting time in the testing phase, like you are wasting mine right now. At least you can count, that's a good sign. And when I do post here, the results and people here have been excellent, which is why I come back. Except for you, so why not admit your mistake and leave quietly before you look even more ridiculous than you already do?
Sigh. I have had such good experiences here, so positive, so valuable, helping contribute to the overall quality of the features, often able to get slackware features and support in before the new slackware's even come out, yet here, today, you show up, and are dead set on ruining it for everyone. Sad. Really sad. And obviously you won't admit your error, and will just spin around in your little world of anger and frustration rather than apologize and leave this thread alone. Again, if you have nothing positive to contribute, then move on. How can I say it more clearly?
So why at all did you comee here? Asking people to test your work? Wrong forum, I am afraid. Allow us to identify you and things will be ok. Put your work on github or any other public repository. Common stuff. There is nothing more than your posts about tests your work.
Besides if there are so naive people here to just download any trash and run as administrator this trash - as well they can publish openly numbers of their credit cards on internet. And walk naked the streets.
I come here because the people are good. Your total inability to admit your mistake just keeps making it worse. I come here because, with one exception, you, the feedback and results have been excellent. That is, it has been worth my time, my free, volunteer, developer time, which means something to me, but obviously not to you. Also because I like and respect Slackware, and Patrick Volkerding, and all the users, except you, I've run into here. Why can't you just drop this, turn off your angry ego, and realize you made a mistake, which is fine, we all make them. Try growing as a human, instead of spinning around your issues and anger, they are not interesting to me at all, they do not forward the user needs, they do not forward my volunteer time, it's just your toxic energy looking for a response. I'm not interested in whatever issues you have, I've done this stuff to long to be interested, I'm sorry.
The problem here is not me, and it is not slackware users on this forum, it's 100% you. I can't fix this problem for you, I'm very sorry that I can't, and I'm also sorry for the good users here. Obviously the inxi/pinxi stuff is on github, which you'd know if you'd actually do a second of searching, but your ego is just spinning out of control here, and seems unable to really stop itself, which is sad, as I said, but not my problem. I also recognize that every project and community has at least one toxic individual involved, and if you are that one, but I honestly don't care if you are or not, then I will not judge the others here by your behavior and attitude. I've done this long enough to know how this stuff works.
There have been cases where some distro forums were so toxic top to bottom that I stopped using them as a resource, but I have never, not once, until today, had that issue here with slackware users, who I consider on average quite adult, generally highly competent, non-troll-like, and overall quite pleasant to deal with. If this is a strange concept to you,, then maybe you have to learn something about human behavior.
So why at all did you comee here? Asking people to test your work? Wrong forum, I am afraid. Allow us to identify you and things will be ok. Put your work on github or any other public repository. Common stuff. There is nothing more than your posts about tests your work.
Besides if there are so naive people here to just download any trash and run as administrator this trash - as well they can publish openly numbers of their credit cards on internet. And walk naked the streets.
Igadoter, did you are aware that you talk this trash with the INXI's developer?
INXI is now part of Slackware 15.0 RC2, so I believe that its developer is entitled to ask the eventual users of it for further testing of new features.
Finally, a real user, I would love to delete all the above posts that were pulled off topic and deal with healthy adults, which is why I come here.
And you are absolutely right ZhaoLin1457, this is a HUGE change set, and is going to impact a lot of stuff potentially, so I want to make sure I catch and fix any bugs before it goes into next inxi. This is probably the biggest change to CPU logic in inxi since it was created in 2008 I believe, designed to handle all the failure cases it was having, as well as all the coming highly advanced and complicated cpu's like Alder Lake (inxi was completely incapable of correctly dealing with alder lake type architectures, and was also wrong in several ways quite consistently, particularly with Intel CPUs), and I believe maybe Zen 4 may share some of these very complicated architectures, plus possibly M1 if they get Linux running on it, not to mention various complicated SOC ARM devices.
And I definitely want to see if slackware users can find any problems or bugs, I already found one from another forum, so that's good, it was a subtle small one, but it's already fixed. Most issues will be highly specific to the actual hardware CPU and its data and configuration, since the general logic seems good so far, relatively anyway.
The idea here is to be part of the solution not part of the problem, the solution being able to offer the best and most accurate information for slackware users, particurly given slackware 15 is already in the RC2 phase.
I'm hoping for to get inxi out in a few days, it's been a very tiring development process, a lot of research, had to read kernel patches and comments, obscure issue reports from other things that needed also to know what the cpu is really doing, because so much of this is not well documented outside the kernel code.
Distribution: Slackware64 {15.0,-current}, FreeBSD, stuff on QEMU
Posts: 457
Rep:
Slackware64 -current. I'm afraid I don't have anything particularly exotic, but there might be a small error for my laptop; cpu-world says it's Comet Lake, not Kaby Lake. Stepping is probably V0 rather than C (but I'm not sure what the difference actually is there). Other than that, though, the L* sizes, etc. are correct:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.