Re: how to test a linux driver for SMP concurrency issues

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi AMit...

On Tue, Jun 28, 2011 at 19:36, Amit Nagal <helloin.amit@xxxxxxxxx> wrote:
> Hi ,
>
> i want to test a linux driver to identify concurrecy issue that may
> arise on a SMP system .
> can i be advised with  usage of some tools / mechanisms , so that the
> driver can be made SMP safe ?

IMHO there is no easy answer here. What you need is careful code audit
and check the way you access shared resources
(variables/structures/etc).

Whenever you encounter such operations, decide whether you wanna make
it as fast path (must be done real quick) or slow path (longer delay
is acceptable).

In fast path, put spin locks locking/unlocking. In slow path, you
might use mutex or any kind of blocking locking.

-- 
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux