樹莓派 3B+ 筦窺︰ GigaBit ︰ 300MBit !Benchmarks ☆

論語‧子路

子夏為莒父宰,問政。子曰:無欲速,無見小利。欲速,則不達;見小利,則大事不成。

閱讀往往需要循序漸進、由淺入深,貪快者常常欲速則不達。一路所言彷彿長而不當,不過祇是墊腳石而已。方便學習者能進出天下文章,無入而不可自得也。

─── 《光的世界︰【□○閱讀】折射式望遠鏡《六》

 

樹莓派 3B+ 追求『基準』標竿︰

Roy Longbottom at Linkedin Roy Longbottom’s Raspberry Pi, Pi 2 and Pi 3 Benchmarks

 

New

I have now run my 32 bit and 64 bit Raspberry Pi benchmarks and stress tests on the model 3B+. Full details and results are available from ResearchGate in the Raspberry Pi 3B+ PDF Report. The tests demonstrate 3B+/3B performance improvements (not always), the new thermal characteristics and higher speed LAN and WiFi data transfers.

Contents

General Raspberry Pi System 64 Bit SUSE & Gentoo
Standards/Configuration Details Whetstone Benchmark Dhrystone 2 Benchmark
Linpack Benchmark Livermore Loops Benchmark Memory Speed Benchmark
Bus Speed Benchmark FFT Benchmarks  
     
NEON Benchmarks Linpack NEON Benchmarks NEON Float & Integer Benchmark
NEON MemSpeed Benchmark Maximum 1 Core MFLOPS  
     
MultiThreading Benchmarks MP-MFLOPS MP-Whetstone
MP-Dhrystone MP-BusSpeed MP-RandMem
OpenMP-MFLOPS OpenMP-MemSpeed  
NEON MP Benchmarks MP-NeonMFLOPS linpackNeonMP
     
Java Benchmarks Java Whetstone Benchmarks JavaDraw Benchmark
OpenGL ES Benchmark OpenGL GLUT Benchmark  
     
DriveSpeed Benchmark LAN/WiFi Benchmark 64 Bit Drive & LAN Benchmarks
Temperature & MHz Recorder Reliability Tests 64 Bit Reliability Tests
Performance Monitor Assembly Code

 

能有什麼不對嗎?

事實上,數據顯示它表現的還不錯哩!

Benchmarking the Raspberry Pi 3 B+

Gareth Halfacree

The launch of the shiny new Raspberry Pi 3 B+ offers a chance to revisit the entire history of the Pi family, benchmarking each device in turn from the original Raspberry Pi Model B launch board with its somewhat limited 256MB of RAM right through to the shiniest and newest board. This post collates the results from a range of different benchmarks, demonstrating how the power of the Pi has changed over the years.

If attempting to replicate the results yourself, there is one key fact to note: the Raspberry Pi has enjoyed somewhere in the range of a 30 percent performance uplift in the last couple of years through software and firmware optimisation alone; comparing the same benchmark run on a Pi using the latest Raspbian operating system today with results gathered a year or more ago will give a false reading, which is why all these results have been gathered using the same firmware and software revision.

Update: The benchmarks in this article have been updated after it was discovered that the Pi Zero on test had developed a fault. The Pi Zero benchmarks have been re-run on a new board and updated, while the Pi Zero W’s SysBench score has also been updated to reflect improvements brought about by the latest firmware release. The figures in this article are now accurate and up-to-date as per the version of Raspbian released on the 14th of March 2018.

 

或許因為某些『效能參數』調的過高!統計『樣本數目』採樣太少 ?以至於有時候扛不動『背包』呦︰

假使有 n 種物品,物品 k 的重量是 w_k,價格為 p_k。如果我們有個背包,最大能載重 W,要是各種物品只能選或者不選,那麼『最高價』的裝法是什麼?數學上來講,就是在『滿足
\qquad \sum_{k=1}^n w_k\,x_k \ \leqslant \ W, \quad \quad x_k \ \in \ \{0,1\}  的『條件』下,求
\qquad \sum_{k=1}^n p_k\,x_k 之『最大化』的問題。

一般來說這類的『問題』相當普遍,舉例來說︰

背包 → 時段

物品 → 活動

物品重量 → 活動長短

物品價格 → 活動價值

,那它就被『翻譯』成『一日、一年』之計之『規劃』的了!!

由於人們通常關心效能『基測』 benchmark ing 的『結果』,因此在《 Benchmarking Raspberry Pi 2 》一文中,樹莓派基金會也從善如流,論及『比較結果』。然因目前樹莓派 2B 雖然已是 ARMV7 ,可以跑很多其它不同的 Linux 發行版,卻持守著『 V7/V6 』之『相容性』,所以有人議論

Raspberry Pi 2: Linaro(ARMv7) vs Raspbian(ARMv6) Benchmarks!

的高下!

─── 摘自《7︰6

 

對比著『速度』,系統『穩定性』更加重要吧☆

sudo MEMTESTER_TEST_MASK=0x1000 memtester 128M

memtester(8)                 Maintenance Commands                 memtester(8)

NAME
       memtester - stress test to find memory subsystem faults.

