Linux / Drivers / Md
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 166 files with 103,051 lines of code.
    • 30 very long files (69,320 lines of code)
    • 22 long files (15,579 lines of code)
    • 33 medium size files (11,342 lines of codeclsfd_ftr_w_mp_ins)
    • 29 small files (4,358 lines of code)
    • 52 very small files (2,452 lines of code)
67% | 15% | 11% | 4% | 2%
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
c71% | 15% | 9% | 3% | <1%
h0% | 8% | 35% | 22% | 33%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
ROOT75% | 9% | 9% | 3% | 1%
bcache32% | 36% | 17% | 10% | 2%
persistent-data19% | 45% | 18% | 6% | 8%
Longest Files (Top 50)
File# lines# units
md.c
in root
7627 172
raid5.c
in root
6756 128
3896 97
raid10.c
in root
3796 84
dm-thin.c
in root
3143 189
dm-crypt.c
in root
2643 116
dm-raid.c
in root
2598 85
raid1.c
in root
2431 67
2364 154
2321 78
2168 79
dm.c
in root
2108 128
2097 80
super.c
in bcache
2087 72
1960 53
dm-snap.c
in root
1933 90
btree.c
in bcache
1924 76
dm-mpath.c
in root
1636 57
dm-ioctl.c
in root
1562 59
1509 92
dm-table.c
in root
1492 87
dm-bufio.c
in root
1414 61
1407 75
1379 89
1362 78
1273 80
1208 53
dm-btree.c
in persistent-data
1146 61
1077 27
dm-raid1.c
in root
1003 45
990 36
dm-stats.c
in root
960 32
sysfs.c
in bcache
956 11
dm-space-map-common.c
in persistent-data
926 52
bset.c
in bcache
911 53
request.c
in bcache
873 45
816 32
723 28
683 38
writeback.c
in bcache
677 26
dm-array.c
in persistent-data
674 47
dm-log.c
in root
654 36
journal.c
in bcache
652 22
630 29
raid0.c
in root
617 12
592 28
583 23
dm-space-map-metadata.c
in persistent-data
581 48
525 21
bcache.h
in bcache
524 15
Files With Most Units (Top 50)
File# lines# units
dm-thin.c
in root
3143 189
md.c
in root
7627 172
2364 154
dm.c
in root
2108 128
raid5.c
in root
6756 128
dm-crypt.c
in root
2643 116
3896 97
1509 92
dm-snap.c
in root
1933 90
1379 89
dm-table.c
in root
1492 87
dm-raid.c
in root
2598 85
raid10.c
in root
3796 84
2097 80
1273 80
2168 79
1362 78
2321 78
btree.c
in bcache
1924 76
1407 75
super.c
in bcache
2087 72
raid1.c
in root
2431 67
dm-btree.c
in persistent-data
1146 61
dm-bufio.c
in root
1414 61
dm-ioctl.c
in root
1562 59
dm-mpath.c
in root
1636 57
bset.c
in bcache
911 53
1960 53
1208 53
dm-space-map-common.c
in persistent-data
926 52
dm-space-map-metadata.c
in persistent-data
581 48
dm-array.c
in persistent-data
674 47
request.c
in bcache
873 45
dm-raid1.c
in root
1003 45
683 38
990 36
dm-log.c
in root
654 36
dm-block-manager.c
in persistent-data
496 33
816 32
dm-stats.c
in root
960 32
dm-rq.c
in root
401 31
bset.h
in bcache
323 29
630 29
723 28
592 28
346 27
dm-transaction-manager.c
in persistent-data
371 27
1077 27
dm-io.c
in root
393 27
writeback.c
in bcache
677 26
Files With Long Lines (Top 4)

There are 4 files with lines longer than 120 characters. In total, there are 13 long lines.

File# lines# units# long lines
3896 97 8
super.c
in bcache
2087 72 3
2168 79 1
dm-table.c
in root
1492 87 1