Forums

Skip to content

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

[solved] Massive slowdowns when handling many small files

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
32 posts
  • Previous
  • 1
  • 2
Author
Message
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56082
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Fri Feb 21, 2025 4:45 pm

Jimini,

Did you do this on SSD or magnetic HDD?

Writes to SSD are slow if you need to wait for erase cycles, as FLASH memory cells cannot be overwritten.
I don't think forcing an erase is possible. It depends how the drive implements trim.

Its supposed to make notes, then do the erase before it slows down writes.
In some drives, it is an immediate command, which is a bad thing for write amplification.
Use fstrim now and again. No the discard mount option.

Magnetic HDD just overwrite previously written space. No prior slow erase required.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
dmpogo
Advocate
Advocate
Posts: 3711
Joined: Thu Sep 02, 2004 9:21 pm
Location: Canada

  • Quote

Post by dmpogo » Fri Feb 21, 2025 11:47 pm

NeddySeagoon wrote:Jimini,

Did you do this on SSD or magnetic HDD?

Writes to SSD are slow if you need to wait for erase cycles, as FLASH memory cells cannot be overwritten.
I don't think forcing an erase is possible. It depends how the drive implements trim.

Its supposed to make notes, then do the erase before it slows down writes.
In some drives, it is an immediate command, which is a bad thing for write amplification.
Use fstrim now and again. No the discard mount option.

Magnetic HDD just overwrite previously written space. No prior slow erase required.
But that would not explain the difference between the kernel versions ?
Top
Jimini
l33t
l33t
User avatar
Posts: 620
Joined: Tue Oct 31, 2006 8:39 am
Location: Germany

  • Quote

Post by Jimini » Sat Feb 22, 2025 4:14 am

NeddySeagoon wrote:Did you do this on SSD or magnetic HDD?
Only a RAID6 consisting of 7 HDD (1x Toshiba MG08ACA16TE, 1x Seagate Exos X18, 5x Seagate Exos X16) is affected here.
"The most merciful thing in the world, I think, is the inability of the human mind to correlate all its contents." (H.P. Lovecraft: The Call of Cthulhu)
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56082
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Sat Feb 22, 2025 12:51 pm

dmpogo,

Correct ... unless the SSDs decided to do a block of erase cycles when the suspect kernel was running. Then it would be coincidence. :)
Anyway, its all rotating rust, so we can rule out random SSD oddities.

Jimini,

I suspect your drives all all OK but can you put

Code: Select all

smartctl -x /dev/...
for each drive onto a pastebin please?
If one drive was being slow, or needing the kernel error handler, it would probably be kicked out of the set.
The error handler makes lots of noise in dmesg.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
Jimini
l33t
l33t
User avatar
Posts: 620
Joined: Tue Oct 31, 2006 8:39 am
Location: Germany

  • Quote

Post by Jimini » Sat Feb 22, 2025 6:09 pm

Neddy, of course, here you are:
https://paste.gentoo.zip/EhoatfiT
https://paste.gentoo.zip/JMwdci4E
https://paste.gentoo.zip/SdndfX1M
https://paste.gentoo.zip/maMgWzab
https://paste.gentoo.zip/cdbfCRTg
https://paste.gentoo.zip/evchNp90
https://paste.gentoo.zip/9JhwJwe1

I am currently in a hurry and cannot check the results by myself right now, will do this later and, if necessary, edit my post.

Kind regards
Jimini
"The most merciful thing in the world, I think, is the inability of the human mind to correlate all its contents." (H.P. Lovecraft: The Call of Cthulhu)
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56082
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Sat Feb 22, 2025 7:44 pm

Jimini,

That are all good.

Code: Select all

Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAGS    VALUE WORST THRESH FAIL RAW_VALUE
  5 Reallocated_Sector_Ct   PO--CK   100   100   010    -    0
197 Current_Pending_Sector  -O--C-   100   100   000    -    0
198 Offline_Uncorrectable   ----C-   100   100   000    -    0
199 UDMA_CRC_Error_Count    -OSRCK   200   200   000    -    0
and nothing in the error logs either.

That's another thing that it isn't :)
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
Jimini
l33t
l33t
User avatar
Posts: 620
Joined: Tue Oct 31, 2006 8:39 am
Location: Germany

  • Quote

Post by Jimini » Sat Apr 05, 2025 5:20 am

Dear all,

it's been one and a half months since my last update here. All of my systems are running a 6.12.* kernel, and the initial problem did not occure one single time.
Thus, I have marked this thread as "solved". If someone should be interested in further analysis or troubleshooting, please let me know :)

Best regards
Jimini
"The most merciful thing in the world, I think, is the inability of the human mind to correlate all its contents." (H.P. Lovecraft: The Call of Cthulhu)
Top
Post Reply

32 posts
  • Previous
  • 1
  • 2

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