SYNOPSIS
       memtester [-p PHYSADDR [-d DEVICE]] <MEMORY> [ITERATIONS]

DESCRIPTION
       memtester  is an effective userspace tester for stress-testing the mem‐
       ory subsystem.  It is very effective at finding intermittent  and  non-
       deterministic  faults.   Note  that  problems  in  other hardware areas
       (overheating CPU, out-of-specification power supply,  etc.)  can  cause
       intermittent memory faults, so it is still up to you to determine where
       the fault lies through normal hardware diagnostic procedures; memtester
       just helps you determine whether a problem exists.

       memtester  will  malloc(3) the amount of memory specified, if possible.
       If this fails, it will decrease the amount of memory requested until it
       succeeds.   It  will then attempt to mlock(3) this memory; if it cannot
       do so, testing will be slower and much less effective.   Run  memtester
       as root so that it can mlock the memory it tests.

 

 

 

 

 

 

 

 

樹莓派 3B+ 筦窺︰ GigaBit ︰ 300MBit ! 標準數據?

傳說在機械化的黃金時代,流傳著一則故事︰

那時每一根小『螺絲釘』和小『螺絲帽』都是獨特的,不要說從這個工廠到那個工廠,就算在同一個工廠內,它們也都各有各的不同 。只有那些沒有螺絲帽可以匹配的螺絲釘或沒有螺絲釘可以匹配的螺絲帽,才會被歸類成不好的。就這樣過了很多年,直到有一天艾索 ISO 出現了,推動『標準化』運動,自此一切都改變了 …。傳聞 ,最後一根獨特的小螺絲釘說︰『艾索,你這個老狐狸!…』。終究這些風塵往事早已被世人遺忘

無獨有偶 ── 發生過的事,總會再次發生 ──,其後,Douglas McIlroy 先生在寫命令列的外殼程式的時候,提出了管線 pipline 的概念,並用『 | 』符號代表。比如說『甲命令 | 乙命令』,講的是把甲命令的輸出結果當成乙命令的輸入來使用。之後於 1973 年 Ken Thompson 把它擴大為 『管子pipe 的標準,寫進了 Unix 作業系統 ,影響至今,於是開起了一個標準串流的時代。那什麼是標準串流呢?它就是之前在『除蟲!除錯?終端機。』一文中 IPO 模型抽象化後的相容性輸出入結構,應用於命令列的各個相容的指令的輸出入檔案 ── 當然也可以是裝置檔 ── 可串接性 chainable 的標準化。它定義了『標準輸入』stdin、『標準輸出』stdout、『標準錯誤』stderr,打開了程式間溝通的橋樑。舉例來說,假如 more 代表一頁一頁的讀,cat /boot/config.txt | more 就是一頁一頁的讀取樹莓派的開機組構檔 config.txt。

……

日後有人也許將再次發現把一些小程式 ── 容易寫、不容易寫錯 ── 串接起來,常常可以完成許多令人驚訝的事,這就是

Unix 的哲學上第一條所說的︰小即是美

無論人們所面對的『問題』是什麼?,『分割征服』的老方法依然有用 ── 古時所謂的大事化小、小事化無 ──。這在今天的『軟體工程學』上來說,也是如此。正由於標準化帶來了平凡與普通 ──  一說一般性,另說無差別, 正所以能建立軟體世界的溝通平台。這有什麼好處呢?因為過去軟體設計曾經是一門藝術,或者說屬於天生有才之輩,以致於難以學習模仿;然而到了今天之所以有工程學之實,其實是來自眾多前人的努力以及豐富的想像力。

這跟瑪利歐的水管有什麼關係?優尼克司的管子帶給人們思考的樂趣,而瑪利歐的水管則帶來了驚奇 ── 好玩就好

─── 《瑪利歐的水管 PIPE

 

□ ︰ 醫病為什麼要先量『身高』、『體重』的呢?

○ ︰ 恐怕你不勝『藥力』也。

□ ︰ 可是…我只是……牙疼之痛而已哩??

○ ︰ 不管診斷怎樣『病徵』,知道某偏離『某標準』多少!十分『重要 』!!

○ ︰ 此乃所謂『統計相關』勒◎

※ 註︰

身高體重指數

身高體重指數(又稱身體質量指數英文為 Body Mass Index,簡稱 BMI)是一個計算值,主要用於統計用途。

「身高體重指數」這個概念,是由19世紀中期的比利時統計學家數學家凱特勒(Lambert Adolphe Jacques Quetelet)最先提出。它的定義如下:

\displaystyle {\mbox{BMI}}={\frac {w}{h^{2}}}
w = 體重,單位:公斤;
h = 身高,單位:公尺;
BMI = 身高體重指數,單位:公斤/平方公尺

BMI的統計意義

BMI 原來的設計是一個用於公眾健康研究的統計工具。當需要知道肥胖是否為某一疾病的致病原因時,可以把病人的身高及體重換算成 BMI ,再找出其數值及病發率是否有線性關連。由於BMI主要反應整體體重,無法區別體重中體脂肪組織與非脂肪組織(包括肌肉 、器官),同樣身高體重的人可算出相同的 BMI ,但其實脂肪量不同[1],因此其實 BMI 是整體營養狀態的指標。以往拿來做為肥胖的指標,是因發現 BMI 與體脂肪在統計上有高度相關;但在同樣 BMI之下,仍會有體脂肪率的差異。

 

