Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Jul 2023 12:16:42 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 272434] du and disk operations (like mv,cp,shutil.move/rmtree,os.rename) combination issues
Message-ID:  <bug-272434-227-LV86pN5OCh@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-272434-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-272434-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D272434

--- Comment #6 from shamsher <meetshamsher@gmail.com> ---
Also just for info when replacing df from du then not seeing hang in any
folder.
Looks with df combination it's working fine but not with du combination.

$ cat du.py=20
import os
import time;
while 1:
    os.system("du /")     <<-- here replaced du with df
    time.sleep(5)

note: dir1: subdir + file have been created inside /data/infra folder as be=
low:
$ cat createfiles.py=20
import os
i =3D 0
import time
while i < 50:
    j =3D 0
    path =3D "/data/infra/dir1/dir" + str(i)
    os.makedirs(path)
    while j < 10:
        path1 =3D "/data/infra/dir1/dir" + str(i) + "/file" + str(j)
#        cmd =3D "touch " + path1
#        os.system(cmd)
        f =3D open(path1,"w")
        f.write("Hit the issue")
        j +=3D 1
    i+=3D1

Steps : 1- create dir : /data/infra
        2- inside above folder execute "python createfiles.py"
        3- run "python mode-move-delete.py >/dev/null & "
        4- run "python du.py > /dev/null &"
Wait for sometime issues will get hit in one of the folder.
Sys config/resource- cpu:1, RAM:128M, Disk:250GB

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-272434-227-LV86pN5OCh>