discussion of statistical methods for sil2linuxmp
play

Discussion of Statistical Methods for SIL2LinuxMP Nicholas Mc Guire - PowerPoint PPT Presentation

Discussion of Statistical Methods for SIL2LinuxMP Nicholas Mc Guire < safety@osadl.org > July 14, 2016 Outline Discussion of Statistical Methods for SIL2LinuxMP Nicholas Mc Introdution Guire < safety@osadl.o Overall approach to


  1. Discussion of Statistical Methods for SIL2LinuxMP Nicholas Mc Guire < safety@osadl.org > July 14, 2016

  2. Outline Discussion of Statistical Methods for SIL2LinuxMP Nicholas Mc Introdution Guire < safety@osadl.o Overall approach to quantification Overall Short overview of Linux kernel DLC approach Sttaistical process assessment Kernel DLC Process Estimating bugs Assessment Estimating Analyzing exposure and coupling issues bugs Handling Severity Exposure & Coupling Conclusions Handling severity

  3. SIL2LinuxMP Context Discussion of Statistical Methods for SIL2LinuxMP Nicholas Mc Guire < safety@osadl.o Overall approach Kernel DLC Process Assessment Estimating bugs Exposure & Coupling Handling severity Generic qualification approach for multicore systems Suitable for up to SIL2 (IEC 61508 Ed 2)

  4. Specific context - Arch 4 Discussion of Statistical Methods for SIL2LinuxMP Nicholas Mc Guire < safety@osadl.o Overall approach Kernel DLC Process Assessment Estimating bugs Exposure & Coupling Handling severity

  5. Specific context - Arch 4 Discussion of Statistical Methods for SIL2LinuxMP Nicholas Mc Guire < safety@osadl.o Overall approach Kernel DLC Process Assessment Estimating bugs Exposure & Coupling Handling severity

  6. DLC Adjusted for software selection Discussion of Statistical Methods for SIL2LinuxMP Nicholas Mc Guire < safety@osadl.o Overall approach Kernel DLC Process Assessment Estimating bugs Exposure & Coupling Handling severity

  7. DLC Adjusted for software selection Discussion of Statistical Methods for SIL2LinuxMP Nicholas Mc Guire < safety@osadl.o Overall approach Kernel DLC Process Assessment Estimating bugs Exposure & Coupling Handling severity

  8. Big picture of DLC/SLC Target System DLC/SC Pre-Existing Elements Discussion of Statistical Use-Case 7.2 Concept candidate elements -> safety contribuation Methods for potential SIL2LinuxMP DRM 7.3 Scope HAZOP/FMEA 7.4 Hazard/Risk safety potential Nicholas Mc Analysis dependency tree Overall safety 7.5 Safety func. Guire requirements requirements < safety@osadl.o 7.6 Allocation potential architecture selection of intended 7.X Selection safety functions Overall First system concept consolidation phase -- preliminiary architecture approach assessment of partitioning dependencies of safety -3 7.4.2.6-11 Kernel DLC -> level of functions independence Process Allocation of elements to partitions: layered prtection architecture Assessment -3 Annex C Estimating contributions Methods of conceptual ESD of failure model + 1. Validation analysis bugs +7.4.2.13 a-i Exposure & PRA LOPA PRA Coupling Handling severity BH-Safety: Claims of generic function risk reduction capabilities of safety-related dependent functions. -> assumptions -> constraints on system -> constraints on applications Element safety Certi ✁ cation manual (Annex D) Data Package

  9. Kernel DLC Discussion of Statistical Methods for SIL2LinuxMP Nicholas Mc Guire < safety@osadl.o Overall approach Kernel DLC Process Assessment Estimating bugs Exposure & Coupling Handling severity

  10. Kernel DLC assessment of continuity Discussion of Statistical Methods for SIL2LinuxMP Nicholas Mc Guire < safety@osadl.o Overall approach Kernel DLC Process Assessment Estimating bugs Exposure & Coupling Handling severity

  11. -next/-linus 2nd/3ed stage Discussion of Statistical Daily integration (...well 5 times a week on average) Methods for SIL2LinuxMP integration relative to linus tree Nicholas Mc Guire Non-merge commits (relative to Linus’ tree): 1899 < safety@osadl.o 1637 files changed, 67661 insertions(+), 46594 deletions(-) Merges 232 trees (incl Linus’ and 35 trees pending for Overall approach Linus) Kernel DLC Build-log available at Process http://kisskb.ellerman.id.au/linux-next Assessment Estimating Daily report on bugs added/dropped trees Exposure & Coupling new conflicts Handling new build failures severity any fixups inserted Statistics: http://neuling.org/linux-next-size.html

  12. adding trees to -next Discussion of Statistical Methods for Thanks for adding your subsystem tree as a participant of linux-next. SIL2LinuxMP As you may know, this is not a judgment of your code. The purpose of Nicholas Mc linux-next is for integration testing and to lower the impact of Guire conflicts between subsystems in the next merge window. < safety@osadl.o You will need to ensure that the patches/commits in your tree/series have been: Overall * submitted under GPL v2 (or later) and include the Contributor’s approach Signed-off-by, * posted to the relevant mailing list, Kernel DLC * reviewed by you (or another maintainer of your subsystem tree), Process * successfully unit tested, and Assessment * destined for the current or next Linux merge window. Estimating Basically, this should be just what you would send to Linus (or ask bugs him to fetch). It is allowed to be rebased if you deem it necessary. -- Exposure & Cheers, Coupling Stephen Rothwell sfr@canb.auug.org.au Handling severity No exceptions - Greg KH asks for a tree to be added - this message goes out !

  13. Linux -next dynamics Discussion of Statistical Methods for SIL2LinuxMP Nicholas Mc Guire < safety@osadl.o Overall approach Kernel DLC Process Assessment Estimating bugs Exposure & Coupling Handling severity while(1) Integrate - > Consolidate

  14. Usage of linux-next Discussion of Statistical Methods for A large part of patches is against linux-next SIL2LinuxMP It is for integration - so it does not necessarily retain a Nicholas Mc Guire seerate history < safety@osadl.o Coordination of subsystem happens a lot in linux-next, Overall approach asynchronous development can break things - linux-next is Kernel DLC where it should break Process Assessment 0-day-build and arm-buildbot use linux-next for extended Estimating build-testing and boot-testing bugs linux-next is a main input to the commit-window and has Exposure & Coupling significantly lowered the conflict rate and conflict induced Handling bugs (hot-fixes tend to be more buggy than continuous severity cleanup and polishing)

  15. Linux -next merge conflicts Discussion of Statistical Methods for SIL2LinuxMP Nicholas Mc Guire < safety@osadl.o Overall approach Kernel DLC Process Assessment Estimating bugs Exposure & Coupling Handling Note that it does hot hit 0 as Steven Rothwel carries some severity fixups in -next to resolve these issues.

  16. Merge conflicts as 1st dependency indicator Conclicts in -next during March and April 2016 cumulative Discussion of Statistical Methods for 1 aio/vfs | 1 rdma/Linus SIL2LinuxMP 1 akpm-current/drm | 1 rdma/crypto 1 akpm-current/gpio | 1 rdma/net-next Nicholas Mc 1 akpm-current/powerpc | 1 samsung-krzk/arm-soc Guire 1 akpm-current/tile | 1 samsung-krzk/omap < safety@osadl.o 1 akpm/tip | 1 staging/staging 1 block/Linus | 1 staging/staging.current Overall 1 btrfs-kdave/Linus | 1 staging/v4l-dvb approach 1 ceph/Linus | 1 staging/watchdog 1 clk tree/arm-soc | 1 tip/arm64 Kernel DLC 1 crypto/net-next | 1 tip/drm 1 current,staging/Linus | 1 tip/mips Process 1 drm-misc/drm-intel | 1 usb-gadget/usb-gadget-fixes Assessment 1 drm/Linus | 1 usb/tip 1 dt-rh/tegra | 1 vfs/Linus Estimating 1 ext4/Linus | 1 watchdog/arm-soc bugs 1 gpio/mfd | 1 xen-tip/arm64 1 gpio/tip | 1 xen-tip/tip Exposure & 1 keys/crypto | 1 xfs/ext4 Coupling 1 kvm-ppc-paulus/kvm-arm | 2 akpm-current/tip <-- Handling 1 leds/nand | 2 drm-misc/Linus <-- severity 1 livepatching/Linus | 2 overlayfs/ext4 <---- !! 1 mvebu/arm-soc | 3 arm64/Linus <-- 1 net-next/Linus | 3 tip/pm <-- 1 pm/renesas | 5 net-next/net 1 rcu/Linus |

  17. Linux -linus consolidation Discussion of Statistical Methods for SIL2LinuxMP Nicholas Mc Guire < safety@osadl.o Overall approach Kernel DLC Process Assessment Estimating bugs Exposure & Coupling Handling severity

  18. Estimating bugs Discussion of Statistical Methods for SIL2LinuxMP Nicholas Mc Guire < safety@osadl.o Overall approach Kernel DLC Process Assessment Estimating bugs Exposure & Coupling Handling severity

  19. -stable search for explanatory parameters Discussion of Bainstorm session in Bullendorf - what do we expect ? Statistical Methods for Complexity of commits expressed as files-mode, SIL2LinuxMP lines-added, lines-del should be useful Nicholas Mc Really old bugs should be small/simple so they can hide for Guire < safety@osadl.o a long time Most patches are short lived - > strongly right scewed Overall approach distribution - > old bugs should have been uncovered ”by now” Kernel DLC big changes should be the ones with most bugs Process Assessment (complexity) - > bug-commits should have ”bad-metrics” Estimating rank of committer - a naive measure of developers quality bugs should be a relevant factor (not yet implemented) - but I Exposure & Coupling think it is not. Handling tools issues could also play in here, e.g. relevant gcc severity changes Derive the data templates and fire up R and filter out what we need

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend