Linux / Arch / Sparc
File Size

The distribution of size of files (measured in lines of code).

Intro
  • File size measurements show the distribution of size of files.
  • Files are classified in four categories based on their size (lines of code): 1-100 (very small files), 101-200 (small files), 201-500 (medium size files), 501-1000 (long files), 1001+(very long files).
  • It is a good practice to keep files small. Long files may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
File Size Overall
  • There are 601 files with 98,142 lines of code.
    • 14 very long files (19,616 lines of code)
    • 34 long files (22,196 lines of code)
    • 98 medium size files (31,312 lines of codeclsfd_ftr_w_mp_ins)
    • 91 small files (12,676 lines of code)
    • 364 very small files (12,342 lines of code)
19% | 22% | 31% | 12% | 12%
Legend:
1001+
501-1000
201-500
101-200
1-100


explore: zoomable circles | sunburst | 3D view
File Size per Extension
1001+
501-1000
201-500
101-200
1-100
c30% | 24% | 34% | 7% | 3%
S13% | 24% | 38% | 11% | 11%
h0% | 14% | 15% | 30% | 39%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
kernel23% | 30% | 33% | 7% | 3%
mm54% | 0% | 42% | 1% | 1%
crypto32% | 11% | 31% | 15% | 8%
net59% | 27% | 0% | 8% | 3%
include0% | 16% | 16% | 28% | 39%
lib0% | 23% | 37% | 18% | 20%
prom0% | 0% | 57% | 0% | 42%
math-emu0% | 0% | 78% | 21% | 0%
vdso0% | 0% | 61% | 23% | 15%
boot0% | 0% | 0% | 100% | 0%
power0% | 0% | 0% | 82% | 17%
Longest Files (Top 50)
File# lines# units
2333 97
traps_64.c
in kernel
2228 84
ldc.c
in kernel
1821 74
S
aes_asm.S
in crypto
1459 -
perf_event.c
in kernel
1451 44
srmmu.c
in mm
1379 69
1311 35
smp_64.c
in kernel
1224 60
S
entry.S
in kernel
1160 -
pci_schizo.c
in kernel
1124 21
pci_sun4v.c
in kernel
1046 32
mdesc.c
in kernel
1033 49
S
ultra.S
in mm
1025 -
ds.c
in kernel
1022 32
ptrace_64.c
in kernel
914 27
S
869 -
S
hvcalls.S
in kernel
857 -
irq_64.c
in kernel
855 59
S
head_64.S
in kernel
846 -
pci.c
in kernel
841 34
pgtable_64.h
in include/asm
835 56
hypervisor.h
in include/asm
771 -
S
head_32.S
in kernel
689 -
chmc.c
in kernel
665 23
visemul.c
in kernel
663 14
time_64.c
in kernel
661 47
viohs.c
in kernel
653 36
641 34
633 20
S
623 -
btext.c
in kernel
619 11
S
xor.S
in lib
618 -
ttable.h
in include/asm
615 -
614 21
613 3
signal32.c
in kernel
586 10
iommu.c
in kernel
579 15
setup_64.c
in kernel
573 19
pcic.c
in kernel
568 24
floppy_64.h
in include/asm
561 32
543 -
sbus.c
in kernel
540 9
process_64.c
in kernel
535 24
535 8
S
530 -
S
cherrs.S
in kernel
523 -
S
tsb.S
in kernel
515 -
513 16
496 20
prom_64.c
in kernel
479 15
Files With Most Units (Top 50)
File# lines# units
2333 97
traps_64.c
in kernel
2228 84
ldc.c
in kernel
1821 74
srmmu.c
in mm
1379 69
smp_64.c
in kernel
1224 60
irq_64.c
in kernel
855 59
pgtable_64.h
in include/asm
835 56
mdesc.c
in kernel
1033 49
time_64.c
in kernel
661 47
io_64.h
in include/asm
353 45
perf_event.c
in kernel
1451 44
pgtable_32.h
in include/asm
304 36
viohs.c
in kernel
653 36
1311 35
pci.c
in kernel
841 34
641 34
floppy_64.h
in include/asm
561 32
pci_sun4v.c
in kernel
1046 32
ds.c
in kernel
1022 32
ptrace_64.c
in kernel
914 27
misc_64.c
in prom
331 26
des_glue.c
in crypto
402 24
spitfire.h
in include/asm
262 24
pcic.c
in kernel
568 24
process_64.c
in kernel
535 24
chmc.c
in kernel
665 23
leon_kernel.c
in kernel
384 22
pcr.c
in kernel
279 22
280 21
smp_32.c
in kernel
299 21
pci_schizo.c
in kernel
1124 21
614 21
633 20
496 20
kprobes.c
in kernel
289 20
setup_64.c
in kernel
573 19
time_32.c
in kernel
268 19
vio.c
in kernel
431 19
tree_64.c
in prom
274 18
438 18
leon_smp.c
in kernel
337 18
sun4d_irq.c
in kernel
375 18
tsb.c
in mm
453 17
223 17
sun4d_smp.c
in kernel
286 17
513 16
nmi.c
in kernel
224 16
floppy_32.h
in include/asm
296 15
323 15
pci_fire.c
in kernel
391 15
Files With Long Lines (Top 8)

There are 8 files with lines longer than 120 characters. In total, there are 12 long lines.

File# lines# units# long lines
ranges.c
in prom
88 5 2
traps_64.c
in kernel
2228 84 2
leon_smp.c
in kernel
337 18 2
535 8 2
math_64.c
in math-emu
423 2 1
175 10 1
pcic.c
in kernel
568 24 1
157 2 1