事物若『無差異』,何須『統計』耶?!

當然『有不同』,所以才『統計』呦!?

假使『環境』不清楚,『數據』要怎樣比較呀☺

Re: New Raspberry Pi model 3B+ 1.4 GHz, 330Mbit Ethernet, 802.11ac, PoE

Thu Mar 15, 2018 3:54 pm

in the meantime though – booted with a fresh card to test the LAN wired network speed… yip. faster….
pi@raspberrypi:~ iperf3 -c 192.168.2.222 Connecting to host 192.168.2.222, port 5201 [  4] local 192.168.2.223 port 58150 connected to 192.168.2.222 port 5201 [ ID] Interval           Transfer     Bandwidth       Retr  Cwnd [  4]   0.00-1.00   sec  34.8 MBytes   292 Mbits/sec   55    105 KBytes        [  4]   1.00-2.00   sec  34.6 MBytes   290 Mbits/sec   60   53.7 KBytes        [  4]   2.00-3.00   sec  35.2 MBytes   295 Mbits/sec   56   38.2 KBytes        [  4]   3.00-4.00   sec  33.5 MBytes   281 Mbits/sec   47   29.7 KBytes        [  4]   4.00-5.00   sec  33.6 MBytes   281 Mbits/sec   37   25.5 KBytes        [  4]   5.00-6.00   sec  31.8 MBytes   267 Mbits/sec   48    147 KBytes        [  4]   6.00-7.00   sec  32.5 MBytes   273 Mbits/sec   50   62.2 KBytes        [  4]   7.00-8.00   sec  34.8 MBytes   292 Mbits/sec   39   96.2 KBytes        [  4]   8.00-9.00   sec  34.4 MBytes   289 Mbits/sec   46   22.6 KBytes        [  4]   9.00-10.00  sec  34.6 MBytes   290 Mbits/sec   48   39.6 KBytes        - - - - - - - - - - - - - - - - - - - - - - - - - [ ID] Interval           Transfer     Bandwidth       Retr [  4]   0.00-10.00  sec   340 MBytes   285 Mbits/sec  486             sender [  4]   0.00-10.00  sec   339 MBytes   284 Mbits/sec                  receiver  iperf Done. pi@raspberrypi:~

Re: New Raspberry Pi model 3B+ 1.4 GHz, 330Mbit Ethernet, 802.11ac, PoE

Thu Mar 15, 2018 4:02 pm

pi-man-uk1 wrote:

Thu Mar 15, 2018 3:54 pm

booted with a fresh card to test the LAN wired network speed… yip.

Your numbers are a bit low (would expect well above 300 Mbits/sec and also the count of retransmits is not that great — I would check the network cable and run UDP tests in parallel) and unfortunately once the data that is transmitted over the wire lives on an USB disk we’re bottlenecked even more by USB2: viewtopic.php?f=63&t=207897#p1285923

……

Re: New Raspberry Pi model 3B+ 1.4 GHz, 330Mbit Ethernet, 802.11ac, PoE

Thu Mar 15, 2018 4:06 pm

interesting… i’ll check the cables….

still good though I was logging the last lines of output before the upgrade (pi3 before).

so gone from 93 Mbits/sec to 284 Mbits/sec….

good to know that I could get a bit more though perhaps !

yes, not sure about those retransmits, wasn’t seieng that on the old machine.

Mar 15 15:55:12 [  4]   0.00-10.00  sec   112 MBytes  94.0 Mbits/sec    0             sender
Mar 15 15:55:12 [  4]   0.00-10.00  sec   112 MBytes  93.8 Mbits/sec                  receiver
Mar 15 16:00:11 [  4]   0.00-10.00  sec   112 MBytes  94.0 Mbits/sec    0             sender
Mar 15 16:00:11 [  4]   0.00-10.00  sec   112 MBytes  93.8 Mbits/sec                  receiver

………

Re: New Raspberry Pi model 3B+ 1.4 GHz, 330Mbit Ethernet, 802.11ac, PoE

Thu Mar 15, 2018 4:12 pm

you were right… new patch cable (last one was home made, lesson learned).

new result…

well that was easy thanks… now only if I can get my old card booting !

