Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 04 Jun 2023 14:21:28 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 271819] FREEBSD 13.0 machine becomes unresponsive after some days.
Message-ID:  <bug-271819-227@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 271819
           Summary: FREEBSD 13.0 machine becomes unresponsive after some
                    days.
           Product: Base System
           Version: Unspecified
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: anwarcse47us@gmail.com

Hi,

We have recently upgraded our virtual machines to freebsd 13.0 from freebsd
10.4.
We have seen that machine becomes unresponsive after running for some days.
Sometimes, it is becoming unresponsive after 2 days and sometimes it is tak=
ing
upto 2-3 months before becoming unresponsive.
VM configuration:
number of CPU: 2
RAM: 6GB

We have observed, just before machine becoming unresponsive, access to one =
of
the directory is getting hung means:
Let's say I have a directory /x/y/z/outbox. any command from shell trying to
access the directory outbox is going into Uninterrupted sleep state and she=
ll
is getting hung.=20
There are DU processes, accessing outbox directory, run at certain intervals
are getting stuck in UFS state as seen in TOP command.
34877 root          1  20    0    28M  2952K ufs      0   0:01   0.00% du
75703 root          1  20    0    28M  2628K ufs      1   0:01   0.00% du
 6753 root          1  20    0    28M  2980K ufs      0   0:01   0.00% du
87132 root          1  20    0    28M  2980K ufs      0   0:01   0.00% du
63429 root          1  20    0    28M  2972K ufs      1   0:01   0.00% du
18308 root          1  20    0    28M  2652K ufs      1   0:01   0.00% du
18074 root          1  20    0    28M  2580K ufs      0   0:01   0.00% du
88042 root          1  20    0    27M  2992K ufs      0   0:01   0.00% du
82363 root          1  20    0    27M  2996K ufs      0   0:01   0.00% du


There is a JAVA process, that reads data from outbox directory, has also got
into STOP state and we are unable to even kill that Java process.
In other occurrences of this issue, we have seen a custom python process got
stuck consuming 100% CPU and its input directory was seen getting repaired
during reboot.


This problem is getting resolved after reboot. During reboot we can see that
fsck command is being run to correct that directory.
reboot logs:
Sometimes DIR becoming UNREF:
kernel: DIR I=3D2964556 CONNECTED. PARENT WAS I=3D2964003
kernel:
kernel: UNREF DIR  I=3D2964499  OWNER=3Droot MODE=3D40755
kernel: SIZE=3D2048 MTIME=3DMay 26 13:50 2023
kernel:
kernel: RECONNECT? yes

....
....
kernel: ***** FILE SYSTEM STILL DIRTY *****
kernel: ***** FILE SYSTEM WAS MODIFIED *****
***** PLEASE RERUN FSCK *****
...
...

In another occurrence: Parent DIR had wrong link count.
Logs during reboot:
kernel: /dev/da0p9: LINK COUNT DIR I=3D700908 OWNER=3Droot MODE=3D40777
kernel: /dev/da0p9: SIZE=3D512 MTIME=3DJun 2 09:05 2023 COUNT 3 SHOULD BE 2
(ADJUSTED)


These symptoms are similar to freebsd bug report:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D224292

So we tried patching :
https://cgit.freebsd.org/src/commit/sys/ufs/ffs/ffs_softdep.c?id=3D50acaaef=
54b4d7811393eb8c05a398d7a1882418

and also added a logic to run sync as mentioned in the bug #224292. But not=
hing
worked.

We have observed that this is happening only on machine having 2 CPU cores =
and
6 GB ram. It is not happening on machine with greater number of CPU cores a=
nd
RAM.

Thanks in advance...

--=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-271819-227>