Linux / Arch / Ia64
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 261 files with 42,443 lines of code.
    • 10 very long files (13,147 lines of code)
    • 14 long files (9,517 lines of code)
    • 28 medium size files (9,281 lines of codeclsfd_ftr_w_mp_ins)
    • 39 small files (5,724 lines of code)
    • 170 very small files (4,774 lines of code)
30% | 22% | 21% | 13% | 11%
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
c32% | 26% | 27% | 9% | 3%
S46% | 18% | 19% | 9% | 6%
h12% | 18% | 12% | 26% | 30%
py0% | 0% | 0% | 0% | 100%
lds0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
kernel41% | 25% | 22% | 6% | 3%
hp88% | 0% | 0% | 11% | 0%
include13% | 19% | 10% | 27% | 29%
lib0% | 32% | 30% | 21% | 15%
mm0% | 0% | 66% | 25% | 8%
pci0% | 0% | 90% | 0% | 9%
uv0% | 0% | 0% | 0% | 100%
scripts0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
unwind.c
in kernel
1808 -
S
ivt.S
in kernel
1555 -
ptrace.c
in kernel
1439 14
S
entry.S
in kernel
1366 -
sba_iommu.c
in hp/common
1316 11
pal.h
in include/asm
1264 5
mca.c
in kernel
1257 9
S
head.S
in kernel
1076 -
efi.c
in kernel
1040 2
S
mca_asm.S
in kernel
1026 -
unaligned.c
in kernel
836 -
S
fsys.S
in kernel
817 -
iosapic.c
in kernel
793 8
setup.c
in kernel
750 8
palinfo.c
in kernel
732 19
module.c
in kernel
730 -
sal.h
in include/asm
685 -
uv_mmrs.h
in include/asm/uv
665 -
kprobes.c
in kernel
645 30
acpi.c
in kernel
615 26
608 -
585 -
smpboot.c
in kernel
540 9
gcc_intrin.h
in include/uapi/asm
516 1
processor.h
in include/asm
489 -
irq_ia64.c
in kernel
478 19
salinfo.c
in kernel
458 3
traps.c
in kernel
452 1
mca_drv.c
in kernel
436 2
tlb.c
in mm
427 8
process.c
in kernel
411 7
pci.c
in pci
387 20
S
gate.S
in kernel
361 -
359 17
S
memset.S
in lib
345 -
343 -
topology.c
in kernel
325 21
init.c
in mm
317 8
pgtable.h
in include/asm
313 1
sal.c
in kernel
312 1
S
do_csum.S
in lib
307 -
307 -
time.c
in kernel
293 13
S
pal.S
in kernel
285 -
S
memcpy.S
in lib
279 -
signal.c
in kernel
265 -
asm-offsets.c
in kernel
252 1
smp.c
in kernel
238 3
bitops.h
in include/asm
231 2
err_inject.c
in kernel
208 5
Files With Most Units (Top 50)
File# lines# units
kprobes.c
in kernel
645 30
acpi.c
in kernel
615 26
topology.c
in kernel
325 21
pci.c
in pci
387 20
uv_hub.h
in include/asm/uv
146 19
irq_ia64.c
in kernel
478 19
palinfo.c
in kernel
732 19
359 17
spinlock.h
in include/asm
197 14
ptrace.c
in kernel
1439 14
time.c
in kernel
293 13
io.h
in include/asm
180 12
sba_iommu.c
in hp/common
1316 11
aml_nfw.c
in hp/common
164 10
irqflags.h
in include/asm
64 9
mca.c
in kernel
1257 9
smpboot.c
in kernel
540 9
init.c
in mm
317 8
tlb.c
in mm
427 8
msi_ia64.c
in kernel
154 8
setup.c
in kernel
750 8
iosapic.c
in kernel
793 8
process.c
in kernel
411 7
uncached.c
in kernel
160 7
acpi.h
in include/asm
75 6
syscall.h
in include/asm
45 6
142 6
ftrace.c
in kernel
138 6
irq.c
in kernel
89 6
113 6
pal.h
in include/asm
1264 5
err_inject.c
in kernel
208 5
uv.h
in include/asm/uv
23 4
elfcore.c
in kernel
65 4
acpi-ext.c
in kernel
69 4
esi.c
in kernel
147 4
swab.h
in include/uapi/asm
23 3
ptrace.h
in include/asm
87 3
hw_irq.h
in include/asm
94 3
setup.c
in uv/kernel
92 3
io.c
in lib
31 3
numa.c
in mm
45 3
audit.c
in kernel
53 3
cyclone.c
in kernel
102 3
numa.c
in kernel
47 3
salinfo.c
in kernel
458 3
smp.c
in kernel
238 3
bitops.h
in include/asm
231 2
idle.h
in include/asm
5 2
hugetlb.h
in include/asm
25 2
Files With Long Lines (Top 1)

There is only one file with lines longer than 120 characters. In total, there are 13 long lines.

File# lines# units# long lines
70 - 13