pi@raspberrypi:~ iperf3 -c 192.168.2.222 Connecting to host 192.168.2.222, port 5201 [  4] local 192.168.2.223 port 58170 connected to 192.168.2.222 port 5201 [ ID] Interval           Transfer     Bandwidth       Retr  Cwnd [  4]   0.00-1.00   sec  37.6 MBytes   315 Mbits/sec    0    154 KBytes        [  4]   1.00-2.00   sec  37.0 MBytes   311 Mbits/sec    0    154 KBytes        [  4]   2.00-3.00   sec  37.2 MBytes   312 Mbits/sec    0    154 KBytes        [  4]   3.00-4.00   sec  37.0 MBytes   311 Mbits/sec    0    154 KBytes        [  4]   4.00-5.00   sec  37.3 MBytes   313 Mbits/sec    0    154 KBytes        [  4]   5.00-6.00   sec  37.0 MBytes   310 Mbits/sec    0    154 KBytes        [  4]   6.00-7.00   sec  37.4 MBytes   314 Mbits/sec    0    154 KBytes        [  4]   7.00-8.00   sec  36.8 MBytes   309 Mbits/sec    0    154 KBytes        [  4]   8.00-9.00   sec  37.5 MBytes   314 Mbits/sec    0    154 KBytes        [  4]   9.00-10.00  sec  37.1 MBytes   311 Mbits/sec    0    154 KBytes        - - - - - - - - - - - - - - - - - - - - - - - - - [ ID] Interval           Transfer     Bandwidth       Retr [  4]   0.00-10.00  sec   372 MBytes   312 Mbits/sec    0             sender [  4]   0.00-10.00  sec   372 MBytes   312 Mbits/sec                  receiver  iperf Done. pi@raspberrypi:~ 

 

還是先認識人一般使用什麼『工具』,知道如何『度量』好◎

Differences between Iperf and SpeedTest

Image courtesy of http://openspeedtest.com/

Image courtesy of http://openspeedtest.com/

Do your users often complain about network slowness? Whether the complaints are legit or not, network engineers need evidence on the actual bandwidth available to the users. For this purpose there are two free tools: iperf and speedtest-cli. Both tools send as much traffic as the client is capable of transmitting and then reports the average data rate.

When running bandwidth tests, the results are dependent on three values:

  1. the connection speed of the client’s network interface card
  2. bandwidth available between the source and destination,
  3. connection speed of the server’s network interface card.

While Iperf and speedtest-cli sound like they perform the same function, the use cases are different.

……

To conclude, use iperf for internal and advanced bandwidth measurements and speedtest for getting an estimate of download and upload speeds. I hope this article provided some useful insights. Share your thoughts, questions, or comments here below. Cheers!

───

 

 

 

 

 

 

 

樹莓派 3B+ 筦窺︰ GigaBit ︰ lockups!

凡走過必留下痕跡??在那個 Intel CPU 稱王, Microsoft OS 獨大的 PC 年代,不只創造了『 Standard Bug 』和『 Final Beta 』之經典說法,更因微軟一路攻城掠地,蠶食鯨吞應用軟體市場,又與大學大打侵權之官司,據說搞的個天怒人怨,於是 Bill Gates 的笑話傳聞始終不斷。茲引幾則以饗讀者︰

(1) Bill and the Win 95

God calls Bill Gates, Bill Clinton and Boris Yeltsin to his office and says,

“The world will end in 30 days. Go back and tell your people.” so Boris Yeltsin goes to the Russian people and says: “I have bad news and I have worse news. The bad news is that we were wrong … there is a God. The worse news is that the world will end in 30 days.”

Bill Clinton goes on TV and tell the American people: “I have good news and I have bad news. The good news is that the basic family values upon which we have based our lives are right, there is a God … The bad news is that the world will end in 30 days.”

Bill Gates goes to his executive committee and announces: “I have great news and I have fabulous news. The great news is that God thinks I’m important. The fabulous news is that we don’t have to fix any of the Microsoft’s bugs.”


……

─── 出處《香港中文大學計算機科學與工程學系

Prof. John C.S. Lui

Jokes about Mr. Bill Gates

 

自一九九一 Linux 首發,到二零零一《只為歡樂》︰

200px-Just_for_Fun_cover

二零零一年,林納斯‧托瓦茲 Linus Torvalds ── Linux kernel 的創建者 ── 出版了一本他與大衛‧戴爾蒙德 David Diamond 聯合撰寫的幽默自傳《只為歡樂 Just for Fun: The Story of an Accidental Revolutionary 。這本書提出了『 Linus 法則 the Law of Linus that all evolution contributed by humanity starts for survival, sustains socially and entertains at last.

─── 摘自《音樂播放器原型機之《可能性》 Just for Fun

 

十年磨成之劍,尚在淬火鍛鍊中。或因『吃著魚企鵝圖』的啟示, Tuz 之感召︰

已到春分,晝夜各半,日出前注目地平,那第一道《曙光》映射的正是大地『陽光均分』之時!不知從『太空』所見的『天際線』,能否使人體會惠施』之【天與地卑,山與澤平。 】?

感受

水藍地球』的『』,她能是不能喚醒『仁民愛物』之『』的呢?古往今來『大小觀』之『無窮思辯』,正高聲述說著『生命神奇』與『造化奧妙』的吧!!

想像

台灣的『玉山』海拔三千五百九十二公尺,假使站上了『玉山頂巔 』四目極望,是否『眼界』大到足以『擁抱』一整個『美麗寶島』的呢??

深思

當鳳凰已去,麒麟不在,所謂『世界』會更『美麗』嗎?活著的人真很『富足』的耶??

─── 《W!O+ 的《小伶鼬工坊演義》︰通往樹莓派 3 之 HEARSAY OS

 

曾經有人高聲唱著︰

是我們改變了世界?還是世界改變了你和我!

並非作者想將之『鎖起來』不談?

Re: Raspberry Pi 3 B+ lockups

Tue Jun 19, 2018 7:32 am

bensimmo wrote:

