Welcome!
Important information
-- Spectre and Meltdown vulnerabilities
-- Change in MX sources

News
-- MX Linux on social media: here
-- Mepis support still here

Current releases
-- MX-17.1 Final release info here
-- antiX-17 release info here

New users
-- Please read this first, and don't forget to add system and hardware information to posts!
-- Here are the Forum Rules

Yet another new inxi feature: disk speeds!

Message
Author
User avatar
oops
Forum Regular
Forum Regular
Posts: 225
Joined: Tue Apr 10, 2018 5:07 pm

Re: Yet another new inxi feature: disk speeds!

#41 Post by oops » Sun Jun 03, 2018 9:43 am

h2-1 wrote:
Sat Jun 02, 2018 11:40 pm
...
In other words, don't think your input is ignored if it doesn't appear right away in inxi, or that it isn't greatly appreciated.
Your are welcome,
An other important thing is the alignment of the partitions (for readings and for the writings, up to 50% has I have already read ? )
To check (and correct with gparted after in case of):

Code: Select all

/sbin/fdisk -l /dev/sda | grep -E sda[0-9]+ | sed s/*// | awk '{printf ("%s %f ",$1,$2/512); if($2%512){ print "BAD" }else {print "Good"} }' | column -t
/dev/sda1   4.000000        Good
/dev/sda2   404.000000      Good
/dev/sda3   302152.000000   Good
/dev/sda5   1074864.000000  Good
About: $ ./pinxi --admin -C (good idea) ... why not adding the microcode version? (from kernel or from microcode package)?

Code: Select all

$ ./pinxi --admin -C
CPU:       Topology: Quad Core model: Intel Core i5-2320 bits: 64 type: MCP L2 cache: 6144 KiB 
           Speed: 1596 MHz min/max: 1600/3300 MHz Core speeds (MHz): 1: 1596 2: 1596 3: 1596 4: 1597 
           Errata: cpu_meltdown spectre_v1 spectre_v2 
           
$ /usr/bin/dpkg -l *microcode* | egrep --color "microcode"
ii  amd64-microcode 3.20160316.3                    amd64        Processor microcode firmware for AMD CPUs
ii  intel-microcode 3.20180123really20171117.1+mx17 amd64        Processor microcode firmware for Intel CPUs
un  microcode.ctl   <aucune>                        <aucune>     (aucune description n'est disponible)
           
$ /bin/grep -e 'model name' -e 'cpu family' -e 'cpu cores' -e model -e microcode -e bugs /proc/cpuinfo | sort -dr | uniq
model name	: Intel(R) Core(TM) i5-2320 CPU @ 3.00GHz
model		: 42
microcode	: 0x29
cpu family	: 6
cpu cores	: 4
bugs		: cpu_meltdown spectre_v1 spectre_v2
$ inxi -S : System: Host:XEON Kernel: 4.16.0-xeon-01.efi x86_64 bits: 64 Desktop: Xfce 4.12.3 - Distro: MX-17.1_x64 Horizon


User avatar
h2-1
Forum Regular
Forum Regular
Posts: 397
Joined: Sat Nov 15, 2008 3:16 pm

Re: Yet another new inxi feature: disk speeds!

#42 Post by h2-1 » Sun Jun 03, 2018 3:27 pm

Added the fdisk partition start test to https://github.com/smxi/inxi/issues/134, that seems like a good one for --admin -p possibly.

Don't give me any credit for the Errata item, lol, that was a suggestion from the frugalware primary developer who has been providing a fairly substantial amount of help recently.

microcode I wouldn't mind getting into 3.0.11 but doing package manager package version detections isn't a good way to go for inxi since it's a pain to do, too many per package manager package variations to be worth doing. I didn't get any results from the command on AMD, I'm wondering if that data might be somewhere else? If you think of a more gnu linux global method to get microcode I can add that in for the coming inxi version if it's fairly easy, as another --admin -C option.

data file belongs to the hex code: intel only: ${family} ${model} ${stepping} then use this : printf "%02x-%02x-%02x" ${family} ${model} ${stepping}
smxi/sgfxi site (manuals, how-to's, faqs) :: script forums :: Check out inxi sys info script!

User avatar
h2-1
Forum Regular
Forum Regular
Posts: 397
Joined: Sat Nov 15, 2008 3:16 pm

Re: Yet another new inxi feature: disk speeds!

#43 Post by h2-1 » Mon Jun 04, 2018 7:44 pm

inxi 3.0.11 will soon be out, featuring enhanced -C --admin (will show hex/decimal versions of: family, model-id,stepping), and hex of microcode, along with Errata from earlier. -Dxxx will show rotation if found. That's not robust, and seems to vary system to system and drive to drive, but it's a start.

Several other bug fixes as well.

Thanks for all the feedback and ideas.

Code: Select all

pinxi -Cxxxd -zy80 --admin
CPU:
  Topology: Dual Core model: AMD Athlon 64 X2 5000+ bits: 64 type: MCP 
  arch: K8 rev.F+ family: F (15) model-id: 6B (107) stepping: 2 microcode: N/A 
  L2 cache: 1024 KiB 
  flags: lm nx pae sse sse2 sse3 svm bogomips: 3991 
  Speed: 1000 MHz min/max: 1000/2600 MHz Core speeds (MHz): 1: 1000 2: 1000 
  Errata: amd_e400 fxsave_leak null_seg spectre_v1 spectre_v2 swapgs_fence 
  sysret_ss_attrs 
Drives:
  HDD Total Size: 1.07 TiB used: 402.85 GiB (36.6%) 
  ID-1: /dev/sda vendor: Intel model: SSDSC2BW180A4 size: 167.68 GiB 
  speed: 3.0 Gb/s serial: <filter> rev: DC32 scheme: MBR 
  ID-2: /dev/sdb vendor: Western Digital model: WD1003FZEX-00MK2A0 
  size: 931.51 GiB speed: 3.0 Gb/s rotation: 7200 rpm serial: <filter> 
  rev: 1A01 temp: 32 C scheme: GPT 
  Floppy-1: /dev/fd0 
  Optical-1: /dev/sr0 vendor: LITE-ON model: DVDRW SOHW-1693S rev: KS09 
  dev-links: cdrom,dvd,dvdrw 
  Features: speed: 48 multisession: yes audio: yes dvd: yes 
  rw: cd-r,cd-rw,dvd-r state: running 
  Optical-2: /dev/sr1 vendor: LITE-ON model: LTR-52327S rev: QS0C 
  dev-links: cdrw 
  Features: speed: 52 multisession: yes audio: yes dvd: no rw: cd-r,cd-rw 
  state: running
smxi/sgfxi site (manuals, how-to's, faqs) :: script forums :: Check out inxi sys info script!

User avatar
stsoh
Forum Regular
Forum Regular
Posts: 366
Joined: Sun Aug 20, 2017 10:11 am

Re: Yet another new inxi feature: disk speeds!

#44 Post by stsoh » Tue Jun 05, 2018 2:50 am

Successfully updated to inxi-perl branch version: 3.0.11

Code: Select all

$ pinxi -Cxxxd -zy80 --admin
CPU:
  Topology: Dual Core model: Pentium E5400 bits: 64 type: MCP arch: Penryn 
  family: 6 model-id: 17 (23) stepping: A (10) microcode: A0B 
  L2 cache: 2048 KiB 
  flags: lm nx pae sse sse2 sse3 ssse3 vmx bogomips: 10798 
  Speed: 1423 MHz min/max: 1203/2700 MHz Core speeds (MHz): 1: 1245 2: 1408 
  Errata: cpu_meltdown spec_store_bypass spectre_v1 spectre_v2 
Drives:
  HDD Total Size: 3.75 TiB used: 1.97 TiB (52.7%) 
  ID-1: /dev/sda vendor: Toshiba model: Q300 size: 111.79 GiB speed: <unknown> 
  serial: <filter> rev: 11.2 temp: 34 C scheme: MBR 
  ID-2: /dev/sdb vendor: Toshiba model: DT01ACA200 size: 1.82 TiB 
  speed: <unknown> rotation: 7200 rpm serial: <filter> rev: ABB0 temp: 36 C 
  scheme: MBR 
  ID-3: /dev/sdc vendor: Toshiba model: DT01ACA200 size: 1.82 TiB 
  speed: <unknown> rotation: 7200 rpm serial: <filter> rev: ABB0 temp: 36 C 
  scheme: MBR 
  Optical-1: /dev/sr0 vendor: HL-DT-ST model: DVDRAM GH22NS50 rev: TN03 
  dev-links: cdrom,cdrw,dvd,dvdrw 
  Features: speed: 48 multisession: yes audio: yes dvd: yes 
  rw: cd-r,cd-rw,dvd-r,dvd-ram state: running 
MX-17.1_x64 Horizon, G41M-P33 Combo(MS-7592), Pentium E5400 (min/max: 1203/2700 MHz), 8Gb RAM (800 MT/s),
Intel 4 Series Integrated Graphics, Realtek PCIe Fast RTL8101/2/6E, PCI Gigabit RTL8169 Ethernets.

User avatar
oops
Forum Regular
Forum Regular
Posts: 225
Joined: Tue Apr 10, 2018 5:07 pm

Re: Yet another new inxi feature: disk speeds!

#45 Post by oops » Tue Jun 05, 2018 3:27 am

stsoh wrote:
Tue Jun 05, 2018 2:50 am
Successfully updated to inxi-perl branch version: 3.0.11
Thanks for the add H2-1 ...

Code: Select all

 ./pinxi -U
Starting pinxi self updater.
...
Successfully updated to inxi-perl branch version: 3.0.11

./pinxi -Cxxxd -zy80 --admin
CPU:
  Topology: Quad Core model: Intel Core i5-2320 bits: 64 type: MCP 
  arch: Sandy Bridge family: 6 model-id: 2A (42) stepping: 7 microcode: 29 
  L2 cache: 6144 KiB 
  flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 23945 
  Speed: 1597 MHz min/max: 1600/3300 MHz Core speeds (MHz): 1: 1596 2: 1596 
  3: 1596 4: 1596 
  Errata: cpu_meltdown spec_store_bypass spectre_v1 spectre_v2 
Drives:
  HDD Total Size: 931.51 GiB used: 433.67 GiB (46.6%) 
  ID-1: /dev/sda vendor: Seagate model: ST31000524AS size: 931.51 GiB 
  speed: 6.0 Gb/s rotation: 7200 rpm serial: <filter> rev: HP64 scheme: GPT 
  Message: No Optical or Floppy data was found. 
PS: I like your weather option too (work with city name in English, or in French too ... great ... but sometime it is not the same city in french or english (see pekin,china/chine - a bug ? (but work for: baune, allemagne/germany )
... A suggestion to also add the GPS positions, can be useful.

Code: Select all

./inxi -xxx -W paris,france
Weather:   Temperature: 16 C (61 F) Conditions: light rain mist Wind: from NNE at 2.7 m/s (10 km/h, 6 mph) 
           Humidity: 94% Pressure: 1013 mb (29.92 in) Dew Point: 15 C (59 F) Location: Paris, France 
           altitude: 86 m (282 ft) Current Time: mar. 05 juin 2018 07:31:51 CEST 
           Observation Time: June 5, 9:00 AM CEST 

$ inxi -xxx -W chicago,usa
Weather:   Temperature: 22 C (71 F) Conditions: Overcast Wind: from WSW at 3.1 m/s (11 km/h, 7 mph) 
           Humidity: 44% Pressure: 1010 mb (29.82 in) Dew Point: 9 C (48 F) Location: Chicago, Usa 
           altitude: 198 m (651 ft) Current Time: mar. 05 juin 2018 07:32:19 CDT 
           Observation Time: June 5, 1:51 AM CDT 


$ inxi -xxx -W pekin,china
Weather:   Temperature: 20 C (68 F) Conditions: Scattered Clouds Wind: Calm Humidity: 94% 
           Pressure: 1018 mb (30.06 in) Dew Point: 19 C (66 F) Location: Pekin, China 
           altitude: 3420 m (11218 ft) Current Time: mar. 05 juin 2018 07:32:44  
           Observation Time: June 5, 1:00 AM -05 

$ inxi -xxx -W pekin,chine
Weather:   Temperature: 14 C (57 F) Conditions: Scattered Clouds Wind: Calm Humidity: 100% 
           Pressure: 1025 mb (30.28 in) Dew Point: 14 C (57 F) Location: Pekin, Chine 
           altitude: 1651 m (5416 ft) Current Time: mar. 05 juin 2018 07:32:54  
           Observation Time: June 5, 2:00 AM -05 
           
Weather:   Temperature: 17 C (63 F) Conditions: Overcast Wind: from Variable at 1.8 m/s (6 km/h, 4 mph) 
           Humidity: 100% Pressure: 1012 mb (29.89 in) Dew Point: 17 C (63 F) Location: Baune, Allemagne 
           altitude: 30 m (98 ft) Current Time: mar. 05 juin 2018 07:34:26 CEST 
           Observation Time: June 5, 9:00 AM CEST 

$ inxi -xxx -W baune,germany
Weather:   Temperature: 17 C (63 F) Conditions: Overcast Wind: from Variable at 1.8 m/s (6 km/h, 4 mph) 
           Humidity: 100% Pressure: 1012 mb (29.89 in) Dew Point: 17 C (63 F) Location: Baune, Germany 
           altitude: 30 m (98 ft) Current Time: mar. 05 juin 2018 07:34:39 CEST 
           Observation Time: June 5, 9:00 AM CEST 
           
Last edited by oops on Tue Jun 05, 2018 3:44 am, edited 1 time in total.
$ inxi -S : System: Host:XEON Kernel: 4.16.0-xeon-01.efi x86_64 bits: 64 Desktop: Xfce 4.12.3 - Distro: MX-17.1_x64 Horizon


User avatar
h2-1
Forum Regular
Forum Regular
Posts: 397
Joined: Sat Nov 15, 2008 3:16 pm

Re: Yet another new inxi feature: disk speeds!

#46 Post by h2-1 » Tue Jun 05, 2018 8:34 pm

oops, the weather option is deceptive, the gps location is actually not a gps location at all, it's simply the location your IP address is reported to have, which is often the location of the ISP, not your location. You can work around that by supplying it with the real lat,long data, but even then, the weather you get is actually from the nearest weather station, which in some cases can be many miles/km away.

The stuff works ok for general areas, but it's not actually particularly reliable or accurate for more fine tuned locations. The print data is just what the location tool returns, in this case it's from ubuntu if I remember right (thanks ubuntu). Whenever people look closely at the weather option they tend to find little things like that, but in the future, that is going to change anyway, I'm probably going to use my own server and setup correctly done api driven weather stuff which will support offering fallbacks etc on failures. That's actually something I need to start working on because it should be in place before much longer in case the current source starts to go away.

Note that 3.0.11 had, ironically, a bug in the debugger, which would make it hang and never complete if run as root/sudo, luckily someone found that yesterday before 3.0.11 had spread too far, and i was able to replace it with 3.0.12, which should have fixed that bug. A bug in the debugger is obviously undesirable, lol.

I had an idea for the true disk write/read speed tests, which was to make a specific option, say, --disk-speed, which would then ask you if you really want to do it before it does it, then, after you type in, yes, or whatever, it would run it, but it would inform you of the technical 'risk' of doing it too often. it would then store the results, and use them afterwards, which means the users would be informed, but could run the test if they chose to, and it would only run once per disk, or something like that. I believe I could use perl open with a timer running to then test the read speed, the smartctl method actually writes to the disk so that it can read it, but supplies only the read result if I saw it correctly, which is a bit of a waste.
smxi/sgfxi site (manuals, how-to's, faqs) :: script forums :: Check out inxi sys info script!

User avatar
oops
Forum Regular
Forum Regular
Posts: 225
Joined: Tue Apr 10, 2018 5:07 pm

Re: Yet another new inxi feature: disk speeds!

#47 Post by oops » Wed Jun 06, 2018 4:53 am

h2-1 wrote:
Tue Jun 05, 2018 8:34 pm
...You can work around that by supplying it with the real lat,long data...
Right, it's the most secure way actually I guess.
h2-1 wrote:
Tue Jun 05, 2018 8:34 pm
...Note that 3.0.11 had, ironically, a bug in the debugger,...
Lol, right, it's funny ;-)
h2-1 wrote:
Tue Jun 05, 2018 8:34 pm
...I had an idea for the true disk write/read speed tests ...
Good news, thank you H2-1 for the development of inxi/pinxi (what the "p" means for pinxi ? (beta version?) ... and inxi meaning too?)
PS: An other suggestion: It will be also interesting to know where Grub is installed (MBR or PBR)
... (here sample, into /dev/sda MBR)

Code: Select all

sudo od -tx1z -Ax -N 512 /dev/sda |grep -i rub
#000180 7d e8 2e 00 cd 18 eb fe 47 52 55 42 20 00 47 65  >}.......GRUB .Ge<

#od -tx1z -Ax -N 512 /dev/hda |grep -i -A1 -B1 rub
#000170 06 be 94 7d e8 30 00 be 99 7d e8 2a 00 eb fe 47  >...}.0...}.*...G<
#000180 52 55 42 20 00 47 65 6f 6d 00 48 61 72 64 20 44  >RUB .Geom.Hard D<
#000190 69 73 6b 00 52 65 61 64 00 20 45 72 72 6f 72 00  >isk.Read. Error.<
$ inxi -S : System: Host:XEON Kernel: 4.16.0-xeon-01.efi x86_64 bits: 64 Desktop: Xfce 4.12.3 - Distro: MX-17.1_x64 Horizon


User avatar
h2-1
Forum Regular
Forum Regular
Posts: 397
Joined: Sat Nov 15, 2008 3:16 pm

Re: Yet another new inxi feature: disk speeds!

#48 Post by h2-1 » Wed Jun 06, 2018 2:25 pm

oops, during the rewriting of inxi (bash/gawk, now called binxi), into Perl, I decided to make pinxi the development version so I could continuously compare inxi (old, previous) to pinxi (perl inxi, new) outputs. When inxi was first done in Perl at 2.9, I decided that using the separate file name of pinxi for development was so effective and convenient that I would just keep pinxi always as the development branch, which makes it easy to test pinxi changes before committing those to inxi. Likewise, when I made inxi 2.9, I also put old legacy bash/gawk inxi into the inxi-legacy branch as binxi (bash inxi), so that code could remain as a historical record of the madness of trying to do a big program with bash/gawk...

I'll note the grub thing, but it's also worth keeping in mind that grub is not the only bootloader, that's actually a very old issue that was filed, about having bootloader information, but your method is actually better in some ways than the original suggestion, which I never considered robust enough to warrant the work it would have required.
smxi/sgfxi site (manuals, how-to's, faqs) :: script forums :: Check out inxi sys info script!

User avatar
oops
Forum Regular
Forum Regular
Posts: 225
Joined: Tue Apr 10, 2018 5:07 pm

Re: Yet another new inxi feature: disk speeds!

#49 Post by oops » Thu Jun 07, 2018 3:01 am

H2-1 ... I better see now.
Have a nice day.
$ inxi -S : System: Host:XEON Kernel: 4.16.0-xeon-01.efi x86_64 bits: 64 Desktop: Xfce 4.12.3 - Distro: MX-17.1_x64 Horizon


User avatar
h2-1
Forum Regular
Forum Regular
Posts: 397
Joined: Sat Nov 15, 2008 3:16 pm

Re: Yet another new inxi feature: disk speeds!

#50 Post by h2-1 » Thu Jun 07, 2018 8:05 pm

oops I'm curious if you or someone else here can run the same test to see if there is other bootloaders detected the same way, I think arch linux uses one for ueft boots for example, not grub, and of course, the bsds use different ones, and arm uses at least 2 common ones, aside from grub.
smxi/sgfxi site (manuals, how-to's, faqs) :: script forums :: Check out inxi sys info script!

Post Reply

Return to “antiX”