[MDEV-5766] my_atomic_load does memory writes Created: 2014-02-28  Updated: 2014-03-11  Resolved: 2014-03-11

Status: Closed
Project: MariaDB Server
Component/s: None
Affects Version/s: 10.0.8
Fix Version/s: 10.0.10

Type: Bug Priority: Minor
Reporter: Sergey Vojtovich Assignee: Sergey Vojtovich
Resolution: Fixed Votes: 0
Labels: None


 Description   

Any number of threads can read from a shared memory location simultaneously whereas at most one thread can write to a shared memory location at the same time.

Atomic load shouldn't sacrifice scalability in this way. Use __atomic_load_n() whenever it is available for atomic loads.

Currently it doesn't seem to cause any problems because atomic loads are rarely used during SQL statement execution. OTOH performance schema seem to be using atomic loads heavily.

More information: http://svoj-db.blogspot.ru/2014/02/mariadb-scalability-atomic-load.html



 Comments   
Comment by Sergey Vojtovich [ 2014-03-07 ]

Sergei, please review fix for this bug.

Comment by Sergey Vojtovich [ 2014-03-11 ]

Fixed in 10.0.10, revno: 4045, revision-id: svoj@mariadb.org-20140307074306-blf3begv8ee0tb5j

Generated at Thu Feb 08 07:06:54 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.