Mon Jun 18, 2018 8:26 pm

I’m assuming this github thread seems to be the main ethernet debugging thread similar to this?
https://github.com/raspberrypi/linux/issues/2482

Closest one I think.

 

實因事有『變動』︰

Network driver on RPi3 B Plus causing hung tasks when working on an NFS mount #2482

Platform/Distro: RPi 3B+ running Arch ARM (armv7h).
Kernel version: 4.14.31 (b36f4e9)
Firmware version: latest as I write this (raspberrypi/firmware@c14a903)Bug: Frequent kernel oops due to blocked tasks when writing files to NFS mount.Details: When compiling, dmesg is full of kernel oops like the below when doing so on an NFS mount. Compiling to the micro SD card is fine. I believe that the software (disto) on the micro SD card is NOT to blame… if I put the same micro SD card into a RPi3 or RPi2, I can compile without error.Again, I am using an NFS mounted partition (/scratch) on which to compile, so I’m hypothesizing that these problems are related to the network driver.

 

尚待『釐清』呦!

Pi3B+ : USB+ethernet file transfer problem #2449

toto8551 commented Mar 18, 2018

Hi,

I have problems while transferring files from an USB external HDD or USB flash drive connected on the new RPi 3B+ to another computer via SFTP or samba. After a random amount of data transfered, the transfer rate drop to 0 and stay like that for at least 30 min ( I canceled the transfer after that time).

I cannot see any error on the standard raspbian system logs. I am running raspbian stretch with the last updates, I also did a firmware upgrade with rpi-update.

The RPi 3B+ is powered with an official raspberry power supply (2.5A) and I tried with a spare one.
I tried to give more power with an external power supply for the USB HDD without any change, but like I got the same problem with an USB flash drive, I don’t expect a power issue or ?

I tried to transfer files with thunar, pcmanfm, scp or rsync. rsync is the only one working, but with a strong fluctuation of the transfer rate (from 0 to 20Mo/s). scp tell me that the file is “stalled” and stop any progress.

If I start the same SD card with a RPi 3B (not plus) the file transfer is working like a charm ( I used it for almost 3 years like that).

I followed tips from this link without successI having no problems during ssh sessions or with vnc.

Any ideas ?

 

期望『人工智慧』時代的 STEM 們,大刀闊斧創新『典範』也︰

Re: Raspberry Pi 3 B+ lockups

Mon Jun 18, 2018 12:28 pm

wybielacz wrote:

Mon Jun 18, 2018 11:31 am

jamesh wrote:

Mon Jun 18, 2018 9:40 am

Sadly, I don’t have time to dig through pages of posts to find one line of information. Can you give specific instructions on what you do to make this go wrong, and any errors that may be display (e.g. syslogs). Since this does NOT appear to be the tcp segmentation offload issue (although symptoms appear the same – welcome to the wonderful world of ethernet bugs), it would be worth adding a very detailed issue in github (if you haven’t already done so) which is the official way of reporting bugs, it also means they do not get lost. Post a link here to the github issue to cross reference.

In the meantime, does forcing it to 100bT make the problem go away (yes, I know you want Gig ethernet, this is for testing purposes to narrow down the issue)

You already have a 3B+ with an sd card with this issue in your office. Anyway we can safely assume that every 3B+ has this issue, just the right steps needs to be performed to make it crash.

Steps to reproduce are as follows:

1. Install a fresh image of Raspbian
2. Update firmware
3. Mount a cifs network drive
4. 3B+ is dead overnight when using Ethernet, there are no errors, LAN chip is burning hot

Sadly, i do not have time anymore to invest in this, i literally setup my multiple RPi’s 3B+ in the past months hundreds of times new to help you debug and narrow down the issue, even that i am not responsible to do that…

All the 3B+ problems seems to me like this is a faulty ethernet hardware which you trying to cover with software fixes. If that is really the case then please at least do an official statement about it. I mean come on, it’s been 3 months…

I have already tested that sequence overnight and seen no issues, so No, your assumption that this is a problem with every 3B+ appears to be wrong. So there is probably an extra stage of usage or perhaps something about your particular network router that needs to be determined. For example, what is you network doing overnight? Is it in use? Is a lot of data being transferred? Do you have flow control turned on on your router? What software is running on the Pi that might have some impact?

As I said, 3 months is NOTHING when compared to the complexity of trying to figure out ethernet issues that some people see and others don’t. I’ve personally spent months working on ethernet or wifi issues on the Pi over the last years and a half. And what is annoying NONE of them were Raspberry Pi’s fault – they are either in the firmware of the device or in the driver. Neither of which we have much control over, apart from reporting them to the firmware writers, or mailing the Linux netdev group, or trying to figure them out ourselves.

Semi-Official statement. All software has bugs. All HW has bugs, Usually we can get round HW problems with software. In this case, we do not yet know where the problem arises. We have determined at least one cause so far, the tcp segmentation offloading, which has fixed networking problems for most people. There appears to still be something going on, so we will continue to investigate.

I would prefer the investigation to be done via github, because more engineers see it there.

 

故邀有興趣者自讀論壇哩!?

※ 須知︰

‧ 先認識 vcgencmd 用法︰

