Linux / Fs
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 1,918 files with 1,044,663 lines of code.
    • 271 very long files (604,778 lines of code)
    • 311 long files (216,416 lines of code)
    • 492 medium size files (159,060 lines of codeclsfd_ftr_w_mp_ins)
    • 267 small files (38,047 lines of code)
    • 577 very small files (26,362 lines of code)
57% | 20% | 15% | 3% | 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
c60% | 20% | 14% | 2% | 1%
h30% | 20% | 18% | 16% | 14%
asn10% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
btrfs82% | 7% | 7% | 1% | 1%
ocfs269% | 15% | 9% | 2% | 2%
xfs43% | 30% | 15% | 6% | 3%
nls72% | 5% | 21% | <1% | <1%
ROOT67% | 16% | 12% | 2% | <1%
cifs69% | 22% | 5% | 1% | 1%
nfs63% | 23% | 9% | 2% | 1%
ext479% | 5% | 11% | 1% | 1%
f2fs79% | 15% | 2% | <1% | 1%
nfsd64% | 19% | 10% | 1% | 3%
ceph75% | 7% | 13% | 1% | 1%
reiserfs73% | 16% | 4% | 4% | 1%
ntfs368% | 18% | 9% | <1% | 1%
gfs263% | 21% | 10% | 2% | 2%
ksmbd57% | 16% | 17% | 4% | 4%
ubifs55% | 27% | 12% | 3% | <1%
ntfs71% | 14% | 4% | 2% | 6%
jfs60% | 18% | 7% | 6% | 7%
fuse71% | 13% | 14% | 0% | <1%
dlm49% | 33% | 11% | 3% | 2%
proc57% | 19% | 12% | 5% | 5%
afs32% | 31% | 25% | 8% | 1%
nilfs231% | 40% | 19% | 6% | 2%
udf57% | 13% | 19% | 8% | 1%
ecryptfs46% | 28% | 18% | 4% | 1%
jbd260% | 23% | 15% | 0% | 0%
fat42% | 32% | 24% | 0% | 0%
overlayfs32% | 60% | 5% | 1% | 0%
unicode78% | 0% | 14% | 5% | 1%
ext236% | 40% | 15% | 3% | 3%
quota48% | 32% | 12% | 0% | 5%
jffs215% | 52% | 21% | 6% | 3%
hfsplus22% | 37% | 35% | 1% | 2%
zonefs87% | 0% | 0% | 0% | 12%
ufs21% | 51% | 21% | 4% | 1%
isofs41% | 22% | 16% | 13% | 5%
configfs52% | 0% | 15% | 31% | 0%
notify26% | 40% | 21% | 7% | 4%
hugetlbfs100% | 0% | 0% | 0% | 0%
erofs18% | 30% | 34% | 13% | 3%
pstore28% | 34% | 29% | 4% | 3%
exfat18% | 40% | 36% | 4% | 0%
iomap51% | 0% | 22% | 14% | 11%
kernfs41% | 25% | 24% | 4% | 3%
9p22% | 40% | 21% | 9% | 6%
orangefs0% | 40% | 49% | 5% | 4%
lockd0% | 51% | 41% | 2% | 4%
hpfs0% | 50% | 44% | 3% | 2%
crypto0% | 49% | 43% | 6% | 0%
affs0% | 40% | 50% | 6% | 1%
debugfs0% | 98% | 0% | 0% | 1%
autofs0% | 46% | 43% | 7% | 2%
hostfs0% | 66% | 27% | 0% | 5%
fscache0% | 39% | 41% | 9% | 8%
netfs0% | 87% | 0% | 0% | 12%
befs0% | 34% | 33% | 16% | 16%
cramfs0% | 93% | 0% | 0% | 6%
smbfs_common0% | 68% | 0% | 24% | 7%
coda0% | 25% | 48% | 10% | 15%
cachefiles0% | 21% | 66% | 3% | 9%
minix0% | 29% | 56% | 6% | 7%
hfs0% | 12% | 69% | 14% | 3%
qnx60% | 54% | 21% | 20% | 2%
vboxsf0% | 0% | 94% | 5% | 0%
squashfs0% | 0% | 47% | 25% | 27%
sysv0% | 0% | 74% | 24% | 1%
adfs0% | 0% | 86% | 8% | 4%
omfs0% | 0% | 80% | 10% | 8%
sysfs0% | 0% | 74% | 9% | 16%
bfs0% | 0% | 79% | 16% | 4%
romfs0% | 0% | 89% | 0% | 10%
verity0% | 0% | 41% | 45% | 12%
efs0% | 0% | 60% | 0% | 39%
devpts0% | 0% | 100% | 0% | 0%
freevxfs0% | 0% | 29% | 51% | 18%
tracefs0% | 0% | 100% | 0% | 0%
openpromfs0% | 0% | 100% | 0% | 0%
exportfs0% | 0% | 100% | 0% | 0%
qnx40% | 0% | 60% | 0% | 39%
nfs_common0% | 0% | 68% | 0% | 31%
ramfs0% | 0% | 52% | 40% | 6%
efivarfs0% | 0% | 0% | 77% | 22%
Longest Files (Top 50)
File# lines# units
13383 4
10631 4
9088 4
io_uring.c
in root
8614 381
8536 304
7626 4
inode.c
in btrfs
7410 163
smb2pdu.c
in ksmbd
6906 145
nfs4xdr.c
in nfs
6373 307
6073 155
volumes.c
in btrfs
5950 152
super.c
in ext4
5611 152
send.c
in btrfs
5540 150
xattr.c
in ocfs2
5424 169
alloc.c
in ocfs2
5194 158
cifssmb.c
in cifs
5057 9
extent_io.c
in btrfs
4986 146
smb2ops.c
in cifs
4774 19
tree-log.c
in btrfs
4557 85
xfs_bmap.c
in xfs/libxfs
4460 2
4456 96
mballoc.c
in ext4
4427 105
lock.c
in dlm
4409 203
nfs4xdr.c
in nfsd
4401 26
smb2pdu.c
in cifs
4310 21
segment.c
in f2fs
4214 170
extents.c
in ext4
4189 77
4017 119
inode.c
in ext4
3997 114
super.c
in f2fs
3892 86
3870 -
ioctl.c
in btrfs
3870 88
disk-io.c
in btrfs
3866 117
file.c
in f2fs
3758 115
file.c
in cifs
3747 44
fslog.c
in ntfs3
3675 53
3625 88
f2fs.h
in f2fs
3531 185
caps.c
in ceph
3497 91
namei.c
in root
3415 99
xfs_btree.c
in xfs/libxfs
3346 2
ctree.c
in btrfs
3333 70
connect.c
in cifs
3287 38
namei.c
in ext4
3270 72
relocation.c
in btrfs
3256 70
3217 131
scrub.c
in btrfs
3182 87
data.c
in f2fs
3175 93
dir.c
in ocfs2
3140 93
journal.c
in reiserfs
3119 89
Files With Most Units (Top 50)
File# lines# units
io_uring.c
in root
8614 381
nfs4xdr.c
in nfs
6373 307
8536 304
lock.c
in dlm
4409 203
f2fs.h
in f2fs
3531 185
segment.c
in f2fs
4214 170
xattr.c
in ocfs2
5424 169
inode.c
in btrfs
7410 163
alloc.c
in ocfs2
5194 158
6073 155
volumes.c
in btrfs
5950 152
super.c
in ext4
5611 152
send.c
in btrfs
5540 150
dlmglue.c
in ocfs2
3006 148
extent_io.c
in btrfs
4986 146
smb2pdu.c
in ksmbd
6906 145
3217 131
4017 119
disk-io.c
in btrfs
3866 117
file.c
in f2fs
3758 115
inode.c
in ext4
3997 114
base.c
in proc
2968 107
mballoc.c
in ext4
4427 105
ctree.h
in btrfs
2689 100
namei.c
in root
3415 99
file.c
in fuse
2378 98
4456 96
glock.c
in gfs2
1870 95
data.c
in f2fs
3175 93
dir.c
in ocfs2
3140 93
2104 92
caps.c
in ceph
3497 91
journal.c
in reiserfs
3119 89
segment.c
in nilfs2
2122 89
3096 88
ioctl.c
in btrfs
3870 88
dir.c
in nfs
2289 88
3625 88
scrub.c
in btrfs
3182 87
buffer.c
in root
2165 86
super.c
in f2fs
3892 86
dquot.c
in quota
2207 86
tree-log.c
in btrfs
4557 85
nfs3xdr.c
in nfs
1508 85
journal.c
in jbd2
1992 85
dcache.c
in root
2032 85
qgroup.c
in btrfs
3065 83
inode.c
in nfs
1802 82
node.c
in f2fs
2681 81
sysfs.c
in btrfs
1564 79
Files With Long Lines (Top 50)

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

