You are not logged in.
Pages: 1
This is now the third time it has happened. IIRC (and from what I could find from journal) first time I noticed it when trying to hibernate after updating to linux 5.2.3. It took a while to find out that physical_offset has changed. In the end I just shrugged, deleted the swapfile, created a new one, updated configuration files and moved on ignoring the underlying issue.
The second time was after updating to linux 5.2.4. Again I deleted and created a new swapfile, immediately regretting it.
Since it only happened when upgrading the kernel (as far as I noticed, admittedly I don't hibernate that often nor look at the swapfile's offset each boot), I suspected that maybe the full fsck that fsck.f2fs runs when detecting a newer kernel version is to blame. I tried downgrading the kernel to 5.2.3 and even 5.2.2 and upgrading again, but couldn't trigger the issue. So I logged the output of filefrag -v /swapfile from 5.2.4 and waited for the next time it happens.
Now I updated to 5.2.5 and immediately looked at filefrag -v /swapfile. The issue appeared again.
I have a slight fear that maybe it's because of some mistake on my part, but it was working fine for a half-year before...
# filefrag -v /swapfile # (on 5.2.4-arch1-1-ARCH)
Filesystem type is: f2f52010
File size of /swapfile is 17179869184 (4194304 blocks of 4096 bytes)
ext: logical_offset: physical_offset: length: expected: flags:
0: 0.. 1030978: 20719715.. 21750693: 1030979:
1: 1030979.. 3560436: 21750722.. 24280179: 2529458: 21750694:
2: 3560437.. 3585408: 24280180.. 24305151: 24972:
3: 3585409.. 3587456: 24307200.. 24309247: 2048: 24305152:
4: 3587457.. 3593600: 24310272.. 24316415: 6144: 24309248:
5: 3593601.. 3594112: 24316928.. 24317439: 512: 24316416:
6: 3594113.. 3596160: 24317952.. 24319999: 2048: 24317440:
7: 3596161.. 3600256: 24320512.. 24324607: 4096: 24320000:
8: 3600257.. 3602816: 24325120.. 24327679: 2560: 24324608:
9: 3602817.. 3607936: 24328704.. 24333823: 5120: 24327680:
10: 3607937.. 3608448: 24334848.. 24335359: 512: 24333824:
11: 3608449.. 3620519: 24335872.. 24347942: 12071: 24335360:
12: 3620520.. 3620597: 570290.. 570367: 78: 24347943:
13: 3620598.. 3620607: 562688.. 562697: 10: 570368:
14: 3620608.. 3632088: 24347943.. 24359423: 11481: 562698:
15: 3632089.. 3633693: 24359936.. 24361540: 1605: 24359424:
16: 3633694.. 3633919: 562698.. 562923: 226: 24361541:
17: 3633920.. 3635386: 24361541.. 24363007: 1467: 562924:
18: 3635387.. 3637946: 24363520.. 24366079: 2560: 24363008:
19: 3637947.. 3651839: 24366592.. 24380484: 13893: 24366080:
20: 3651840.. 3652095: 562924.. 563179: 256: 24380485:
21: 3652096.. 3652538: 24380485.. 24380927: 443: 563180:
22: 3652539.. 3658170: 24381440.. 24387071: 5632: 24380928:
23: 3658171.. 3660730: 24387584.. 24390143: 2560: 24387072:
24: 3660731.. 3663802: 24390656.. 24393727: 3072: 24390144:
25: 3663803.. 3668410: 24394752.. 24399359: 4608: 24393728:
26: 3668411.. 3673530: 24399872.. 24404991: 5120: 24399360:
27: 3673531.. 3682746: 24405504.. 24414719: 9216: 24404992:
28: 3682747.. 3683258: 24415232.. 24415743: 512: 24414720:
29: 3683259.. 3688191: 24416256.. 24421188: 4933: 24415744:
30: 3688192.. 3688203: 563180.. 563191: 12: 24421189:
31: 3688204.. 3688320: 24421189.. 24421305: 117: 563192:
32: 3688321.. 3688328: 563192.. 563199: 8: 24421306:
33: 3688329.. 3688447: 569344.. 569462: 119: 563200:
34: 3688448.. 3698245: 24421306.. 24431103: 9798: 569463:
35: 3698246.. 3705925: 24431616.. 24439295: 7680: 24431104:
36: 3705926.. 3709951: 24439808.. 24443833: 4026: 24439296:
37: 3709952.. 3710207: 569463.. 569718: 256: 24443834:
38: 3710208.. 3711301: 24443834.. 24444927: 1094: 569719:
39: 3711302.. 3712837: 24445440.. 24446975: 1536: 24444928:
40: 3712838.. 3715397: 24447488.. 24450047: 2560: 24446976:
41: 3715398.. 3716421: 24450560.. 24451583: 1024: 24450048:
42: 3716422.. 3725125: 24452608.. 24461311: 8704: 24451584:
43: 3725126.. 3730245: 24461824.. 24466943: 5120: 24461312:
44: 3730246.. 3733317: 24467456.. 24470527: 3072: 24466944:
45: 3733318.. 3735365: 24471040.. 24473087: 2048: 24470528:
46: 3735366.. 3744581: 24473600.. 24482815: 9216: 24473088:
47: 3744582.. 3746629: 24483328.. 24485375: 2048: 24482816:
48: 3746630.. 3749631: 24486912.. 24489913: 3002: 24485376:
49: 3749632.. 3749645: 569719.. 569732: 14: 24489914:
50: 3749646.. 3751547: 24489914.. 24491815: 1902: 569733:
51: 3751548.. 3751670: 569733.. 569855: 123: 24491816:
52: 3751671.. 3751679: 573440.. 573448: 9: 569856:
53: 3751680.. 3754455: 24491816.. 24494591: 2776: 573449:
54: 3754456.. 3757015: 24495104.. 24497663: 2560: 24494592:
55: 3757016.. 3759063: 24498176.. 24500223: 2048: 24497664:
56: 3759064.. 3761111: 24500736.. 24502783: 2048: 24500224:
57: 3761112.. 3765719: 24503296.. 24507903: 4608: 24502784:
58: 3765720.. 3779543: 24508416.. 24522239: 13824: 24507904:
59: 3779544.. 3784151: 24522752.. 24527359: 4608: 24522240:
60: 3784152.. 3784663: 24527872.. 24528383: 512: 24527360:
61: 3784664.. 3799511: 24529408.. 24544255: 14848: 24528384:
62: 3799512.. 3801047: 24560128.. 24561663: 1536: 24544256:
63: 3801048.. 3806165: 24563200.. 24568317: 5118: 24561664:
64: 3806166.. 3806207: 573449.. 573490: 42: 24568318:
65: 3806208.. 3818497: 24568318.. 24580607: 12290: 573491:
66: 3818498.. 3832833: 24587776.. 24602111: 14336: 24580608:
67: 3832834.. 3837951: 24603136.. 24608253: 5118: 24602112:
68: 3837952.. 3838207: 573491.. 573746: 256: 24608254:
69: 3838208.. 3846401: 24608254.. 24616447: 8194: 573747:
70: 3846402.. 3847937: 24617984.. 24619519: 1536: 24616448:
71: 3847938.. 3849473: 24621056.. 24622591: 1536: 24619520:
72: 3849474.. 3857058: 24623104.. 24630688: 7585: 24622592:
73: 3857059.. 3857151: 573747.. 573839: 93: 24630689:
74: 3857152.. 3861342: 24630689.. 24634879: 4191: 573840:
75: 3861343.. 3862366: 24635392.. 24636415: 1024: 24634880:
76: 3862367.. 3869022: 24636928.. 24643583: 6656: 24636416:
77: 3869023.. 3875166: 24644096.. 24650239: 6144: 24643584:
78: 3875167.. 3875678: 24651264.. 24651775: 512: 24650240:
79: 3875679.. 3887966: 24652288.. 24664575: 12288: 24651776:
80: 3887967.. 3889502: 24665088.. 24666623: 1536: 24664576:
81: 3889503.. 3893598: 24667136.. 24671231: 4096: 24666624:
82: 3893599.. 3896670: 24671744.. 24674815: 3072: 24671232:
83: 3896671.. 3900766: 24675328.. 24679423: 4096: 24674816:
84: 3900767.. 3901790: 24679936.. 24680959: 1024: 24679424:
85: 3901791.. 3927902: 24681984.. 24708095: 26112: 24680960:
86: 3927903.. 3929438: 24709120.. 24710655: 1536: 24708096:
87: 3929439.. 3930462: 24711168.. 24712191: 1024: 24710656:
88: 3930463.. 3934046: 24712704.. 24716287: 3584: 24712192:
89: 3934047.. 3937118: 24716800.. 24719871: 3072: 24716288:
90: 3937119.. 3940702: 24720384.. 24723967: 3584: 24719872:
91: 3940703.. 3955696: 24724480.. 24739473: 14994: 24723968:
92: 3955697.. 3955711: 573840.. 573854: 15: 24739474:
93: 3955712.. 4019565: 24739474.. 24803327: 63854: 573855:
94: 4019566.. 4024685: 24803840.. 24808959: 5120: 24803328:
95: 4024686.. 4031853: 24809472.. 24816639: 7168: 24808960:
96: 4031854.. 4042093: 24817664.. 24827903: 10240: 24816640:
97: 4042094.. 4043117: 24828416.. 24829439: 1024: 24827904:
98: 4043118.. 4070253: 24830464.. 24857599: 27136: 24829440:
99: 4070254.. 4076909: 24858624.. 24865279: 6656: 24857600:
100: 4076910.. 4099437: 24865792.. 24888319: 22528: 24865280:
101: 4099438.. 4106093: 24889856.. 24896511: 6656: 24888320:
102: 4106094.. 4107117: 24897536.. 24898559: 1024: 24896512:
103: 4107118.. 4125549: 24899072.. 24917503: 18432: 24898560:
104: 4125550.. 4127597: 24918016.. 24920063: 2048: 24917504:
105: 4127598.. 4129133: 24920576.. 24922111: 1536: 24920064:
106: 4129134.. 4136813: 24922624.. 24930303: 7680: 24922112:
107: 4136814.. 4139373: 24930816.. 24933375: 2560: 24930304:
108: 4139374.. 4141933: 24933888.. 24936447: 2560: 24933376:
109: 4141934.. 4151149: 24936960.. 24946175: 9216: 24936448:
110: 4151150.. 4166509: 24946688.. 24962047: 15360: 24946176:
111: 4166510.. 4194303: 24964608.. 24992401: 27794: 24962048: last,eof
/swapfile: 111 extents found
# filefrag -v /swapfile # (on 5.2.5-arch1-1-ARCH)
Filesystem type is: f2f52010
File size of /swapfile is 17179869184 (4194304 blocks of 4096 bytes)
ext: logical_offset: physical_offset: length: expected: flags:
0: 0.. 412: 9990079.. 9990491: 413:
1: 413.. 1030978: 20720128.. 21750693: 1030566: 9990492:
2: 1030979.. 3560436: 21750722.. 24280179: 2529458: 21750694:
3: 3560437.. 3585408: 24280180.. 24305151: 24972:
4: 3585409.. 3587456: 24307200.. 24309247: 2048: 24305152:
5: 3587457.. 3593600: 24310272.. 24316415: 6144: 24309248:
6: 3593601.. 3594112: 24316928.. 24317439: 512: 24316416:
7: 3594113.. 3596160: 24317952.. 24319999: 2048: 24317440:
8: 3596161.. 3600256: 24320512.. 24324607: 4096: 24320000:
9: 3600257.. 3602816: 24325120.. 24327679: 2560: 24324608:
10: 3602817.. 3607936: 24328704.. 24333823: 5120: 24327680:
11: 3607937.. 3608448: 24334848.. 24335359: 512: 24333824:
12: 3608449.. 3620519: 24335872.. 24347942: 12071: 24335360:
13: 3620520.. 3620597: 9479067.. 9479144: 78: 24347943:
14: 3620598.. 3620607: 562688.. 562697: 10: 9479145:
15: 3620608.. 3632088: 24347943.. 24359423: 11481: 562698:
16: 3632089.. 3633693: 24359936.. 24361540: 1605: 24359424:
17: 3633694.. 3633919: 562698.. 562923: 226: 24361541:
18: 3633920.. 3635386: 24361541.. 24363007: 1467: 562924:
19: 3635387.. 3637946: 24363520.. 24366079: 2560: 24363008:
20: 3637947.. 3651839: 24366592.. 24380484: 13893: 24366080:
21: 3651840.. 3652095: 562924.. 563179: 256: 24380485:
22: 3652096.. 3652538: 24380485.. 24380927: 443: 563180:
23: 3652539.. 3658170: 24381440.. 24387071: 5632: 24380928:
24: 3658171.. 3660730: 24387584.. 24390143: 2560: 24387072:
25: 3660731.. 3663802: 24390656.. 24393727: 3072: 24390144:
26: 3663803.. 3668410: 24394752.. 24399359: 4608: 24393728:
27: 3668411.. 3673530: 24399872.. 24404991: 5120: 24399360:
28: 3673531.. 3682746: 24405504.. 24414719: 9216: 24404992:
29: 3682747.. 3683258: 24415232.. 24415743: 512: 24414720:
30: 3683259.. 3688191: 24416256.. 24421188: 4933: 24415744:
31: 3688192.. 3688203: 563180.. 563191: 12: 24421189:
32: 3688204.. 3688320: 24421189.. 24421305: 117: 563192:
33: 3688321.. 3688328: 563192.. 563199: 8: 24421306:
34: 3688329.. 3688447: 569344.. 569462: 119: 563200:
35: 3688448.. 3698245: 24421306.. 24431103: 9798: 569463:
36: 3698246.. 3705925: 24431616.. 24439295: 7680: 24431104:
37: 3705926.. 3709951: 24439808.. 24443833: 4026: 24439296:
38: 3709952.. 3710207: 569463.. 569718: 256: 24443834:
39: 3710208.. 3711301: 24443834.. 24444927: 1094: 569719:
40: 3711302.. 3712837: 24445440.. 24446975: 1536: 24444928:
41: 3712838.. 3715397: 24447488.. 24450047: 2560: 24446976:
42: 3715398.. 3716421: 24450560.. 24451583: 1024: 24450048:
43: 3716422.. 3725125: 24452608.. 24461311: 8704: 24451584:
44: 3725126.. 3730245: 24461824.. 24466943: 5120: 24461312:
45: 3730246.. 3733317: 24467456.. 24470527: 3072: 24466944:
46: 3733318.. 3735365: 24471040.. 24473087: 2048: 24470528:
47: 3735366.. 3744581: 24473600.. 24482815: 9216: 24473088:
48: 3744582.. 3746629: 24483328.. 24485375: 2048: 24482816:
49: 3746630.. 3749631: 24486912.. 24489913: 3002: 24485376:
50: 3749632.. 3749645: 569719.. 569732: 14: 24489914:
51: 3749646.. 3751547: 24489914.. 24491815: 1902: 569733:
52: 3751548.. 3751670: 569733.. 569855: 123: 24491816:
53: 3751671.. 3751679: 573440.. 573448: 9: 569856:
54: 3751680.. 3754455: 24491816.. 24494591: 2776: 573449:
55: 3754456.. 3757015: 24495104.. 24497663: 2560: 24494592:
56: 3757016.. 3759063: 24498176.. 24500223: 2048: 24497664:
57: 3759064.. 3761111: 24500736.. 24502783: 2048: 24500224:
58: 3761112.. 3765719: 24503296.. 24507903: 4608: 24502784:
59: 3765720.. 3779543: 24508416.. 24522239: 13824: 24507904:
60: 3779544.. 3784151: 24522752.. 24527359: 4608: 24522240:
61: 3784152.. 3784663: 24527872.. 24528383: 512: 24527360:
62: 3784664.. 3799511: 24529408.. 24544255: 14848: 24528384:
63: 3799512.. 3801047: 24560128.. 24561663: 1536: 24544256:
64: 3801048.. 3806165: 24563200.. 24568317: 5118: 24561664:
65: 3806166.. 3806207: 573449.. 573490: 42: 24568318:
66: 3806208.. 3818497: 24568318.. 24580607: 12290: 573491:
67: 3818498.. 3832833: 24587776.. 24602111: 14336: 24580608:
68: 3832834.. 3837951: 24603136.. 24608253: 5118: 24602112:
69: 3837952.. 3838207: 573491.. 573746: 256: 24608254:
70: 3838208.. 3846401: 24608254.. 24616447: 8194: 573747:
71: 3846402.. 3847937: 24617984.. 24619519: 1536: 24616448:
72: 3847938.. 3849473: 24621056.. 24622591: 1536: 24619520:
73: 3849474.. 3857058: 24623104.. 24630688: 7585: 24622592:
74: 3857059.. 3857151: 573747.. 573839: 93: 24630689:
75: 3857152.. 3861342: 24630689.. 24634879: 4191: 573840:
76: 3861343.. 3862366: 24635392.. 24636415: 1024: 24634880:
77: 3862367.. 3869022: 24636928.. 24643583: 6656: 24636416:
78: 3869023.. 3875166: 24644096.. 24650239: 6144: 24643584:
79: 3875167.. 3875678: 24651264.. 24651775: 512: 24650240:
80: 3875679.. 3887966: 24652288.. 24664575: 12288: 24651776:
81: 3887967.. 3889502: 24665088.. 24666623: 1536: 24664576:
82: 3889503.. 3893598: 24667136.. 24671231: 4096: 24666624:
83: 3893599.. 3896670: 24671744.. 24674815: 3072: 24671232:
84: 3896671.. 3900766: 24675328.. 24679423: 4096: 24674816:
85: 3900767.. 3901790: 24679936.. 24680959: 1024: 24679424:
86: 3901791.. 3927902: 24681984.. 24708095: 26112: 24680960:
87: 3927903.. 3929438: 24709120.. 24710655: 1536: 24708096:
88: 3929439.. 3930462: 24711168.. 24712191: 1024: 24710656:
89: 3930463.. 3934046: 24712704.. 24716287: 3584: 24712192:
90: 3934047.. 3937118: 24716800.. 24719871: 3072: 24716288:
91: 3937119.. 3940702: 24720384.. 24723967: 3584: 24719872:
92: 3940703.. 3955696: 24724480.. 24739473: 14994: 24723968:
93: 3955697.. 3955711: 573840.. 573854: 15: 24739474:
94: 3955712.. 4019565: 24739474.. 24803327: 63854: 573855:
95: 4019566.. 4024685: 24803840.. 24808959: 5120: 24803328:
96: 4024686.. 4031853: 24809472.. 24816639: 7168: 24808960:
97: 4031854.. 4042093: 24817664.. 24827903: 10240: 24816640:
98: 4042094.. 4043117: 24828416.. 24829439: 1024: 24827904:
99: 4043118.. 4070253: 24830464.. 24857599: 27136: 24829440:
100: 4070254.. 4076909: 24858624.. 24865279: 6656: 24857600:
101: 4076910.. 4099437: 24865792.. 24888319: 22528: 24865280:
102: 4099438.. 4106093: 24889856.. 24896511: 6656: 24888320:
103: 4106094.. 4107117: 24897536.. 24898559: 1024: 24896512:
104: 4107118.. 4125549: 24899072.. 24917503: 18432: 24898560:
105: 4125550.. 4127597: 24918016.. 24920063: 2048: 24917504:
106: 4127598.. 4129133: 24920576.. 24922111: 1536: 24920064:
107: 4129134.. 4136813: 24922624.. 24930303: 7680: 24922112:
108: 4136814.. 4139373: 24930816.. 24933375: 2560: 24930304:
109: 4139374.. 4141933: 24933888.. 24936447: 2560: 24933376:
110: 4141934.. 4151149: 24936960.. 24946175: 9216: 24936448:
111: 4151150.. 4166509: 24946688.. 24962047: 15360: 24946176:
112: 4166510.. 4194157: 24964608.. 24992255: 27648: 24962048:
113: 4194158.. 4194303: 9490102.. 9490247: 146: 24992256: last,eof
/swapfile: 113 extents found
$ cat /etc/fstab
/dev/mapper/cryptroot / f2fs rw,relatime,lazytime,background_gc=on,discard,no_heap,inline_xattr,inline_data,inline_dentry,flush_merge,extent_cache,mode=adaptive,active_logs=6,alloc_mode=default,fsync_mode=posix 0 1
/swapfile none swap defaults,discard 0 0
PARTUUID=2ea22a41-744d-488c-a32a-bde36932fedc /boot vfat noauto,x-systemd.automount,x-systemd.idle-timeout=300,rw,relatime,fmask=0133,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,utf8,tz=UTC,errors=remount-ro,discard 0 2
/dev/mapper/crypthome /home xfs rw,relatime,attr2,inode64,noquota 0 2
$ cat /proc/cmdline
\\vmlinuz-linux root=/dev/mapper/cryptroot rw rootflags=discard resume=/dev/mapper/cryptroot resume_offset=20719715 add_efi_memmap apparmor=1 security=apparmor initrd=/intel-ucode.img initrd=/initramfs-linux.img quiet
# file /swapfile
/swapfile: Linux/i386 swap file (new style), version 1 (4K pages), size 4194303 pages, no label, UUID=3c466273-8e12-4d10-a1c1-c996d8ea694a
Last edited by nl6720 (2019-08-16 15:00:44)
Offline
Hmm... Try using a dynamically set swap file using systemd-swap. I use f2fs too and I haven't had problems with this setup, neither with or without disk encryption.
I break things and put them back together for fun and sometimes profit, because it is the only way to learn.
Offline
I'm surprised it ever worked... according to your output, it's not supposed to.
You only give a start offset to a fragmented file. How is it to figure out the fragments?
Isn't relocating blocks a feature of F2FS? There's a concept for "pinning" files in F2FS and support for swapfiles in F2FS is only coming in linux-5.3
edit: I might have misunderstood some of f2fs characteristics
Last edited by frostschutz (2019-08-08 18:10:28)
Offline
apologies, it's my mistake... it's fine for swap files to be fragmented, after all (the hibernation image contains that information, sweet)
Last edited by frostschutz (2019-08-08 18:26:12)
Offline
I managed to reproduce it once, filefrag output of a fully allocated, synced file changed after swapon --discard.
But it doesn't happen every time, and I'm not sure if discard is related to it at all.
Offline
F2FS should support swap files since https://git.kernel.org/pub/scm/linux/ke … 3dc0822406 .
I haven't experienced the issue since I stopped recreating the file and just changed resume_offset to 9990079.
# filefrag -v /swapfile # (on 5.2.6-arch1-1-ARCH)
Filesystem type is: f2f52010
File size of /swapfile is 17179869184 (4194304 blocks of 4096 bytes)
ext: logical_offset: physical_offset: length: expected: flags:
0: 0.. 412: 9990079.. 9990491: 413:
1: 413.. 1030978: 20720128.. 21750693: 1030566: 9990492:
2: 1030979.. 3560436: 21750722.. 24280179: 2529458: 21750694:
3: 3560437.. 3585408: 24280180.. 24305151: 24972:
4: 3585409.. 3587456: 24307200.. 24309247: 2048: 24305152:
5: 3587457.. 3593600: 24310272.. 24316415: 6144: 24309248:
6: 3593601.. 3594112: 24316928.. 24317439: 512: 24316416:
7: 3594113.. 3596160: 24317952.. 24319999: 2048: 24317440:
8: 3596161.. 3600256: 24320512.. 24324607: 4096: 24320000:
9: 3600257.. 3602816: 24325120.. 24327679: 2560: 24324608:
10: 3602817.. 3607936: 24328704.. 24333823: 5120: 24327680:
11: 3607937.. 3608448: 24334848.. 24335359: 512: 24333824:
12: 3608449.. 3620519: 24335872.. 24347942: 12071: 24335360:
13: 3620520.. 3620597: 9479067.. 9479144: 78: 24347943:
14: 3620598.. 3620607: 562688.. 562697: 10: 9479145:
15: 3620608.. 3632088: 24347943.. 24359423: 11481: 562698:
16: 3632089.. 3633693: 24359936.. 24361540: 1605: 24359424:
17: 3633694.. 3633919: 562698.. 562923: 226: 24361541:
18: 3633920.. 3635386: 24361541.. 24363007: 1467: 562924:
19: 3635387.. 3637946: 24363520.. 24366079: 2560: 24363008:
20: 3637947.. 3651839: 24366592.. 24380484: 13893: 24366080:
21: 3651840.. 3652095: 562924.. 563179: 256: 24380485:
22: 3652096.. 3652538: 24380485.. 24380927: 443: 563180:
23: 3652539.. 3658170: 24381440.. 24387071: 5632: 24380928:
24: 3658171.. 3660730: 24387584.. 24390143: 2560: 24387072:
25: 3660731.. 3663802: 24390656.. 24393727: 3072: 24390144:
26: 3663803.. 3668410: 24394752.. 24399359: 4608: 24393728:
27: 3668411.. 3673530: 24399872.. 24404991: 5120: 24399360:
28: 3673531.. 3682746: 24405504.. 24414719: 9216: 24404992:
29: 3682747.. 3683258: 24415232.. 24415743: 512: 24414720:
30: 3683259.. 3688191: 24416256.. 24421188: 4933: 24415744:
31: 3688192.. 3688203: 563180.. 563191: 12: 24421189:
32: 3688204.. 3688320: 24421189.. 24421305: 117: 563192:
33: 3688321.. 3688328: 563192.. 563199: 8: 24421306:
34: 3688329.. 3688447: 569344.. 569462: 119: 563200:
35: 3688448.. 3698245: 24421306.. 24431103: 9798: 569463:
36: 3698246.. 3705925: 24431616.. 24439295: 7680: 24431104:
37: 3705926.. 3709951: 24439808.. 24443833: 4026: 24439296:
38: 3709952.. 3710207: 569463.. 569718: 256: 24443834:
39: 3710208.. 3711301: 24443834.. 24444927: 1094: 569719:
40: 3711302.. 3712837: 24445440.. 24446975: 1536: 24444928:
41: 3712838.. 3715397: 24447488.. 24450047: 2560: 24446976:
42: 3715398.. 3716421: 24450560.. 24451583: 1024: 24450048:
43: 3716422.. 3725125: 24452608.. 24461311: 8704: 24451584:
44: 3725126.. 3730245: 24461824.. 24466943: 5120: 24461312:
45: 3730246.. 3733317: 24467456.. 24470527: 3072: 24466944:
46: 3733318.. 3735365: 24471040.. 24473087: 2048: 24470528:
47: 3735366.. 3744581: 24473600.. 24482815: 9216: 24473088:
48: 3744582.. 3746629: 24483328.. 24485375: 2048: 24482816:
49: 3746630.. 3749631: 24486912.. 24489913: 3002: 24485376:
50: 3749632.. 3749645: 569719.. 569732: 14: 24489914:
51: 3749646.. 3751547: 24489914.. 24491815: 1902: 569733:
52: 3751548.. 3751670: 569733.. 569855: 123: 24491816:
53: 3751671.. 3751679: 10207356.. 10207364: 9: 569856:
54: 3751680.. 3754455: 24491816.. 24494591: 2776: 10207365:
55: 3754456.. 3757015: 24495104.. 24497663: 2560: 24494592:
56: 3757016.. 3759063: 24498176.. 24500223: 2048: 24497664:
57: 3759064.. 3761111: 24500736.. 24502783: 2048: 24500224:
58: 3761112.. 3765719: 24503296.. 24507903: 4608: 24502784:
59: 3765720.. 3779543: 24508416.. 24522239: 13824: 24507904:
60: 3779544.. 3784151: 24522752.. 24527359: 4608: 24522240:
61: 3784152.. 3784663: 24527872.. 24528383: 512: 24527360:
62: 3784664.. 3799511: 24529408.. 24544255: 14848: 24528384:
63: 3799512.. 3801047: 24560128.. 24561663: 1536: 24544256:
64: 3801048.. 3806165: 24563200.. 24568317: 5118: 24561664:
65: 3806166.. 3806207: 10207365.. 10207406: 42: 24568318:
66: 3806208.. 3818497: 24568318.. 24580607: 12290: 10207407:
67: 3818498.. 3832833: 24587776.. 24602111: 14336: 24580608:
68: 3832834.. 3837951: 24603136.. 24608253: 5118: 24602112:
69: 3837952.. 3838207: 10207407.. 10207662: 256: 24608254:
70: 3838208.. 3846401: 24608254.. 24616447: 8194: 10207663:
71: 3846402.. 3847937: 24617984.. 24619519: 1536: 24616448:
72: 3847938.. 3849473: 24621056.. 24622591: 1536: 24619520:
73: 3849474.. 3857058: 24623104.. 24630688: 7585: 24622592:
74: 3857059.. 3857151: 10207663.. 10207755: 93: 24630689:
75: 3857152.. 3861342: 24630689.. 24634879: 4191: 10207756:
76: 3861343.. 3862366: 24635392.. 24636415: 1024: 24634880:
77: 3862367.. 3869022: 24636928.. 24643583: 6656: 24636416:
78: 3869023.. 3875166: 24644096.. 24650239: 6144: 24643584:
79: 3875167.. 3875678: 24651264.. 24651775: 512: 24650240:
80: 3875679.. 3887966: 24652288.. 24664575: 12288: 24651776:
81: 3887967.. 3889502: 24665088.. 24666623: 1536: 24664576:
82: 3889503.. 3893598: 24667136.. 24671231: 4096: 24666624:
83: 3893599.. 3896670: 24671744.. 24674815: 3072: 24671232:
84: 3896671.. 3900766: 24675328.. 24679423: 4096: 24674816:
85: 3900767.. 3901790: 24679936.. 24680959: 1024: 24679424:
86: 3901791.. 3927902: 24681984.. 24708095: 26112: 24680960:
87: 3927903.. 3929438: 24709120.. 24710655: 1536: 24708096:
88: 3929439.. 3930462: 24711168.. 24712191: 1024: 24710656:
89: 3930463.. 3934046: 24712704.. 24716287: 3584: 24712192:
90: 3934047.. 3937118: 24716800.. 24719871: 3072: 24716288:
91: 3937119.. 3940702: 24720384.. 24723967: 3584: 24719872:
92: 3940703.. 3955696: 24724480.. 24739473: 14994: 24723968:
93: 3955697.. 3955711: 10207756.. 10207770: 15: 24739474:
94: 3955712.. 4019565: 24739474.. 24803327: 63854: 10207771:
95: 4019566.. 4024685: 24803840.. 24808959: 5120: 24803328:
96: 4024686.. 4031853: 24809472.. 24816639: 7168: 24808960:
97: 4031854.. 4042093: 24817664.. 24827903: 10240: 24816640:
98: 4042094.. 4043117: 24828416.. 24829439: 1024: 24827904:
99: 4043118.. 4070253: 24830464.. 24857599: 27136: 24829440:
100: 4070254.. 4076909: 24858624.. 24865279: 6656: 24857600:
101: 4076910.. 4099437: 24865792.. 24888319: 22528: 24865280:
102: 4099438.. 4106093: 24889856.. 24896511: 6656: 24888320:
103: 4106094.. 4107117: 24897536.. 24898559: 1024: 24896512:
104: 4107118.. 4125549: 24899072.. 24917503: 18432: 24898560:
105: 4125550.. 4127597: 24918016.. 24920063: 2048: 24917504:
106: 4127598.. 4129133: 24920576.. 24922111: 1536: 24920064:
107: 4129134.. 4136813: 24922624.. 24930303: 7680: 24922112:
108: 4136814.. 4139373: 24930816.. 24933375: 2560: 24930304:
109: 4139374.. 4141933: 24933888.. 24936447: 2560: 24933376:
110: 4141934.. 4151149: 24936960.. 24946175: 9216: 24936448:
111: 4151150.. 4166509: 24946688.. 24962047: 15360: 24946176:
112: 4166510.. 4194157: 24964608.. 24992255: 27648: 24962048:
113: 4194158.. 4194303: 9490102.. 9490247: 146: 24992256: last,eof
/swapfile: 113 extents found
# filefrag -v /swapfile # (on 5.2.7-arch1-1-ARCH)
Filesystem type is: f2f52010
File size of /swapfile is 17179869184 (4194304 blocks of 4096 bytes)
ext: logical_offset: physical_offset: length: expected: flags:
0: 0.. 412: 9990079.. 9990491: 413:
1: 413.. 1030978: 20720128.. 21750693: 1030566: 9990492:
2: 1030979.. 3560436: 21750722.. 24280179: 2529458: 21750694:
3: 3560437.. 3585408: 24280180.. 24305151: 24972:
4: 3585409.. 3587456: 24307200.. 24309247: 2048: 24305152:
5: 3587457.. 3593600: 24310272.. 24316415: 6144: 24309248:
6: 3593601.. 3594112: 24316928.. 24317439: 512: 24316416:
7: 3594113.. 3596160: 24317952.. 24319999: 2048: 24317440:
8: 3596161.. 3600256: 24320512.. 24324607: 4096: 24320000:
9: 3600257.. 3602816: 24325120.. 24327679: 2560: 24324608:
10: 3602817.. 3607936: 24328704.. 24333823: 5120: 24327680:
11: 3607937.. 3608448: 24334848.. 24335359: 512: 24333824:
12: 3608449.. 3620519: 24335872.. 24347942: 12071: 24335360:
13: 3620520.. 3620597: 10322509.. 10322586: 78: 24347943:
14: 3620598.. 3620607: 562688.. 562697: 10: 10322587:
15: 3620608.. 3632088: 24347943.. 24359423: 11481: 562698:
16: 3632089.. 3633693: 24359936.. 24361540: 1605: 24359424:
17: 3633694.. 3633919: 562698.. 562923: 226: 24361541:
18: 3633920.. 3635386: 24361541.. 24363007: 1467: 562924:
19: 3635387.. 3637946: 24363520.. 24366079: 2560: 24363008:
20: 3637947.. 3651839: 24366592.. 24380484: 13893: 24366080:
21: 3651840.. 3652095: 562924.. 563179: 256: 24380485:
22: 3652096.. 3652538: 24380485.. 24380927: 443: 563180:
23: 3652539.. 3658170: 24381440.. 24387071: 5632: 24380928:
24: 3658171.. 3660730: 24387584.. 24390143: 2560: 24387072:
25: 3660731.. 3663802: 24390656.. 24393727: 3072: 24390144:
26: 3663803.. 3668410: 24394752.. 24399359: 4608: 24393728:
27: 3668411.. 3673530: 24399872.. 24404991: 5120: 24399360:
28: 3673531.. 3682746: 24405504.. 24414719: 9216: 24404992:
29: 3682747.. 3683258: 24415232.. 24415743: 512: 24414720:
30: 3683259.. 3688191: 24416256.. 24421188: 4933: 24415744:
31: 3688192.. 3688203: 563180.. 563191: 12: 24421189:
32: 3688204.. 3688320: 24421189.. 24421305: 117: 563192:
33: 3688321.. 3688328: 563192.. 563199: 8: 24421306:
34: 3688329.. 3688447: 569344.. 569462: 119: 563200:
35: 3688448.. 3698245: 24421306.. 24431103: 9798: 569463:
36: 3698246.. 3705925: 24431616.. 24439295: 7680: 24431104:
37: 3705926.. 3709951: 24439808.. 24443833: 4026: 24439296:
38: 3709952.. 3710207: 569463.. 569718: 256: 24443834:
39: 3710208.. 3711301: 24443834.. 24444927: 1094: 569719:
40: 3711302.. 3712837: 24445440.. 24446975: 1536: 24444928:
41: 3712838.. 3715397: 24447488.. 24450047: 2560: 24446976:
42: 3715398.. 3716421: 24450560.. 24451583: 1024: 24450048:
43: 3716422.. 3725125: 24452608.. 24461311: 8704: 24451584:
44: 3725126.. 3730245: 24461824.. 24466943: 5120: 24461312:
45: 3730246.. 3733317: 24467456.. 24470527: 3072: 24466944:
46: 3733318.. 3735365: 24471040.. 24473087: 2048: 24470528:
47: 3735366.. 3744581: 24473600.. 24482815: 9216: 24473088:
48: 3744582.. 3746629: 24483328.. 24485375: 2048: 24482816:
49: 3746630.. 3749631: 24486912.. 24489913: 3002: 24485376:
50: 3749632.. 3749645: 569719.. 569732: 14: 24489914:
51: 3749646.. 3751547: 24489914.. 24491815: 1902: 569733:
52: 3751548.. 3751670: 569733.. 569855: 123: 24491816:
53: 3751671.. 3751679: 10207356.. 10207364: 9: 569856:
54: 3751680.. 3754455: 24491816.. 24494591: 2776: 10207365:
55: 3754456.. 3757015: 24495104.. 24497663: 2560: 24494592:
56: 3757016.. 3759063: 24498176.. 24500223: 2048: 24497664:
57: 3759064.. 3761111: 24500736.. 24502783: 2048: 24500224:
58: 3761112.. 3765719: 24503296.. 24507903: 4608: 24502784:
59: 3765720.. 3779543: 24508416.. 24522239: 13824: 24507904:
60: 3779544.. 3784151: 24522752.. 24527359: 4608: 24522240:
61: 3784152.. 3784663: 24527872.. 24528383: 512: 24527360:
62: 3784664.. 3799511: 24529408.. 24544255: 14848: 24528384:
63: 3799512.. 3801047: 24560128.. 24561663: 1536: 24544256:
64: 3801048.. 3806165: 24563200.. 24568317: 5118: 24561664:
65: 3806166.. 3806207: 10207365.. 10207406: 42: 24568318:
66: 3806208.. 3818497: 24568318.. 24580607: 12290: 10207407:
67: 3818498.. 3832833: 24587776.. 24602111: 14336: 24580608:
68: 3832834.. 3837951: 24603136.. 24608253: 5118: 24602112:
69: 3837952.. 3838207: 10207407.. 10207662: 256: 24608254:
70: 3838208.. 3846401: 24608254.. 24616447: 8194: 10207663:
71: 3846402.. 3847937: 24617984.. 24619519: 1536: 24616448:
72: 3847938.. 3849473: 24621056.. 24622591: 1536: 24619520:
73: 3849474.. 3857058: 24623104.. 24630688: 7585: 24622592:
74: 3857059.. 3857151: 10207663.. 10207755: 93: 24630689:
75: 3857152.. 3861342: 24630689.. 24634879: 4191: 10207756:
76: 3861343.. 3862366: 24635392.. 24636415: 1024: 24634880:
77: 3862367.. 3869022: 24636928.. 24643583: 6656: 24636416:
78: 3869023.. 3875166: 24644096.. 24650239: 6144: 24643584:
79: 3875167.. 3875678: 24651264.. 24651775: 512: 24650240:
80: 3875679.. 3887966: 24652288.. 24664575: 12288: 24651776:
81: 3887967.. 3889502: 24665088.. 24666623: 1536: 24664576:
82: 3889503.. 3893598: 24667136.. 24671231: 4096: 24666624:
83: 3893599.. 3896670: 24671744.. 24674815: 3072: 24671232:
84: 3896671.. 3900766: 24675328.. 24679423: 4096: 24674816:
85: 3900767.. 3901790: 24679936.. 24680959: 1024: 24679424:
86: 3901791.. 3927902: 24681984.. 24708095: 26112: 24680960:
87: 3927903.. 3929438: 24709120.. 24710655: 1536: 24708096:
88: 3929439.. 3930462: 24711168.. 24712191: 1024: 24710656:
89: 3930463.. 3934046: 24712704.. 24716287: 3584: 24712192:
90: 3934047.. 3937118: 24716800.. 24719871: 3072: 24716288:
91: 3937119.. 3940702: 24720384.. 24723967: 3584: 24719872:
92: 3940703.. 3955696: 24724480.. 24739473: 14994: 24723968:
93: 3955697.. 3955711: 10207756.. 10207770: 15: 24739474:
94: 3955712.. 4019565: 24739474.. 24803327: 63854: 10207771:
95: 4019566.. 4024685: 24803840.. 24808959: 5120: 24803328:
96: 4024686.. 4031853: 24809472.. 24816639: 7168: 24808960:
97: 4031854.. 4042093: 24817664.. 24827903: 10240: 24816640:
98: 4042094.. 4043117: 24828416.. 24829439: 1024: 24827904:
99: 4043118.. 4070253: 24830464.. 24857599: 27136: 24829440:
100: 4070254.. 4076909: 24858624.. 24865279: 6656: 24857600:
101: 4076910.. 4099437: 24865792.. 24888319: 22528: 24865280:
102: 4099438.. 4106093: 24889856.. 24896511: 6656: 24888320:
103: 4106094.. 4107117: 24897536.. 24898559: 1024: 24896512:
104: 4107118.. 4125549: 24899072.. 24917503: 18432: 24898560:
105: 4125550.. 4127597: 24918016.. 24920063: 2048: 24917504:
106: 4127598.. 4129133: 24920576.. 24922111: 1536: 24920064:
107: 4129134.. 4136813: 24922624.. 24930303: 7680: 24922112:
108: 4136814.. 4139373: 24930816.. 24933375: 2560: 24930304:
109: 4139374.. 4141933: 24933888.. 24936447: 2560: 24933376:
110: 4141934.. 4151149: 24936960.. 24946175: 9216: 24936448:
111: 4151150.. 4166509: 24946688.. 24962047: 15360: 24946176:
112: 4166510.. 4194157: 24964608.. 24992255: 27648: 24962048:
113: 4194158.. 4194303: 10353491.. 10353636: 146: 24992256: last,eof
/swapfile: 113 extents found
Offline
F2FS should support swap files since https://git.kernel.org/pub/scm/linux/ke … 3dc0822406
Yeah, the one I was referring to was https://kernel.googlesource.com/pub/scm … fs-for-5.3
In this round, we've introduced native swap file support which can exploit DIO,
enhanced existing checkpoint=disable feature with additional mount option to
tune the triggering condition, and allowed user to preallocate physical blocks
in a pinned file which will be useful to avoid f2fs fragmentation in append-only
workloads. In addition, we've fixed subtle quota corruption issue.
And I might have misunderstood what a "pinned" file is in the f2fs context, sorry for the fuss.
Perhaps you could put this question to the f2fs mailing list for authoritative answer
Offline
I've heard about this, but I haven't seen any usage intructions for these features. Maybe there will be some after Linux 5.3 is released.
Offline
It suddenly happened again. I was about to update to 5.2.9.arch1-1, but decided to check filefrag before that.
# filefrag -v /swapfile
Filesystem type is: f2f52010
File size of /swapfile is 17179869184 (4194304 blocks of 4096 bytes)
ext: logical_offset: physical_offset: length: expected: flags:
0: 0.. 64: 11265524.. 11265588: 65:
1: 65.. 412: 9990144.. 9990491: 348: 11265589:
2: 413.. 1030556: 20720128.. 21750271: 1030144: 9990492:
3: 1030557.. 1031040: 10812690.. 10813173: 484: 21750272:
4: 1031041.. 3560436: 21750784.. 24280179: 2529396: 10813174:
5: 3560437.. 3585408: 24280180.. 24305151: 24972:
6: 3585409.. 3587456: 24307200.. 24309247: 2048: 24305152:
7: 3587457.. 3593600: 24310272.. 24316415: 6144: 24309248:
8: 3593601.. 3594112: 24316928.. 24317439: 512: 24316416:
9: 3594113.. 3596160: 24317952.. 24319999: 2048: 24317440:
10: 3596161.. 3600256: 24320512.. 24324607: 4096: 24320000:
11: 3600257.. 3602816: 24325120.. 24327679: 2560: 24324608:
12: 3602817.. 3607936: 24328704.. 24333823: 5120: 24327680:
13: 3607937.. 3608448: 24334848.. 24335359: 512: 24333824:
14: 3608449.. 3620519: 24335872.. 24347942: 12071: 24335360:
15: 3620520.. 3620597: 10322509.. 10322586: 78: 24347943:
16: 3620598.. 3620607: 562688.. 562697: 10: 10322587:
17: 3620608.. 3632088: 24347943.. 24359423: 11481: 562698:
18: 3632089.. 3633693: 24359936.. 24361540: 1605: 24359424:
19: 3633694.. 3633919: 562698.. 562923: 226: 24361541:
20: 3633920.. 3635386: 24361541.. 24363007: 1467: 562924:
21: 3635387.. 3637946: 24363520.. 24366079: 2560: 24363008:
22: 3637947.. 3651839: 24366592.. 24380484: 13893: 24366080:
23: 3651840.. 3652095: 562924.. 563179: 256: 24380485:
24: 3652096.. 3652538: 24380485.. 24380927: 443: 563180:
25: 3652539.. 3658170: 24381440.. 24387071: 5632: 24380928:
26: 3658171.. 3660730: 24387584.. 24390143: 2560: 24387072:
27: 3660731.. 3663802: 24390656.. 24393727: 3072: 24390144:
28: 3663803.. 3668410: 24394752.. 24399359: 4608: 24393728:
29: 3668411.. 3673530: 24399872.. 24404991: 5120: 24399360:
30: 3673531.. 3682746: 24405504.. 24414719: 9216: 24404992:
31: 3682747.. 3683258: 24415232.. 24415743: 512: 24414720:
32: 3683259.. 3688191: 24416256.. 24421188: 4933: 24415744:
33: 3688192.. 3688203: 563180.. 563191: 12: 24421189:
34: 3688204.. 3688320: 24421189.. 24421305: 117: 563192:
35: 3688321.. 3688328: 563192.. 563199: 8: 24421306:
36: 3688329.. 3688447: 569344.. 569462: 119: 563200:
37: 3688448.. 3698245: 24421306.. 24431103: 9798: 569463:
38: 3698246.. 3705925: 24431616.. 24439295: 7680: 24431104:
39: 3705926.. 3709951: 24439808.. 24443833: 4026: 24439296:
40: 3709952.. 3710207: 569463.. 569718: 256: 24443834:
41: 3710208.. 3711301: 24443834.. 24444927: 1094: 569719:
42: 3711302.. 3712837: 24445440.. 24446975: 1536: 24444928:
43: 3712838.. 3715397: 24447488.. 24450047: 2560: 24446976:
44: 3715398.. 3716421: 24450560.. 24451583: 1024: 24450048:
45: 3716422.. 3725125: 24452608.. 24461311: 8704: 24451584:
46: 3725126.. 3730245: 24461824.. 24466943: 5120: 24461312:
47: 3730246.. 3733317: 24467456.. 24470527: 3072: 24466944:
48: 3733318.. 3735365: 24471040.. 24473087: 2048: 24470528:
49: 3735366.. 3744581: 24473600.. 24482815: 9216: 24473088:
50: 3744582.. 3746629: 24483328.. 24485375: 2048: 24482816:
51: 3746630.. 3749631: 24486912.. 24489913: 3002: 24485376:
52: 3749632.. 3749645: 569719.. 569732: 14: 24489914:
53: 3749646.. 3751547: 24489914.. 24491815: 1902: 569733:
54: 3751548.. 3751670: 569733.. 569855: 123: 24491816:
55: 3751671.. 3751679: 10207356.. 10207364: 9: 569856:
56: 3751680.. 3754455: 24491816.. 24494591: 2776: 10207365:
57: 3754456.. 3757015: 24495104.. 24497663: 2560: 24494592:
58: 3757016.. 3759063: 24498176.. 24500223: 2048: 24497664:
59: 3759064.. 3761111: 24500736.. 24502783: 2048: 24500224:
60: 3761112.. 3765719: 24503296.. 24507903: 4608: 24502784:
61: 3765720.. 3779543: 24508416.. 24522239: 13824: 24507904:
62: 3779544.. 3784151: 24522752.. 24527359: 4608: 24522240:
63: 3784152.. 3784663: 24527872.. 24528383: 512: 24527360:
64: 3784664.. 3799511: 24529408.. 24544255: 14848: 24528384:
65: 3799512.. 3801047: 24560128.. 24561663: 1536: 24544256:
66: 3801048.. 3806165: 24563200.. 24568317: 5118: 24561664:
67: 3806166.. 3806207: 10207365.. 10207406: 42: 24568318:
68: 3806208.. 3818497: 24568318.. 24580607: 12290: 10207407:
69: 3818498.. 3832833: 24587776.. 24602111: 14336: 24580608:
70: 3832834.. 3837951: 24603136.. 24608253: 5118: 24602112:
71: 3837952.. 3838207: 10207407.. 10207662: 256: 24608254:
72: 3838208.. 3846401: 24608254.. 24616447: 8194: 10207663:
73: 3846402.. 3847937: 24617984.. 24619519: 1536: 24616448:
74: 3847938.. 3849473: 24621056.. 24622591: 1536: 24619520:
75: 3849474.. 3857058: 24623104.. 24630688: 7585: 24622592:
76: 3857059.. 3857151: 10207663.. 10207755: 93: 24630689:
77: 3857152.. 3861342: 24630689.. 24634879: 4191: 10207756:
78: 3861343.. 3862366: 24635392.. 24636415: 1024: 24634880:
79: 3862367.. 3869022: 24636928.. 24643583: 6656: 24636416:
80: 3869023.. 3875166: 24644096.. 24650239: 6144: 24643584:
81: 3875167.. 3875678: 24651264.. 24651775: 512: 24650240:
82: 3875679.. 3887966: 24652288.. 24664575: 12288: 24651776:
83: 3887967.. 3889502: 24665088.. 24666623: 1536: 24664576:
84: 3889503.. 3893598: 24667136.. 24671231: 4096: 24666624:
85: 3893599.. 3896670: 24671744.. 24674815: 3072: 24671232:
86: 3896671.. 3900766: 24675328.. 24679423: 4096: 24674816:
87: 3900767.. 3901790: 24679936.. 24680959: 1024: 24679424:
88: 3901791.. 3927902: 24681984.. 24708095: 26112: 24680960:
89: 3927903.. 3929438: 24709120.. 24710655: 1536: 24708096:
90: 3929439.. 3930462: 24711168.. 24712191: 1024: 24710656:
91: 3930463.. 3934046: 24712704.. 24716287: 3584: 24712192:
92: 3934047.. 3937118: 24716800.. 24719871: 3072: 24716288:
93: 3937119.. 3940702: 24720384.. 24723967: 3584: 24719872:
94: 3940703.. 3955696: 24724480.. 24739473: 14994: 24723968:
95: 3955697.. 3955711: 10207756.. 10207770: 15: 24739474:
96: 3955712.. 4019565: 24739474.. 24803327: 63854: 10207771:
97: 4019566.. 4024685: 24803840.. 24808959: 5120: 24803328:
98: 4024686.. 4031853: 24809472.. 24816639: 7168: 24808960:
99: 4031854.. 4042093: 24817664.. 24827903: 10240: 24816640:
100: 4042094.. 4043117: 24828416.. 24829439: 1024: 24827904:
101: 4043118.. 4070253: 24830464.. 24857599: 27136: 24829440:
102: 4070254.. 4076909: 24858624.. 24865279: 6656: 24857600:
103: 4076910.. 4099437: 24865792.. 24888319: 22528: 24865280:
104: 4099438.. 4106093: 24889856.. 24896511: 6656: 24888320:
105: 4106094.. 4107117: 24897536.. 24898559: 1024: 24896512:
106: 4107118.. 4125549: 24899072.. 24917503: 18432: 24898560:
107: 4125550.. 4127597: 24918016.. 24920063: 2048: 24917504:
108: 4127598.. 4129133: 24920576.. 24922111: 1536: 24920064:
109: 4129134.. 4136813: 24922624.. 24930303: 7680: 24922112:
110: 4136814.. 4139373: 24930816.. 24933375: 2560: 24930304:
111: 4139374.. 4141933: 24933888.. 24936447: 2560: 24933376:
112: 4141934.. 4151149: 24936960.. 24946175: 9216: 24936448:
113: 4151150.. 4166509: 24946688.. 24962047: 15360: 24946176:
114: 4166510.. 4194157: 24964608.. 24992255: 27648: 24962048:
115: 4194158.. 4194303: 10353491.. 10353636: 146: 24992256: last,eof
/swapfile: 115 extents found
I guess I'm waiting for Linux 5.3. Reading https://lore.kernel.org/patchwork/patch/1028904/ , It looks like pinning will use the No_COW attribute, so chattr +C /swapfile (just like for Btrfs) should work.
Offline
Pages: 1