Linux / Drivers / Block
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 100 files with 71,030 lines of code.
    • 24 very long files (50,442 lines of code)
    • 14 long files (10,440 lines of code)
    • 20 medium size files (6,179 lines of codeclsfd_ftr_w_mp_ins)
    • 19 small files (2,828 lines of code)
    • 23 very small files (1,141 lines of code)
71% | 14% | 8% | 3% | 1%
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
c73% | 15% | 7% | 2% | <1%
h37% | 0% | 25% | 23% | 14%
S0% | 0% | 0% | 100% | 0%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
ROOT82% | 11% | 4% | 1% | <1%
drbd86% | 7% | 2% | 2% | 1%
mtip32xx92% | 0% | 7% | 0% | 0%
null_blk69% | 21% | 0% | 5% | 2%
zram86% | 0% | 0% | 8% | 5%
aoe48% | 0% | 42% | 6% | 2%
rnbd40% | 37% | 0% | 15% | 6%
xen-blkback45% | 39% | 14% | 0% | 0%
paride0% | 42% | 38% | 14% | 4%
Longest Files (Top 50)
File# lines# units
rbd.c
in root
5377 251
4511 121
drbd_nl.c
in drbd
3881 101
floppy.c
in root
3746 138
mtip32xx.c
in mtip32xx
2865 94
2787 123
pktcdvd.c
in root
2184 89
nbd.c
in root
2053 69
1902 52
main.c
in null_blk
1745 77
1744 40
loop.c
in root
1663 65
zram_drv.c
in zram
1629 85
1574 62
ataflop.c
in root
1527 49
drbd_int.h
in drbd
1515 42
aoecmd.c
in aoe
1452 1
amiflop.c
in root
1441 54
rnbd-clt.c
in rnbd
1310 63
sx8.c
in root
1241 30
drbd_req.c
in drbd
1089 39
swim3.c
in root
1080 32
1075 64
blkback.c
in xen-blkback
1051 30
sunvdc.c
in root
949 36
xenbus.c
in xen-blkback
905 28
852 30
831 35
pf.c
in paride
762 42
pcd.c
in paride
757 41
pd.c
in paride
754 39
swim.c
in root
738 32
pt.c
in paride
733 28
725 46
rnbd-srv.c
in rnbd
684 20
ps3vram.c
in root
670 26
549 20
zoned.c
in null_blk
531 24
pg.c
in paride
489 21
ppc6lnx.c
in paride
456 15
ps3disk.c
in root
449 16
aoedev.c
in aoe
418 -
aoeblk.c
in aoe
395 8
paride.c
in paride
375 23
bpck.c
in paride
356 14
brd.c
in root
350 14
common.h
in xen-blkback
345 2
z2ram.c
in root
306 8
aoechr.c
in aoe
257 -
epat.c
in paride
239 10
Files With Most Units (Top 50)
File# lines# units
rbd.c
in root
5377 251
floppy.c
in root
3746 138
2787 123
4511 121
drbd_nl.c
in drbd
3881 101
mtip32xx.c
in mtip32xx
2865 94
pktcdvd.c
in root
2184 89
zram_drv.c
in zram
1629 85
main.c
in null_blk
1745 77
nbd.c
in root
2053 69
loop.c
in root
1663 65
1075 64
rnbd-clt.c
in rnbd
1310 63
1574 62
amiflop.c
in root
1441 54
1902 52
ataflop.c
in root
1527 49
725 46
pf.c
in paride
762 42
drbd_int.h
in drbd
1515 42
pcd.c
in paride
757 41
1744 40
pd.c
in paride
754 39
drbd_req.c
in drbd
1089 39
sunvdc.c
in root
949 36
831 35
swim.c
in root
738 32
swim3.c
in root
1080 32
sx8.c
in root
1241 30
blkback.c
in xen-blkback
1051 30
852 30
xenbus.c
in xen-blkback
905 28
pt.c
in paride
733 28
ps3vram.c
in root
670 26
zoned.c
in null_blk
531 24
paride.c
in paride
375 23
pg.c
in paride
489 21
549 20
rnbd-srv.c
in rnbd
684 20
ps3disk.c
in root
449 16
ppc6lnx.c
in paride
456 15
brd.c
in root
350 14
bpck.c
in paride
356 14
193 13
kbic.c
in paride
212 13
bpck6.c
in paride
198 13
frpw.c
in paride
210 12
friq.c
in paride
190 12
zcomp.c
in zram
156 11
epat.c
in paride
239 10
Files With Long Lines (Top 8)

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

File# lines# units# long lines
rnbd-srv.c
in rnbd
684 20 3
4511 121 3
main.c
in null_blk
1745 77 2
549 20 1
rnbd-clt.c
in rnbd
1310 63 1
2787 123 1
1075 64 1
drbd_req.c
in drbd
1089 39 1