Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 7512

Off topic discussion • Re: A bit of Raspberry with 144C/288T

$
0
0
I used this small code that statically allocates 500GiB, fills with 0x03 and then computes the sum:

Code:

#include <iostream>#include <string.h>#define N 500000000000static unsigned char arr[N];int main() {  memset(arr, 3, N);  std::cout << sizeof(arr) << "\n";  unsigned long s=0;  for(unsigned long i=0; i<N; ++i)  s+=arr[i];  std::cout << s << "\n";}

The sizeof output appeared after 7:12min according top:
hermann@x3950-X6:~$ g++ -O3 mem.cpp
hermann@x3950-X6:~$ time ./a.out
500000000000
1500000000000

real13m13.978s
user4m53.795s
sys8m0.540s
hermann@x3950-X6:~$ edac-util -v
mc0: 0 Uncorrected Errors with no DIMM info
mc0: 0 Corrected Errors with no DIMM info
mc10: 0 Uncorrected Errors with no DIMM info
mc10: 0 Corrected Errors with no DIMM info
mc11: 0 Uncorrected Errors with no DIMM info
mc11: 0 Corrected Errors with no DIMM info
mc12: 0 Uncorrected Errors with no DIMM info
mc12: 0 Corrected Errors with no DIMM info
mc13: 0 Uncorrected Errors with no DIMM info
mc13: 0 Corrected Errors with no DIMM info
mc14: 0 Uncorrected Errors with no DIMM info
mc14: 0 Corrected Errors with no DIMM info
mc15: 0 Uncorrected Errors with no DIMM info
mc15: 0 Corrected Errors with no DIMM info
mc1: 0 Uncorrected Errors with no DIMM info
mc1: 0 Corrected Errors with no DIMM info
mc2: 0 Uncorrected Errors with no DIMM info
mc2: 0 Corrected Errors with no DIMM info
mc3: 0 Uncorrected Errors with no DIMM info
mc3: 0 Corrected Errors with no DIMM info
mc4: 0 Uncorrected Errors with no DIMM info
mc4: 0 Corrected Errors with no DIMM info
mc5: 0 Uncorrected Errors with no DIMM info
mc5: 0 Corrected Errors with no DIMM info
mc6: 0 Uncorrected Errors with no DIMM info
mc6: 0 Corrected Errors with no DIMM info
mc7: 0 Uncorrected Errors with no DIMM info
mc7: 0 Corrected Errors with no DIMM info
mc8: 0 Uncorrected Errors with no DIMM info
mc8: 0 Corrected Errors with no DIMM info
mc9: 0 Uncorrected Errors with no DIMM info
mc9: 0 Corrected Errors with no DIMM info
edac-util: No errors to report.
hermann@x3950-X6:~$

Statistics: Posted by HermannSW — Fri Sep 19, 2025 7:03 pm



Viewing all articles
Browse latest Browse all 7512

Trending Articles