RPI vcgencmd usage

Verified commands

Command outputs are from firmware version 362371.

vcgencmd commands

Shows a list of possible commands.

root@raspberrypi:~# vcgencmd commands
commands="vcos, ap_output_control, ap_output_post_processing, vchi_test_init, vchi_test_exit,
pm_set_policy, pm_get_status, pm_show_stats, pm_start_logging, pm_stop_logging, version, commands,
set_vll_dir, led_control, set_backlight, set_logging, get_lcd_info, set_bus_arbiter_mode,
cache_flush, otp_dump, codec_enabled, measure_clock, measure_volts, measure_temp, get_config,
hdmi_ntsc_freqs, render_bar, disk_notify, inuse_notify, sus_suspend, sus_status, sus_is_enabled,
sus_stop_test_thread, egl_platform_switch, mem_validate, mem_oom, mem_reloc_stats, file,
vctest_memmap, vctest_start, vctest_stop, vctest_set, vctest_get"

……

‧ 不識者或許其他論壇中有說明︰

Re: Raspbian Jessie linux 4.4.9 Severe Performance Degradati

Thu May 12, 2016 11:04 am

Heater wrote:

$ vcgencmd get_throttled
throttled=0x50005

Okay, the bits in this number represent:

0: under-voltage
1: arm frequency capped
2: currently throttled 
16: under-voltage has occurred
17: arm frequency capped has occurred
18: throttling has occurred

under-voltage occurs when voltage drops below 4.63V. The Pi is throttled
arm frequency capped occurs with temp > 80’C
over-temperature occurs with temp > 85’C. The Pi is throttled

Throttling removes turbo mode, which reduces core voltage, and sets arm and gpu frequencies to non-turbo value.
Capping just limits the arm frequency (somewhere between 600MHz and 1200MHz) to try to avoid throttling.
If you are throttled and not under-voltage then you can assume over-temperature. (confirm with vcgencmd measure_temp).

So 0x50005 means you are currently under-voltage and throttled.
If you want to be able to support this use case without throttling you will need a better power supply.

Although be aware running a stress test is not typical behaviour. If you never see a non-zero get_throttled value in normal usage, then you may not need to do anything.

 

此論壇,大部分『設定項』

framebuffer_height=2160

dtparam=eee=off

arm_freq=1200

sdram_freq=450

over_voltage_sdram_p=4

over_voltage_sdram_c=4

over_voltage=2

over_voltage_sdram_i=4

sdram_schmoo=0x01000010


 

出自

OVERCLOCKING OPTIONS IN CONFIG.TXT

NOTE: Setting any overclocking parameters to values other than those used byraspi-config may set a permanent bit within the SoC, making it possible to detect that your Pi has been overclocked. The specific circumstances where the overclock bit is set are if force_turbo is set to 1 and any of the over_voltage_* options are set to a value > 0. See the blog post on Turbo Mode for more information.

The latest kernel has a cpufreq kernel driver with the “ondemand” governor enabled by default. It has no effect if you have no overclock settings, but if you overclock, the CPU frequency will vary with processor load. Non-default values are only used when required, according to the governor. You can adjust the minimum values with the *_min config options, or disable dynamic clocking (and force overclocking) with force_turbo=1. For more information see here.

Overclocking and overvoltage will be disabled at runtime when the SoC reaches 85°C in order to cool it down. You should not hit this limit on Raspberry Pi models 1 or 2, but it is more likely with the Raspberry Pi 3. For more information see here. Overclocking and overvoltage are also disabled when an undervoltage situation is detected.

 

文件裡☆

 

 

 

 

 

 

 

 

 

樹莓派 3B+ 筦窺︰ GigaBit ︰ lockups?

《 網 》網的本義就是『結網捕魚』,如今我們已經討論過多種『網』,它們雖然名稱不同,許多性質卻是一樣的。為了避免有『漏網之魚』,在此特補之以

物理哲學·中中》之文摘︰

理所當然』未必一定是『理有必然』,就像說『改善交通』應該『多開條路』的吧!!德國數學家迪特里希‧布雷斯 Dietrich Braess 宣稱︰

在一個交通網上新闢一條通路,反而可能使得用路所需的時間增加了;這一條新闢的道路,非但無助於減少交通遲滯,卻很可能會降低了整個交通網的服務水準 。

500px-Braess_paradox_road_example.svg
T_{SE}^{A} = \frac{A}{100} + 45
T_{SE}^{B} = 45 + \frac{B}{100}

納什均衡, T_{SE}^{A} = T_{SE}^{B}
\therefore T_{eq} = 45 + \frac{2000}{100} = 65

如果 T_{AB} \approx 0,最佳選擇
T_{best} = T_{SA} + T_{AB} + T_{BE}
= \frac{4000}{100} + 0 + \frac{4000}{100} = 80

