Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cptofs hangs with 100% CPU usage for >64G volumes #466

Open
dfordivam opened this issue Jun 3, 2019 · 4 comments
Open

cptofs hangs with 100% CPU usage for >64G volumes #466

dfordivam opened this issue Jun 3, 2019 · 4 comments

Comments

@dfordivam
Copy link

The issue was observed while copying to an ext4 FS :
NixOS/nixpkgs#59867

The actual usage is in this file https://github.com/NixOS/nixpkgs/blob/1dac88dbd3d48c5706fd85d58608d8ff168424e1/nixos/lib/make-disk-image.nix#L188

@dfordivam dfordivam changed the title cptofs hangs 100% CPU for >64G volumes cptofs hangs with 100% CPU usage for >64G volumes Jun 3, 2019
@RaitoBezarius
Copy link

I have to add that this issue was observed under QEMU to build an aarch64 image of 2033573888 bytes, i.e. < 2G.

Some log:

Creating an EXT4 image of 2033573888 bytes (numInodes=79580, numDataBlocks=337318)
mke2fs 1.45.4 (23-Sep-2019)
ext2fs_check_if_mount: Can't check if filesystem is mounted due to missing mtab file while determining whether /nix/store/lgnm1lsvw4md4gkdwilabay66iq0mzig-ext4-fs.img is mounted.
Unsupported ioctl: cmd=0xffffffff80200204
Discarding device blocks: done         
Creating filesystem with 496478 4k blocks and 124160 inodes
Filesystem UUID: 44444444-4444-4444-8888-888888888888
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376, 294912

Allocating group tables: done 
Writing inode tables: done 
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: done 

(original ref: NixOS/nixpkgs#76780)

@RaitoBezarius
Copy link

If someone is super interested, here's a full strace output right when cptofs is executed under qemu-aarch64-static:

https://gist.github.com/RaitoBezarius/83c565401b995df33acd31381eec345c

@flokli
Copy link

flokli commented Dec 10, 2020

@RaitoBezarius isn't this another bug? The initial report is about 100% CPU usages for volumes >64G, on x86 (I guess?).

@evanjs, @dfordivam can you confirm?

@RaitoBezarius
Copy link

@flokli You're definitely right.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants