Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

non-ECC or ECC RAM?

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
10 posts • Page 1 of 1
Author
Message
Blind_Sniper
Guru
Guru
Posts: 373
Joined: Fri Apr 20, 2018 9:48 am

non-ECC or ECC RAM?

  • Quote

Post by Blind_Sniper » Fri Jan 08, 2021 6:21 pm

Hi!
I thinking of building new box and can't decide which RAM to buy: ECC or non-ECC?
Somewhere on web I read that non-ECC RAM can cause segfoults when compiling huge projects if using more than 16 Gb of RAM (32 or 64Gb). And there was recommendations to buy ECC RAM if you need 32Gb or more.
Anyone here using non-ECC RAM of 32 Gb or higher?
GNU is Not Usable
Top
mike155
Advocate
Advocate
Posts: 4438
Joined: Fri Sep 17, 2010 11:33 pm
Location: Frankfurt, Germany

  • Quote

Post by mike155 » Fri Jan 08, 2021 6:42 pm

You may want to read: https://www.phoronix.com/scan.php?page= ... rvalds-ECC
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56108
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Fri Jan 08, 2021 7:57 pm

Blind_Sniper,

ECC costs you one clock cycle to do the check and correct if required.
If you do get a detected error it will be logged in dmesg.

If no errors are corrected, you can be sure you didn't need ECC RAM. Without it, you never know.
ECC will detect and correct single bit errors, detect but not correct two bit errors and after that all bets are off.

Do you feel lucky?
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
Ant P.
Watchman
Watchman
Posts: 6920
Joined: Sat Apr 18, 2009 7:18 pm
Contact:
Contact Ant P.
Website

  • Quote

Post by Ant P. » Fri Jan 08, 2021 8:30 pm

It's a constant gamble with physics.

If you don't want the cost of ECC, the next best thing you can do is overprovision your RAM so it's never highly occupied with important data. It *will* go wrong at some point, and the best you can hope for then is that the bit getting flipped is in unused space.

I'm doing the latter. 64GB non-ECC, only usually filled up when I'm running emerge.
Top
Blind_Sniper
Guru
Guru
Posts: 373
Joined: Fri Apr 20, 2018 9:48 am

  • Quote

Post by Blind_Sniper » Fri Jan 08, 2021 10:07 pm

NeddySeagoon wrote:Blind_Sniper,

ECC costs you one clock cycle to do the check and correct if required.
I know it will be slower than non-ECC for about 10%. The thing is availability of high speed ECC RAM. I want to buy 2x16Gb 3600 Mhz or 4000 Mhz, but there is no such a fast ECC RAM. At least I didn't see any of it.
Ant P. wrote:If you don't want the cost of ECC, the next best thing you can do is overprovision your RAM so it's never highly occupied with important data. It *will* go wrong at some point, and the best you can hope for then is that the bit getting flipped is in unused space.

I'm doing the latter. 64GB non-ECC, only usually filled up when I'm running emerge.
So, it works for you?

@mike155, thanks for the link, but I think, my use case differs of use case Linus cares about (high load servers)
GNU is Not Usable
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56108
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Fri Jan 08, 2021 10:24 pm

Blind_Sniper,

I have access to two arm64 systems, both with 128GB RAM. One reports ECC errors several time a month.
Its in a data centre.
The other has yet to report any errors.

If you want RAM at 3600 Mhz or 4000 Mhz, why would you increase the latency with ECC?

I guess you want unregistered DDR4 too?
It boils down to
Scotty wrote:You cannae break the laws of physics captain
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
Blind_Sniper
Guru
Guru
Posts: 373
Joined: Fri Apr 20, 2018 9:48 am

  • Quote

Post by Blind_Sniper » Fri Jan 08, 2021 10:42 pm

Several errors for 128Gb when it runs for a month?
If so my use case (desktop, browsing, playing chess online and weekly running emerge) with max uptime couple of days doesn't require any ECC.
I started this topic because I read some complain that running compiler at 32Gb of non-ECC RAM caused segfolts in 20 mins. May be that dude had a different problem? Though he stated that problem was fixed bby replacing non-ECC with ECC modules.

So I guess, I will pick non-ECC (unregistered, afaik only ECC RAM can be registered).
GNU is Not Usable
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56108
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Fri Jan 08, 2021 10:57 pm

Blind_Sniper,

... and none at all after several months on the other system.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
Tony0945
Watchman
Watchman
Posts: 5127
Joined: Tue Jul 25, 2006 12:19 am
Location: Illinois, USA

  • Quote

Post by Tony0945 » Fri Jan 08, 2021 11:02 pm

Blind_Sniper wrote:I started this topic because I read some complain that running compiler at 32Gb of non-ECC RAM caused segfolts in 20 mins. May be that dude had a different problem? Though he stated that problem was fixed bby replacing non-ECC with ECC modules.
Maybe he just had bad RAM or was overclocking it unmercifully. I buy RAM from high quality manufacturers and don't push the specs. I had one stick of Ballistix RAM fail after five years. Crucial honored the lifetime warranty but no longer made that Ballistix RAM. They offered a credit against direct purchase or my taking twice as much standard RAM (also with lifetime warranty) . I took lthe latter offer. Of course, RAM doesn't last forever. They probably have calculated that most buyers will junk their machine for a newer model before the RAM fails.
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56108
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Fri Jan 08, 2021 11:08 pm

Blind_Sniper,

ECC is a safety net. One random soft error every now and again is probably a cosmic ray.
If you need the ECC on a regular basis, then something is wrong and needs to be fixed.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
Post Reply

10 posts • Page 1 of 1

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic