J E L L Y E N T
The AMD Radeon Graphics Driver Makes Up Roughly 10.5% of the Linux Kernel
The AMD Radeon Graphics Driver Makes Up Roughly 10.5% Of The Linux Kernel

LINUX KERNEL --

Given the impending delivery of Linux 5.9, I turned as rapidly as having some stress-free with cloc for the time being having a appreciate a gaze the most up-to-date traces of code depend for this come-final Linux 5.9 kernel insist.

As of for the time being in Linux 5.9 Git, the kernel is place of abode 20.49 million traces of code plus one other 3.58 million traces of code feedback and one other 3.72 million orderly traces. Or all in, Linux 5.9 is available in the market in at roughly 27.81 million traces dispensed amongst some fifty-9 thousand provide recordsdata.

   69964 textual shriek material recordsdata.
   69494 unparalleled recordsdata.                                          
   10737 recordsdata no longer authorized.

github.com/AlDanial/cloc v 1.82  T=95.88 s (618.0 recordsdata/s, 290045.7 traces/s)
------------------------------------------------------------------------------
Language                    recordsdata          orderly        commentary           code
------------------------------------------------------------------------------
C                           29198        2900014        2367000       14781314
C/C++ Header                21123         588426        1022774        4640918
reStructuredText             2685         135238          59051         369738
Meeting                     1275          45960          99012         225085
JSON                          287              0              0         165799
YAML                         1089          18494           4966          83627
Bourne Shell                  657          16823          11350          66043
worth                         2592           9808          10864          44192
SVG                            59            118           1365          37555
Perl                           60           6686           4767          34393
Python                        123           5345           4804          27720
yacc                            9            695            354           4755
PO File                         5            791            918           3077
lex                             9            349            304           2130
C++                            10            345            134           1993
Bourne Again Shell             52            338            297           1750
awk                            10            139            116           1051
Glade                           1             58              0            603
NAnt script                     2            143              0            549
Cucumber                        1             28             50            175
Space windows Module Definition       2             15              0            109
m4                              1             15              1             95
CSS                             1             28             29             80
XSLT                            5             13             26             61
vim script                      1              3             12             27
Ruby                            1              4              0             25
INI                             1              1              0              6
sed                             1              2              5              5
------------------------------------------------------------------------------
SUM:                        59260        3729879        3588199       20492875
------------------------------------------------------------------------------

(Hold in guidelines the kernel provide tree also has diversified devices, the assemble blueprint, and somewhat fairly of documentation and the rob care of that explains for among the wanted cloc recordsdata that might in any other case seem fairly uncommon.)

For a whereas now the AMDGPU kernel graphics driver has been spherical 2+ million traces of code making it the very simplest potentially in-tree kernel driver. With Linux 5.9, it is miles available in the market in at 2.16 million traces of code plus one other 247good gigantic traces of code feedback and one other 109good gigantic orderly traces… Or as principal as 2.51 million traces of code is the AMD DRM driver code collectively with AMDKFD, PowerPlay, DC, and the entire kernel code one tool or the opposite making up the AMD Radeon support on that driver (on the opposite hand no longer the older Radeon DRM driver — that older Radeon driver is at spherical 157good gigantic traces of code).

Though as reported beforehand, principal of the AMDGPU driver code low is so extensive on story of auto-generated header recordsdata for GPU registers, and heaps others. In right truth, 1.seventy 9 million traces as of Linux 5.9 for AMDGPU is merely header recordsdata that might presumably neatly also very effectively be predominantly auto-generated. It be 366good gigantic traces of the two.71 million traces of code that is staunch C code.

    1471 textual shriek material recordsdata.
    1470 unparalleled recordsdata.                                          
       5 recordsdata no longer authorized.

github.com/AlDanial/cloc v 1.82  T=6.85 s (214.1 recordsdata/s, 367938.0 traces/s)
---------------------------------------------------------------------
Language           recordsdata          orderly        commentary           code
---------------------------------------------------------------------
C/C++ Header         927          39761         195391        1794207
C                    501          68528          50377         366823
Meeting               3            557            408           1909
worth                  35            276            906            636
---------------------------------------------------------------------
SUM:                1466         109122         247082        2163575

For GPU driver dimension comparability, the Intel « i915 » kernel driver supporting invent feeble i915 graphics thru Gen12 / Xe Graphics with Linux 5.9 is at 209good gigantic traces of code with one other 39.2k traces of feedback and 48good gigantic orderly traces.

     529 textual shriek material recordsdata.
     528 unparalleled recordsdata.                                          
       6 recordsdata no longer authorized.

github.com/AlDanial/cloc v 1.82  T=0.72 s (728.7 recordsdata/s, 413015.9 traces/s)
----------------------------------------------------------------------
Language            recordsdata          orderly        commentary           code
----------------------------------------------------------------------
C                     281          42116          31405         180728
C/C++ Header          238           5920           7719          27974
worth                    2             23             29            260
Meeting                2             28             94            114
----------------------------------------------------------------------
SUM:                  523          48087          39247         209076
----------------------------------------------------------------------

Or in the case of the originate-provide NVIDIA « Nouveau » driver is correct 149good gigantic traces of code, 25.6k traces of feedback, and one other 19.9k orderly traces.

These are the most up-to-date numbers for these questioning referring to to the most up-to-date dimension of the AMDGPU kernel driver end to the entire dimension of the mainline Linux 5.9 kernel. Clearly appreciate into myth these metrics are merely for the kernel factor and no longer the particular person-house OpenGL/Vulkan and compute substances.

Within the cease, there are a entire bunch tall Linux 5.9 kernel substances to skills as rapidly as launched as generous in the coming hours.

About The Creator

Author image

Michael Larabel is the main writer of Phoronix.com and basically basically based the positioning in 2004 with a highlight on enriching the Linux hardware skills. Michael has written more than 20,000 articles conserving the insist of Linux hardware support, Linux performance, graphics drivers, and diversified points. Michael will most certainly be the lead developer of the Phoronix Take a glimpse at Suite, Phoromatic, and OpenBenchmarking.org computerized benchmarking blueprint. He can also presumably neatly furthermore be followed by ability of Twitter or contacted by ability of MichaelLarabel.com.

Read More

Related Post

5 Commentaires

Leave a Comment

Recent Posts

An oil tanker with 60M gallons of oil aboard is all thru the meantime sinking [video]
Amazon’s $23M book about flies (2011)
Google Coral Dev Board mini SBC is now on hand for $100
Glow: Markdown reader for the terminal with a TUI and encrypted cloud stash
The manner you would possibly well abolish your occupation, one entirely extremely contented one year at a time

Recent Posts

An oil tanker with 60M gallons of oil aboard is all thru the meantime sinking [video]
Amazon’s $23M book about flies (2011)
Google Coral Dev Board mini SBC is now on hand for $100
Glow: Markdown reader for the terminal with a TUI and encrypted cloud stash
The manner you would possibly well abolish your occupation, one entirely extremely contented one year at a time
fr_FRFrench
en_USEnglish fr_FRFrench