那麼布雷斯的說法有道理嗎?假使請讀者設想從『起點』 Start 到『終點』 End ,原有『兩個選擇』,要不經由『A 點』,否則就得經過『B 地』。人們從『經驗』上『知道』走 T_{SA} 路段要花的時間依賴『車流量』,大概需要 T_{SA} = \frac{A}{100} 分鐘,如果選擇先『到 B』 ,一般與『車流量』無關,是『固定的』四十五分鐘,可是 T_{BE} 要花的時間也依賴於『車流量』,時間差不多與『A』相同,也是 T_{SB} = \frac{B}{100} 分鐘。因此『理性』考慮『最短時間』,將會是『比較兩者』的『時間差』作選擇的吧?最後達到了『博奕論』Game Theory 所說的『納什均衡』 Nash equilibrium ,此時無論怎麽選擇『所需總時間』是一樣的 T_{SE}^{A} = T_{SE}^{B},也就是說,如果假設一天平均有四千輛車經過『Start-End』,大概將『各取一半』,其中有兩千輛走『A 點』,另兩千輛經『B 處』的吧!『今有人』為著『改善交通』,於是乎在『A、B 兩地』間,開了一條『高速道路』 T_{AB} \approx 0 ,『以為能』縮短『所需總時間』,結果卻是吃力不討好『適得其反』,這又為什麼的呢??因為一天最多不過有四千輛車 ,這樣 T_{SA} = \frac{4000}{100} = 40 不是比 T_{SB} = 45 要小的嗎?由於 T_{AB} \approx 0,當然接著走 T_{AB} 的吧,到了『B 地』之後,依然還是 T_{BE} = \frac{4000}{100} = 40 能不是比 T_{AE} = 45 小的嗎?於是乎,所有『非傻鳥』者『必走T_{best} = T_{SA} + T_{AB} + T_{BE} 之『陽關道』,因此就 = \frac{4000}{100} + 0 + \frac{4000}{100} = 80 的了!!

現今這稱之為『布雷斯悖論』。那麼『一時』與『長久』,以及『部份』和『整體』 ,又該怎麽說的呢??

物理哲學·中下》的文引︰

500px-Braess_paradox_road_example.svg

經驗形成法則??

假使有人想作『傻鳥』嘗試走『過去習慣』的道路,可能是 T_{SA} + T_{AE} = 40 + 45 = 85,或許是 T_{SB} + T_{BE} = 45 + 40  = 85,結果 85 > 80,果真是『傻鳥』的耶!!

現象已然形成,現實已經造就,事理能夠不自圓其說的嗎??如此多年之後,這就變成了經驗法則,大概沒人會相信曾經有過更好的選擇的吧!!

那麼一個人要是『開通思路』,他是否『推理』會變得更慢的呢?也許『豆鵝狐人』的回答是︰人類的『思維』一般會形成『定勢』 ,因此通常只見着『陽關道』,少會過『獨木橋』,故而很難發生布雷斯的悖論,還是『思多識廣』的好吧!但是告誡勇闖新世界的人們,小心所創作的『人工智慧』機器,最好不要一不小心,它卻變成『傻鳥』的了??

── 《勇闖新世界︰ 《 PYDATALOG 》 導引《十》豆鵝狐人之推理篇

 

『整體』固然由『部份』組成,隨意『增』、『刪』,恐陷『網羅 』耶?

『提問』其實不容易,『破題』往往費思量。若說整體部份能自洽 ,或得止觀觀止會通處耶?

以《止觀》來《觀止》,自能了解『整體』與『部份』的『自洽性』。就像拼圖』、數獨』以及燈謎』一樣,所求總在『整體』和『部份』之『契合』裡。這樣容易明白,一九七二年英國獨立的科學家、環保主義者和未來學家詹姆斯‧洛夫洛克 James Lovelock 提出的『蓋亞假說』 Gaia hypothesis ︰

地球整個表面,包括所有生命,構成一個自我調節的整體,這就是我所說的『蓋亞』。

簡單地說,蓋亞假說是指在生命與環境的相互作用之下,能使得『地球』適合『生命持續』的生存與發展。

維基百科上講︰

該觀點於 1972 年首次提出,主流科學家主要以其不夠嚴密為由堅決拒絕接受。 1981 年,這一觀點首次得到支持。當時,洛夫洛克創造出計算機模擬的反射或吸收太陽輻射的白色或黑色雛菊世界。由於雛菊的數量隨著普遍的表面溫度變化而相對改變,因此雛菊群維持全球氣溫均衡。此後,更多生物多樣性的複合模型提高了該系統的穩定性

當可以知道人們對『可計算』與『能度量』的堅持,有時忘卻了『不可計算性』和『測不準』的『科學』。怕只是『一時』以及『長遠』『○□難免』之爭的吧!

□︰ 『求解問題』有樂趣?『止觀觀止』能休閒嗎??

○︰ 煩惱即菩提

樂休『求不得』!

閒趣『止不了』!!


雖已『破題』,恐有人問到『題解』,『題解』倒是不知,或許能給些『提示』︰

讀錯□書⊙錯讀□書

天下一指、萬物一馬︰二進制

怎樣解題

‧ …… N. A.

,『藥引』嘛!問者自答!!

─── 摘自《M♪o 之 TinyIoT ︰ 《破題》

 

自問自答常可契合關鍵,當能自我啟蒙乎!

─── 摘自《時間序列︰生成函數‧漸近展開︰白努利 □○《十後》

 

所以『時流回反』︰

Re: Raspberry Pi 3 B+ lockups

