Linux / 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 94 files with 40,262 lines of code.
    • 7 very long files (14,470 lines of code)
    • 18 long files (12,904 lines of code)
    • 29 medium size files (9,398 lines of codeclsfd_ftr_w_mp_ins)
    • 14 small files (2,039 lines of code)
    • 26 very small files (1,451 lines of code)
35% | 32% | 23% | 5% | 3%
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
c38% | 34% | 21% | 3% | 1%
h0% | 0% | 49% | 21% | 29%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
ROOT40% | 30% | 21% | 4% | 2%
partitions0% | 43% | 34% | 12% | 10%
Longest Files (Top 50)
File# lines# units
3152 120
blk-mq.c
in root
3143 174
2167 65
sed-opal.c
in root
2090 104
1686 80
1209 43
bio.c
in root
1023 53
genhd.c
in root
995 49
980 77
ldm.c
in partitions
925 29
blk-core.c
in root
806 54
794 30
bfq-wf2q.c
in root
755 43
753 31
746 33
736 37
722 49
715 46
bdev.c
in root
693 37
elevator.c
in root
574 29
blk-wbt.c
in root
565 51
core.c
in partitions
558 21
fops.c
in root
555 23
msdos.c
in partitions
517 14
ioctl.c
in root
515 27
467 12
457 36
blk-map.c
in root
446 14
434 18
efi.c
in partitions
427 8
426 1
411 25
404 21
blk.h
in root
371 39
368 11
acorn.c
in partitions
362 10
323 22
319 16
cmdline.c
in partitions
305 12
blk-ioc.c
in root
304 15
296 21
bsg-lib.c
in root
293 12
ibm.c
in partitions
289 7
287 14
blk-lib.c
in root
279 9
blk-mq.h
in root
263 18
258 15
255 17
254 -
228 19
Files With Most Units (Top 50)
File# lines# units
blk-mq.c
in root
3143 174
3152 120
sed-opal.c
in root
2090 104
1686 80
980 77
2167 65
blk-core.c
in root
806 54
bio.c
in root
1023 53
blk-wbt.c
in root
565 51
genhd.c
in root
995 49
722 49
715 46
bfq-wf2q.c
in root
755 43
1209 43
blk.h
in root
371 39
736 37
bdev.c
in root
693 37
457 36
746 33
753 31
794 30
ldm.c
in partitions
925 29
elevator.c
in root
574 29
ioctl.c
in root
515 27
411 25
fops.c
in root
555 23
323 22
296 21
core.c
in partitions
558 21
404 21
150 20
228 19
434 18
blk-mq.h
in root
263 18
206 17
255 17
t10-pi.c
in root
200 16
319 16
blk-ioc.c
in root
304 15
258 15
blk-map.c
in root
446 14
287 14
msdos.c
in partitions
517 14
80 14
blk-stat.c
in root
194 13
467 12
cmdline.c
in partitions
305 12
bsg-lib.c
in root
293 12
167 12
368 11
Files With Long Lines (Top 2)

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

File# lines# units# long lines
319 16 1
323 22 1