File# lines# units# long lines
debug.c
in jffs2
713 1 15
nfs4xdr.c
in nfs
6373 307 8
super.c
in hpfs
663 23 7
ea.c
in hpfs
315 4 7
smb2ops.c
in cifs
4774 19 6
1834 41 5
nodemgmt.c
in jffs2
605 10 5
2420 43 4
namei.c
in hpfs
568 9 4
connect.c
in cifs
3287 38 4
readinode.c
in jffs2
989 18 4
alloc.c
in hpfs
514 16 3
hpfs_fn.h
in hpfs
271 13 3
map.c
in hpfs
289 3 3
nfs4xdr.c
in nfsd
4401 26 3
6073 155 3
8536 304 3
reiserfs.h
in reiserfs
1905 50 3
1402 12 3
super.c
in overlayfs
1643 46 3
3625 88 3
3870 - 2
1451 54 2
scrub.c
in btrfs
3182 87 2
dnode.c
in hpfs
988 18 2
anode.c
in hpfs
462 9 2
dir.c
in hpfs
245 3 2
nfs4proc.c
in nfsd
2757 63 2
pnfs.h
in nfs
736 21 2
locks.c
in root
1847 72 2
lbalance.c
in reiserfs
903 16 2
cifsglob.h
in cifs
1403 18 2
1155 43 2
cifssmb.c
in cifs
5057 9 2
file.c
in cifs
3747 44 2
misc.c
in cifs
969 13 2
clntproc.c
in lockd
635 22 2
1672 52 2
scan.c
in jffs2
920 14 2
write.c
in jffs2
530 5 2
gc.c
in jffs2
1018 9 2
suballoc.c
in ocfs2
2175 70 2
alloc.c
in ocfs2
5194 158 2
trace.h
in xfs/scrub
863 - 1
inode.c
in proc
572 27 1
send.c
in btrfs
5540 150 1
root-tree.c
in btrfs
389 13 1
raid56.c
in btrfs
1588 59 1
volumes.c
in btrfs
5950 152 1
585 17 1