Wed Jun 27, 2018 10:52 am

I did check the data sheet , the Elpida DDR2 is rated to 400MHz.
DRAM 100MHz, DDR is 200MHz, DDR2 is 400MHz some to 533MHz
https://en.wikipedia.org/wiki/DDR_SDRAM
Data rate is not clock rate.500MHz might be pushing it a bit much, 450MHz may be ok most of the time, 400MHz 100% of the time.
Generally process improvements mean speed can go up a little, 400 to 500 maybe too much?
Sometimes die shrinks can do this too, make the parts cheaper and faster.From reading a few posts and my own experience.
CPU speed >1200MHz, DDR > 450MHz, as yet unknown LAN issue is causing problems.
I only have one Pi3B+ that locks up, dropping CPU to 1300MHz fixed it.Pushing parts past specs in not out of spec. the spec is the rating all of them work at, all the time.
Most will work beyond that, 0 to 70 is normal spec, if they are only at 25C they could run much faster etc.
Normalized probability distribution curves.
A few million chips, there will be outliers, both ways, there will be some that work fine at 1600MHz :lol:

Re: Raspberry Pi 3 B+ lockups

Fri Jul 06, 2018 10:57 pm

here is what finally stopped the crashes (reboots if I left the UPS-Pico reset pin active)

over_voltage=4
over_voltage_sdram=4
arm_freq=1100
sdram_freq=450

root@octopi:~# uptime
15:54:59 up 4 days, 4:32, 1 user, load average: 0.22, 0.30, 0.28
root@octopi:~#

……

Re: Raspberry Pi 3 B+ lockups

Thu Apr 19, 2018 1:18 pm

Nachteule wrote:

Thu Apr 19, 2018 12:46 pm

jamesh wrote:

Wed Apr 18, 2018 8:33 pm

We expect to fix the huge huge majority with a software fix. And considering that the problem is only a small percentage of SoC’s anyway, that should be almost, if not absolutely, everyone.

We did update the apt kernels etc today, so anyone with the problem might like to try an apt update/upgrade to see if any of fixes the in there help.

I suppose it’s the opposite. There are only a small percentage of SoC’s that are working (and possible most of them are located in UK, in Cambridge) and the rest of them works instable

I got 2 Pi3B+ from different reseller/distributor and both are working instable. That means: 100% are broken

Er. No. Entirely wrong. 100% of the two you have seen need some tweaks. But we’ve sold over 200 thousand Pi3B+. A tiny percentage are seeing problems, and its unfortunate and unlikely that you appear to have seen two. If a large percentage were seeing problems I would expect an absolute barrage of complaints, and really, that hasn’t happened.

As for working ones in the UK, no , we are not wine makers – we don’t keep the best stuff for internal use. The main production lines are all in the UK, and distribute the Pi’s worldwide. There’s no picking and choosing!

We expect that a SW fix to the shmoo setting (RAM setup) will fix the vast majority of issues for that small percentage of SoC’s that are having difficulties.

Latest apt get will get 4.14.32 kernel BTW.

………

Raspberry Pi 3 B+ lockups

Fri Mar 23, 2018 4:34 am

Dear Support,

I bought a Raspberry Pi 3 B+ from Adafruit. I just got the Raspberry Pi 3 B+ in the mail today. I downloaded the most current official Raspbian Stretch image today and put it on a 32GB microSD. When booting the Raspberry Pi 3 B+ some times the eth0 doesn’t show up in ifconfig, some times the wlan0 doesn’t show up in ifconfig. Othertimes the system just flat out locks up at the Raspbian Desktop.

The other thing I noticed is when I opened the Raspberry Pi 3 B+ box that the Raspberry Pi 3 B+ was not in a anti-static bag like all the previous versions I have bought have been in. So not sure if I have a damaged unit, previous opened product, or something.

I tried using Adafruit’s forums, but their forums shows any support for a Raspberry Pi device I must come here to Raspberry Pi foundation forums.

 

往往得以『添補智慧』呦!

※︰參考

pi@raspberrypi:~ cat /proc/version  Linux version 4.14.69-v7+ (dc4@dc4-XPS13-9333) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611)) #1141 SMP Mon Sep 10 15:26:29 BST 2018  pi@raspberrypi:~ vcgencmd get_throttled
throttled=0x0

pi@raspberrypi:~ vcgencmd get_config int aphy_params_current=819 arm_freq=1400 audio_pwm_mode=514 config_hdmi_boost=5 core_freq=400 desired_osc_freq=0x331df0 desired_osc_freq_boost=0x3c45b0 disable_commandline_tags=2 disable_l2cache=1 display_hdmi_rotate=-1 display_lcd_rotate=-1 dphy_params_current=547 force_eeprom_read=1 force_pwm_open=1 framebuffer_ignore_alpha=1 framebuffer_swap=1 gpu_freq=300 hdmi_force_cec_address=65535 init_uart_clock=0x2dc6c00 lcd_framerate=60 mask_gpu_interrupt0=1024 mask_gpu_interrupt1=26370 over_voltage_avs=62500 over_voltage_avs_boost=0x2932e pause_burst_frames=1 program_serial_random=1 sdram_freq=450 pi@raspberrypi:~