in ,

Linus: Don't Use ZFS, Hacker News


By:Beastian([email protected]), January 3, (****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************: am

I’m usually on the other side of these primitives when I write code as a consumer of them, but it’s very interesting to read about the nuances related to their implementations:

https://probablydance.com / / 14 / 31 / measuring-mutexes-spinlocks-and-how-bad-the-linux-scheduler-really-is /

The problem was that there was a thread that spent several milliseconds trying to acquire a spinlock at a time when no other thread was holding the spinlock.

Topic Posted By ************ (Date) ************** Nuances related to Spinlock implementation and the Linux Scheduler Beastian **************************************************************************************************************************************************************************************************************************************************************************************************************************** / (/ **************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************** 13: AM ************************ Nuances related to Spinlock implementation and the Linux SchedulerMontaray Jack**************************************************************************************************************************************************************************************************************************************************************************************************************************** / / (*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************: (PM)

Nuances related to Spinlock implementation and the Linux Scheduler

Montaray Jack ************************************************************************************************************************************************************************************************************************************************************************************************************************************ / / (********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************: 2019 PM No nuances, just buggy code (was: related to Spinlock implementation and the Linux Scheduler)

********* Linus Torvalds

********** / 03 / ******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************: (PM) ***************** ********************** No nuances, just buggy code (was: related to Spinlock implementation and the Linux Scheduler) Beastian ******************** / 01 / : AM No nuances, just buggy code (was: related to Spinlock implementation and the Linux Scheduler) Malte Skarupke / 01 / 13: AM )No nuances, just buggy code (was: related to Spinlock implementation and the Linux Scheduler )Linus Torvalds / (/ (**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************: (PM) ***************** ************************** No nuances, just buggy code (was: related to Spinlock implementation and the Linux Scheduler) dmcq *********************************************************************************************************************************************************************************************************************************************************************************************************************** (/ 03 / 06 (**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************: (AM)

No nuances, just buggy code (was: related to Spinlock implementation and the Linux Scheduler)

smeuletz 189781 / 03 / (****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************** AM ******************************** Do not blame others for your unfinished job (smeuletz) ****************** / 03 / (************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************ : (AM) ****************Where did all the experts come from? Did Linus get linked? (NT) (anon**************************************************************************************************************************************************************************************************************************************************************************************************************************** / /: (AM) ***************************************************** Phoronix************ Gabriele Svelto **************************************************************************************************************************************************************************************************************************************************************************************************************************** / / 08 (**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************: AM

Phoronix

(Salvatore De Dominicis) / / (**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************: AM **************************************************************************** Do not blame anyone. Please give polite, constructive criticism Chester / 04 / (******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************: AM

Do not blame anyone. Please give polite, constructive criticism

smeuletz

189712 / 04 / (******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************: ***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************** (AM (*************** Do not blame anyone. Please give polite, constructive criticism Chester / 04 / (******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************: ****************************************************************************************************************************************************************************************************************************************************************************************************************************************** AM Do not blame anyone. Please give polite, constructive criticism smeuletz 189712 / 04 / (******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************: ******************************************************************************************************************************************************************************************************************************************************************************************************************************************************** AM**************************************************** Do not blame anyone. Please give polite, constructive criticism

Linus Torvalds

/ / (****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************: (AM) ******************************

******************************************** Do not blame anyone. Please give polite, constructive criticism Gionatan Danti ****************************************************************************************************************************************************************************************************************************************************************************************************************************** / / (****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************: PM Do not blame anyone. Please give polite, constructive criticism Linus Torvalds / / (****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************: ******************************************************************************************************************************************************************************************************************************************************************************************************************************************************** (PM) ***************** ******************************************************Do not blame anyone. Please give polite, constructive criticism Gionatan Danti ****************************************************************************************************************************************************************************************************************************************************************************************************************************** / / (****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************: ********************************************************************************************************************************************************************************************************************************************************************************************************************************************** (PM) ******************************Do not blame anyone. Please give polite, constructive criticism smeuletz 189712 / 04 / (**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************: (AM) Do not blame anyone. Please give polite, constructive criticism Simon Farnsworth ****************************************************************************************************************************************************************************************************************************************************************************************************************************** / / (****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************: (PM) ************************************************************Do not blame anyone. Please give polite, constructive criticism Etienne / 04 / (**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************: AM Do not blame anyone. Please give polite, constructive criticism

smeuletz

189712 / 06 / (************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************: (AM) ****************

Do not blame anyone. Please give polite, constructive criticism Michael S************************************************************************************************************************************************************************************************************************************************************************************************************************************** / / (************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************: (AM) **************************************** (Not deprecating irrelevant API: sched_yield () on quantum computers?

smeuletz

/ 06 / (****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************** AM ******************* Do not blame anyone. Please give polite, constructive criticism rwessel 189712 / 04 / (******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************: ************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************** PM Do not blame anyone. Please give polite, constructive criticism Linus Torvalds / / (****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************: AM Do not blame anyone. Please give polite, constructive criticism Gabriele Svelto / / 02: 37 PM

****************************************************************************** (No nuances, just buggy code (was: related to Spinlock implementation and the Linux Scheduler) President ltd

/ 04 / 05 (****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************: ************************************************************************************************************************************************************************************************************************************************************************************************************************************************** (PM) No nuances, just buggy code (was: related to Spinlock implementation and the Linux Scheduler) Jörn Engel / 01 / 14: (AM

******************************************************************************* No nuances, just buggy code (was: related to Spinlock implementation and the Linux Scheduler)**** Emil Briggs. **************

/ / (************************************************************************************************************************************************************************************************************************************************************************************************************************************************************: PM ************************************************************************ No nuances, just buggy code (was: related to Spinlock implementation and the Linux Scheduler) Jörn Engel

/ / (**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************: ****************************************************************************************************************************************************************************************************************************************************************************************************************************************** PM No nuances, just buggy code (was: related to Spinlock implementation and the Linux Scheduler)********** Linus Torvalds 189723 / / (**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************: (PM) ********************************************************************************************************************************************************************************** No nuances, just buggy code (was: related to Spinlock implementation and the Linux Scheduler)

Linus Torvalds************ / 04 / (****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************: (PM)

******************************************************************************** (No nuances, just buggy code (was: related to Spinlock implementation and the Linux Scheduler) Jörn Engel / / (****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************: ****************************************************************************************************************************************************************************************************************************************************************************************************************************************************** AM **************** *********************************************************************************************************************************************************************************** No nuances, just buggy code (was: related to Spinlock implementation and the Linux Scheduler)************ Linus Torvalds **************************************************************************************************************************************************************************************************************************************************************************************************************************** / / 11: 45 AM FUTEX_LOCK_PI performance

Jörn Engel

*********************************************************************************************************************************************************************************************************************************************************************************************************************************** / / (******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************: (PM) ******************

************ FUTEX_LOCK_PI performance (Linus Torvalds) **************** 189723 / / 05 06: (PM) ************************************************************************************************

FUTEX_LOCK_PI performance

Jörn Engel

*********************************************************************************************************************************************************************************************************************************************************************************************************************************** / / (************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************: PM **************************************************************************************

FUTEX_LOCK_PI performance

RichardC

189712 / 06 / (********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************

********************************************************************************************************************************************************************************************************************************************************************************************************************************************** AM ******************************************************************************************************************

FUTEX_LOCK_PI performance ****** (Linus Torvalds) ******************189712 / 04 / 05 (****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************: ************************************************************************************************************************************************************************************************************************************************************************************************************************************************************ PM **************************************************************************************************** FUTEX_LOCK_PI performance Gabriele Svelto

****************************************************************************************************************************************************************************************************************************************************************************************************************************** / / 08 ************************************************************************************************************************************************************************************************************************************************************************************************************************************************************ AM (*************** FUTEX_LOCK_PI performance xilun 189781 / / 06 (************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************: ********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************** (PM

********************************************************************************************************** (******************************************************************************************** No nuances, just buggy code (was: related to Spinlock implementation and the Linux Scheduler)rainstar************ / / 04 14: 59 PM

************************************************************************************************** No nuances, just buggy code (was: related to Spinlock implementation and the Linux Scheduler) Charles Ellis

/ (/ 03: (AM)

No nuances, just buggy code (was: related to Spinlock implementation and the Linux Scheduler) Richard / (/ 12: AM ****************************************************************************************************************** **************************************************************************************************** it’s hard to separate Michael S

**************************************************************************************************************************************************************************************************************************************************************************************************************************** / / (********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************: AM

******************************************************************************************************** It’s hard to separate

rainstared

/ 04 / (******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************: ****************************************************************************************************************************************************************************************************************************************************************************************************************************************** AM It’s hard to separate David Kanter / / (********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************: (AM) **************** (****************************************************************************************************** It’s hard to separate

Anon

189723 / 02 / (********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************: PM

(**************It’s hard to separate. none (******************************************************************************************************************************************************************************************************************************************************************************************************************** / / 08 (********************************************************************************************************************************************************************************************************************************************************************************************************************************************** PM (********************************************************************************************************************************************************************************************************************************************** It’s hard to separate

Anon

189747 / 04 / (**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************: AM It’s hard to separate

none

/ / (**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************: ****************************************************************************************************************************************************************************************************************************************************************************************************************************************** (AM) **************** (************************************************************************************************************** It’s hard to separate gallier2 (/ 03 / (****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************: (AM) **************** (************************************************************************************************************** (******************************************************************************************************************************** It’s hard to separate (Anon) **************** / / / **************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************: (AM) It’s hard to separate Adrian / 04 / 08 (************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************: AM************************************************************************************************************************************ It’s hard to separate gallier2 / / (**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************: () **************************************************************************************************************************************************************************************************************************************************************************************************************************************** (AM) ************************************************************************************************************************** (It’s hard to separate Adrian / (/ ******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************** (********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************: AM (******************** It’s hard to separate

gallier2

************************************************************************************************************************************************************************************************************************************************************************************************************************************ (/ 04 / 10 (**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************: (AM) ******************************It’s hard to separate

Adrian 189723 / 02 / 12 (************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************: (AM) ****************************** ************************************************************************************************************************************** It’s hard to separate Anon 189781 / 05 / 09 (************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************: ******************************************************************************************************************************************************************************************************************************************************************************************************************************************************** AM

****************

(It’s hard to separate

gallier2 ****************************************************************************************************************************************************************************************************************************************************************************************************************************** / / (**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************: AM**********************************************************************************************************************************************It’s hard to separate (David Hess

) / (/ (************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************: AM

It’s hard to separate Adrian / 03 / (******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************: AM It’s hard to separate David Hess **************** / 01 / (****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************** : AM **********************************************************************************************************************************************It’s hard to separate Anon ***************** / / 13 (******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************: AM ****************** ****************************************************************************************************************************************************** It’s hard to separate Adrian 189723 / 00 /******************************************************************************************************************************************************************************************************************************************************************************************************************************************************: (AM)It’s hard to separate Brett / (/ 11 (**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************: ********************************************************************************************************************************************************************************************************************************************************************************************************************************************** (PM) ******************************It’s hard to separate Adrian / / 13 (******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************: ********************************************************************************************************************************************************************************************************************************************************************************************************************************************************** AM **************** ********************************************************************************************************************************************************** (********************************************************************************************************************************************** It’s hard to separate rwessel 189723 / / (********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************: **************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************** AM It’s hard to separate

David Hess

********************************************************************************************************************************************************************************************************************************************************************************************************************************** (/ 03 / (********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************: AM ************************

****************************************************************************************************************************************************** It’s hard to separate rwessel 189723 / 00 / (********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************: () ****************************************************************************************************************************************************************************************************************************************************************************************************************************************** AM**************************************************************************************************************************************************** It’s hard to separate Adrian ) 189723 / 05 / 07 (******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************: ************************************************************************************************************************************************************************************************************************************************************************************************************************************** (PM) ************** ********************************************************************************************************************************************************************** It’s hard to separate rwessel

189723 / 03 / (************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************: AM It’s hard to separate

Adrian 189781 / / 09 (**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************: (AM) ****************************** It’s hard to separate

David Hess

) / / (****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************: ****************************************************************************************************************************************************************************************************************************************************************************************************************************************************** AM ************************************************************************************************************************************************************** (************************************************************************************************************************************************************** It’s hard to separate none 189712 / 02 / (********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************: (AM

******************************************************************************************************************************************************************************

No nuances, just buggy code (was: related to Spinlock implementation and the Linux Scheduler)************rainstared/ / (**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************: AM No nuances, just buggy code (was: related to Spinlock implementation and the Linux Scheduler) ***************** / / (**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************: AM ************************************************************************************************************************************************************************************************ **************************************************************************************************************************************************************************** No nuances, just buggy code (was: related to Spinlock implementation and the Linux Scheduler) dmcq 189712 / 06 / 07 (************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************: ********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************** (AM) ****************changes in contextCarlie Coats 189747 / 04 / (******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************: AM ************************************************************************************************************************************************************************************ **************************************************************************************************************************************************************************************** Suggested read ing for the author anon

/ (/ 10: (PM) ****************

Suggested reading for the author ab

/ (/ ************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************ : AM (******************** Looking at the other side (frequency scaling)

(Chester) ******************

********************************************************************************************************************************************************************************************************************************************************************************************************************************* / / 08: AM Looking at the other side (frequency scaling)*************** / 05 / (******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************: 02 AM*********************************************************************************************************************************************************************************************** (********************************************************************************************************************************************************************************************** (Why spinlocks were used)

**************** / / 06 (****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************: (AM) **************** ************************************************************************************************************************************************************************************************** Why spinlocks were used Jukka Larja (/ **************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************** / (****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************** : (AM) ************************************************************************************************************************************************************************ Why spinlocks were used Simon Cooke / / 06 (**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************: PM Why spinlocks were used

Rizzo

************ / 01 / (****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************: () ************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************ (AM) ****************

Looking at the other side (frequency scaling)ab

189723 / / 07 (****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************: AM ************************ ****************************************************************************************************************************************************************************************************Cross-platform code (Gian-Carlo Pascutto) ****************() ************************************************************************************************************************************************************************************************************************************************************************************************************************************ / / 04 / (******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************: (AM) ****************************** Cross-platform code Michael S *********************************************************************************************************************************************************************************************************************************************************************************************************************************** / 03 / (****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************** AM ************************************************************************************************************************************************************************************************************************ (Cross-platform code ) ************** Gian-Carlo Pascutto 189723 / 00 / 11: (AM) **************** ************************************************************************************************************************************************************************************************** (Cross-platform code) Michael S 189781 / 03 / 10 (**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************: 2020 PM (Cross-platform code) **************** Nksingh / 05 / 07 (****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************: (PM) *********************************************************************************************************************************************************************************************************************************** Cross-platform code Michael S (/ 03 / (**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************: (AM) *********************************************************************************************************************************************************************************************************************************** ******************************************************************************************************************************************************************************************************************** (SRW lock implementation Michael S

/ 02 / 01: (AM) ***************************************************************************************************************************************************************************************************************************************

**************************************************************************************************************************************************************************************************** Cross -platform code(Linus Torvalds / / (************************************************************************************************************************************************************************************************************************************************************************************************************************************************************: PM (Read More) ******************************************************************************************************************************************************************************************************************** (************************************************************************************************************************************************************************************************************************

What do you think?

Leave a Reply

Your email address will not be published. Required fields are marked *

GIPHY App Key not set. Please check settings

Dow Ratchets Toward 29,000 as Boeing & Apple Revel in Risk-On, Crypto Coins News

Dow Ratchets Toward 29,000 as Boeing & Apple Revel in Risk-On, Crypto Coins News

Google Research: Looking Back at 2019, and Forward to 2020 and Beyond, Hacker News

Google Research: Looking Back at 2019, and Forward to 2020 and Beyond, Hacker News