linux-kernel

Does userfaultfd now support file backed map?

瘦欲@ 提交于 2021-01-01 03:56:32
问题 I saw from the documentation of userfaultfd https://manpages.debian.org/testing/manpages-dev/userfaultfd.2.en.html http://man7.org/linux/man-pages/man2/ioctl_userfaultfd.2.html that userfaultfd will start supporting shared map since kernel 4.11. However, the documentation still looks very ambiguous in the sense that I'm still wondering will these include supporting file-backed mmap (which can also be MAP_SHARED)? 回答1: To answer definitively, since the information is not in the manual page(s),

Does userfaultfd now support file backed map?

与世无争的帅哥 提交于 2021-01-01 03:55:53
问题 I saw from the documentation of userfaultfd https://manpages.debian.org/testing/manpages-dev/userfaultfd.2.en.html http://man7.org/linux/man-pages/man2/ioctl_userfaultfd.2.html that userfaultfd will start supporting shared map since kernel 4.11. However, the documentation still looks very ambiguous in the sense that I'm still wondering will these include supporting file-backed mmap (which can also be MAP_SHARED)? 回答1: To answer definitively, since the information is not in the manual page(s),

Does userfaultfd now support file backed map?

…衆ロ難τιáo~ 提交于 2021-01-01 03:51:07
问题 I saw from the documentation of userfaultfd https://manpages.debian.org/testing/manpages-dev/userfaultfd.2.en.html http://man7.org/linux/man-pages/man2/ioctl_userfaultfd.2.html that userfaultfd will start supporting shared map since kernel 4.11. However, the documentation still looks very ambiguous in the sense that I'm still wondering will these include supporting file-backed mmap (which can also be MAP_SHARED)? 回答1: To answer definitively, since the information is not in the manual page(s),

What is the difference between T and t in /proc/kallsyms

早过忘川 提交于 2020-12-31 10:51:05
问题 This is a part of text file from System.map and /proc/kallsyms . ffffffff8106c260 T leave_mm ffffffff8106c340 t do_flush_tlb_all ffffffff8106c390 t flush_tlb_func ffffffff8106c510 T native_flush_tlb_others ffffffff8106c540 T flush_tlb_current_task ffffffff8106c600 T flush_tlb_mm_range ffffffff8106c770 T flush_tlb_page ffffffff8106c820 T flush_tlb_all ffffffff8106c840 T flush_tlb_kernel_range What is the difference between T and t ? I know that T or t is for text (code) section. I guessed T

What is the difference between T and t in /proc/kallsyms

岁酱吖の 提交于 2020-12-31 10:50:12
问题 This is a part of text file from System.map and /proc/kallsyms . ffffffff8106c260 T leave_mm ffffffff8106c340 t do_flush_tlb_all ffffffff8106c390 t flush_tlb_func ffffffff8106c510 T native_flush_tlb_others ffffffff8106c540 T flush_tlb_current_task ffffffff8106c600 T flush_tlb_mm_range ffffffff8106c770 T flush_tlb_page ffffffff8106c820 T flush_tlb_all ffffffff8106c840 T flush_tlb_kernel_range What is the difference between T and t ? I know that T or t is for text (code) section. I guessed T

Different package present in /usr/lib/x86_64-linux-gnu/

℡╲_俬逩灬. 提交于 2020-12-31 06:48:11
问题 I'm running this command nl-qdisc-add --dev=veth-host --parent=root plug --limit=32768 It throws an error of Error: Unable to load module "/usr/lib/x86_64-linux-gnu/libnl/cli/qdisc/plug.so": /usr/lib/x86_64-linux-gnu/libnl/cli/qdisc/plug.so: cannot open shared object file: No such file or directory I looked into the folder and found that there was another folder present named libnl-3 with same files. I can't even rename it to run the command. How can i resolve this? Even if i successfully

Different package present in /usr/lib/x86_64-linux-gnu/

时光总嘲笑我的痴心妄想 提交于 2020-12-31 06:47:08
问题 I'm running this command nl-qdisc-add --dev=veth-host --parent=root plug --limit=32768 It throws an error of Error: Unable to load module "/usr/lib/x86_64-linux-gnu/libnl/cli/qdisc/plug.so": /usr/lib/x86_64-linux-gnu/libnl/cli/qdisc/plug.so: cannot open shared object file: No such file or directory I looked into the folder and found that there was another folder present named libnl-3 with same files. I can't even rename it to run the command. How can i resolve this? Even if i successfully

Is overwriting a small file atomic on ext4?

ぃ、小莉子 提交于 2020-12-29 19:49:21
问题 Assume we have a file of FILE_SIZE bytes, and: FILE_SIZE <= min(page_size, physical_block_size) ; file size never changes (i.e. truncate() or append write() are never performed); file is modified only by completly overwriting its contents using: pwrite(fd, buf, FILE_SIZE, 0); Is it guaranteed on ext4 that: Such writes are atomic with respect to concurrent reads? Such writes are transactional with respect to a system crash? (i.e., after a crash the file's contents is completely from some

Is overwriting a small file atomic on ext4?

余生颓废 提交于 2020-12-29 19:45:06
问题 Assume we have a file of FILE_SIZE bytes, and: FILE_SIZE <= min(page_size, physical_block_size) ; file size never changes (i.e. truncate() or append write() are never performed); file is modified only by completly overwriting its contents using: pwrite(fd, buf, FILE_SIZE, 0); Is it guaranteed on ext4 that: Such writes are atomic with respect to concurrent reads? Such writes are transactional with respect to a system crash? (i.e., after a crash the file's contents is completely from some

Is overwriting a small file atomic on ext4?

╄→гoц情女王★ 提交于 2020-12-29 19:32:52
问题 Assume we have a file of FILE_SIZE bytes, and: FILE_SIZE <= min(page_size, physical_block_size) ; file size never changes (i.e. truncate() or append write() are never performed); file is modified only by completly overwriting its contents using: pwrite(fd, buf, FILE_SIZE, 0); Is it guaranteed on ext4 that: Such writes are atomic with respect to concurrent reads? Such writes are transactional with respect to a system crash? (i.e., after a crash the file's contents is completely from some