mkfs.f2fs: add "zip" to cold data types
PATCH 1/2 mkfs.f2fs: add "zip" to cold data types
A lot of Linux users have big, cold "zip" files.
--- mkfs/f2fs_format.c | 1 + 1 file changed, 1 insertion(+)
mkfs/f2fs_format.c +1 -0
@@ -66,6 +66,7 @@ const char *media_ext_lists[] = {"webp" ,/* archives */ +"zip" ,"jar" ,"deb" , "iso",
Signature · 8 lines
2.22.0 _______________________________________________ Linux-f2fs-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
PATCH 2/2 mkfs.f2fs: add VM disk files to hot data types
Similar to .db files, these are randomly updated extremely frequently.
--- mkfs/f2fs_format.c | 5 +++++ 1 file changed, 5 insertions(+)
mkfs/f2fs_format.c +5 -0
@@ -94,6 +94,11 @@ const char *media_ext_lists[] = {const char *hot_ext_lists[] = {"db" , + +/* Virtual machines */ +"vmdk" ,// VMware or VirtualBox +"vdi" ,// VirtualBox +"qcow2" ,// QEMU NULL };
Signature · 8 lines
2.22.0 _______________________________________________ Linux-f2fs-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
Re: [f2fs-dev] [PATCH 2/2] mkfs.f2fs: add VM disk files to hot data types
Quoted 1 line · Park Ju Hyung
Similar to .db files, these are randomly updated extremely frequently.
It looks android doesn't need this, how about adding them under "#ifndef WITH_ANDROID"?
Thanks,
Quoted 13 lines
Signed-off-by Park Ju Hyung <[email protected]>--- mkfs/f2fs_format.c | 5 +++++ 1 file changed, 5 insertions(+)mkfs/f2fs_format.c +0
-0@@ -94,6 +94,11 @@ const char *media_ext_lists[] = {
mkfs/f2fs_format.c const char *media_ext_lists[] = { · line 104
Quoted 10 lines
mkfs/f2fs_format.c +5
-0const char *hot_ext_lists[] = {"db" , + +/* Virtual machines */ +"vmdk" ,// VMware or VirtualBox +"vdi" ,// VirtualBox +"qcow2" ,// QEMU NULL };
_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
Re: [f2fs-dev] [PATCH 2/2] mkfs.f2fs: add VM disk files to hot data types
Hi Chao,
You're right and Android will never use those types.
But then again, what's the point of separating the list? I haven't encountered an Android user or an OEM that wants to customize this list by passing an argument to mkfs.f2fs.
If an OEM want to customize this list, directly modifying the code for mkfs.f2fs sounds better anyways.
Thanks.
Quoted 21 lines · Chao Yu
Quoted 1 line · Park Ju Hyung
Similar to .db files, these are randomly updated extremely frequently.
It looks android doesn't need this, how about adding them under "#ifndef
WITH_ANDROID"?Thanks,
Quoted 12 lines
Signed-off-by Park Ju Hyung <[email protected]>--- mkfs/f2fs_format.c | 5 +++++ 1 file changed, 5 insertions(+)mkfs/f2fs_format.c +0
-0@@ -94,6 +94,11 @@ const char *media_ext_lists[] = {
Quoted 11 lines
mkfs/f2fs_format.c const char *media_ext_lists[] = { · line 104
Quoted 11 lines
mkfs/f2fs_format.c +5
-0const char *hot_ext_lists[] = {"db" , + +/* Virtual machines */ +"vmdk" ,// VMware or VirtualBox +"vdi" ,// VirtualBox +"qcow2" ,// QEMU NULL };
_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
Re: [f2fs-dev] [PATCH 2/2] mkfs.f2fs: add VM disk files to hot data types
Hi Ju Hyung,
Quoted 5 lines · Ju Hyung Park
Hi Chao,
You're right and Android will never use those types.
But then again, what's the point of separating the list?
I'm just thinking to use extension list space more efficiently to avoid free slot exhaustion.
And in android, let f2fs_create() always to compare nonexistent extension name is unneeded, right?
Quoted 2 lines
I haven't encountered an Android user or an OEM that wants to customize this list by passing an argument to mkfs.f2fs.
That sounds sad for this interface's low use frequency, except Google and Huawei, it looks f2fs needs more stable users first, now vendor like Huawei, just use default list (had upstreamed .db as hot type as default yet). :(
Quoted 3 lines
If an OEM want to customize this list, directly modifying the code for mkfs.f2fs sounds better anyways.
Yes, also we support adding/deleting extensions via sys node.
Thanks,
Quoted 25 lines
Thanks.
Quoted 21 lines · Chao Yu
Quoted 1 line · Park Ju Hyung
Similar to .db files, these are randomly updated extremely frequently.
It looks android doesn't need this, how about adding them under "#ifndef
WITH_ANDROID"?Thanks,
Quoted 12 lines
Signed-off-by Park Ju Hyung <[email protected]>--- mkfs/f2fs_format.c | 5 +++++ 1 file changed, 5 insertions(+)mkfs/f2fs_format.c +0
-0@@ -94,6 +94,11 @@ const char *media_ext_lists[] = {
Quoted 13 lines
Quoted 11 lines
mkfs/f2fs_format.c const char *media_ext_lists[] = { · line 104
Quoted 11 lines
mkfs/f2fs_format.c +5
-0const char *hot_ext_lists[] = {"db" , + +/* Virtual machines */ +"vmdk" ,// VMware or VirtualBox +"vdi" ,// VirtualBox +"qcow2" ,// QEMU NULL };.
_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
Hi Ju Hyung,
Quoted 1 line · Park Ju Hyung
A lot of Linux users have big, cold "zip" files.
In android, as I see, most zip file is small-sized log type, and will be removed after a roll-back, such as:
time1: create log1.zip
time2: create log2.zip
time3: create log3.zip
time4: remove log1.zip, rename log2.zip -> log1.zip; rename log3.zip -> log2.zip; create log3.zip
I suggest we can keep zip type in android as warm type with IPU mode to avoid fragmentation caused by small holes in cold area. In linux distro, I agreed to treat zip as cold type.
So what about configuring zip type in f2fs_init_configuration() under '#ifndef WITH_ANDROID'?
What do you think?
Thanks,
Quoted 12 lines
Signed-off-by Park Ju Hyung <[email protected]>--- mkfs/f2fs_format.c | 1 + 1 file changed, 1 insertion(+)mkfs/f2fs_format.c +0
-0
mkfs/f2fs_format.c const char *media_ext_lists[] = { · line 72
Quoted 7 lines
mkfs/f2fs_format.c +1
-0@@ -66,6 +66,7 @@ const char *media_ext_lists[] = {"webp" ,/* archives */ +"zip" ,"jar" ,"deb" , "iso",
_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
Quoted 14 lines · Chao Yu
Hi Ju Hyung,
Quoted 1 line · Park Ju Hyung
A lot of Linux users have big, cold "zip" files.
In android, as I see, most zip file is small-sized log type, and will be removed after a roll-back, such as:
time1: create log1.zip
time2: create log2.zip
time3: create log3.zip
time4: remove log1.zip, rename log2.zip -> log1.zip; rename log3.zip -> log2.zip; create log3.zip
Quoted 5 lines
I suggest we can keep zip type in android as warm type with IPU mode to avoid fragmentation caused by small holes in cold area. In linux distro, I agreed to treat zip as cold type.
So what about configuring zip type in
f2fs_init_configuration()under '#ifndef
It seems it doesn't have to configure this in f2fs_init_configuration(), just adding #ifndef WITH_ANDROID will be fine.
Quoted 19 lines
WITH_ANDROID'?What do you think?
Thanks,
Quoted 13 lines
Signed-off-by Park Ju Hyung <[email protected]>--- mkfs/f2fs_format.c | 1 + 1 file changed, 1 insertion(+)mkfs/f2fs_format.c +0
-0@@ -66,6 +66,7 @@ const char *media_ext_lists[] = { "webp",
Quoted 14 lines
mkfs/f2fs_format.c const char *media_ext_lists[] = { · line 72
Quoted 6 lines
mkfs/f2fs_format.c +1
-0/* archives */ +"zip" ,"jar" ,"deb" , "iso",_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
.
_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
Hi Chao,
Quoted 9 lines · Chao Yu
In android, as I see, most zip file is small-sized log type, and will be removed after a roll-back, such as:
time1: create log1.zip
time2: create log2.zip
time3: create log3.zip
time4: remove log1.zip, rename log2.zip -> log1.zip; rename log3.zip -> log2.zip; create log3.zip
Quoted 3 lines
I suggest we can keep zip type in android as warm type with IPU mode to avoid fragmentation caused by small holes in cold area. In linux distro, I agreed to treat zip as cold type.
I actually thought your original suggestion of adding "zip" was to handle big zip files under /sdcard(/data/media).
The one case you've mentioned will be entirely dependent on which apps user's using.
In case of mine, I don't have any zip files under /data that's seemingly used for logs.
Thanks,
_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
Hi Ju Hyung,
Quoted 16 lines · Ju Hyung Park
Hi Chao,
Quoted 9 lines · Chao Yu
In android, as I see, most zip file is small-sized log type, and will be removed after a roll-back, such as:
time1: create log1.zip
time2: create log2.zip
time3: create log3.zip
time4: remove log1.zip, rename log2.zip -> log1.zip; rename log3.zip -> log2.zip; create log3.zipQuoted 3 lines
I suggest we can keep zip type in android as warm type with IPU mode to avoid fragmentation caused by small holes in cold area. In linux distro, I agreed to treat zip as cold type.
Quoted 5 lines
I actually thought your original suggestion of adding "zip" was to handle big zip files under /sdcard(/data/media).
The one case you've mentioned will be entirely dependent on which apps user's using.
Yeah, actually, now I didn't see much large zip file in my external storage, most of them are xxxKB or xMB, some of them looks very old tho. :)
Quoted 2 lines
In case of mine, I don't have any zip files under /data that's seemingly used for logs.
Huawei cell phone has log file with .zip/.gz type locating in /data/log/... can you search that directory?
If we relocate them into cold area, they will make holes in cold area crazily, as they have small size and will be created/unlinked frequently.
Thanks,
Quoted 4 lines
Thanks,
.
_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
Hi Chao,
/data/log isn't even here.
I think it must be specific to EMUI.
Thanks.
Quoted 32 lines · Chao Yu
Hi Ju Hyung,
Quoted 16 lines · Ju Hyung Park
Hi Chao,
Quoted 9 lines · Chao Yu
In android, as I see, most zip file is small-sized log type, and will be removed after a roll-back, such as:
time1: create log1.zip
time2: create log2.zip
time3: create log3.zip
time4: remove log1.zip, rename log2.zip -> log1.zip; rename log3.zip -> log2.zip; create log3.zipQuoted 3 lines
I suggest we can keep zip type in android as warm type with IPU mode to avoid fragmentation caused by small holes in cold area. In linux distro, I agreed to treat zip as cold type.
Quoted 5 lines
I actually thought your original suggestion of adding "zip" was to handle big zip files under /sdcard(/data/media).
The one case you've mentioned will be entirely dependent on which apps user's using.
Yeah, actually, now I didn't see much large zip file in my external storage, most of them are xxxKB or xMB, some of them looks very old tho. :)
Quoted 2 lines
In case of mine, I don't have any zip files under /data that's seemingly used for logs.
Quoted 12 lines
Huawei cell phone has log file with .zip/.gz type locating in /data/log/... can you search that directory?
If we relocate them into cold area, they will make holes in cold area crazily, as they have small size and will be created/unlinked frequently.
Thanks,
Quoted 4 lines
Thanks,
.
_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
Hi Ju Hyung,
Quoted 4 lines · Ju Hyung Park
Hi Chao,
/data/log isn't even here.
I think it must be specific to EMUI.
Alright, at least in EMUI, it looks not proper to me to set cold flag on zip file according to result of hot/cold separation investigation recently.
IMO, it will be more common to store large stable zip/rar file in Linux desktop/server or Window OS...
Thanks,
Quoted 42 lines
Thanks.
Quoted 38 lines · Chao Yu
Hi Ju Hyung,
Quoted 16 lines · Ju Hyung Park
Hi Chao,
Quoted 9 lines · Chao Yu
In android, as I see, most zip file is small-sized log type, and will be removed after a roll-back, such as:
time1: create log1.zip
time2: create log2.zip
time3: create log3.zip
time4: remove log1.zip, rename log2.zip -> log1.zip; rename log3.zip -> log2.zip; create log3.zipQuoted 3 lines
I suggest we can keep zip type in android as warm type with IPU mode to avoid fragmentation caused by small holes in cold area. In linux distro, I agreed to treat zip as cold type.
Quoted 5 lines
I actually thought your original suggestion of adding "zip" was to handle big zip files under /sdcard(/data/media).
The one case you've mentioned will be entirely dependent on which apps user's using.
Yeah, actually, now I didn't see much large zip file in my external storage, most of them are xxxKB or xMB, some of them looks very old tho. :)
Quoted 2 lines
In case of mine, I don't have any zip files under /data that's seemingly used for logs.
Huawei cell phone has log file with .zip/.gz type locating in /data/log/... can you search that directory?
If we relocate them into cold area, they will make holes in cold area crazily, as they have small size and will be created/unlinked frequently.
Quoted 8 lines
Quoted 6 lines
Thanks,
Quoted 4 lines
Thanks,
..
_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel