MLD-5.x > Development

[5.5U x86_64] Debugging nfs - Kernel config CONFIG_SUNRPC_DEBUG=y

(1/1)

BobW:
Hallo,

vor einiger Zeit hatte ich nach den Möglichkeiten zum Debugging der nfs-Verbindung gefragt, was leider irgendwie untergegangen ist. Das Problem ist, dass die Wiedergabe einer Aufzeichnung von einem Server auf dem Client immer wieder stoppt oder nur ruckelig angezeigt wird.

Nun habe ich mich schlau gemacht und musste feststellen, dass das Kommando "rpcdebug" zwar vorhanden ist, aber die Module sind es nicht.

--- Code: ---asrock1> rpcdebug -vh
usage: rpcdebug [-v] [-h] [-m module] [-s flags...|-c flags...]
       set or cancel debug flags.

Module     Valid flags
rpc        xprt call debug nfs auth bind sched trans svcsock svcdsp misc cache all
nfs        vfs dircache lookupcache pagecache proc xdr file root callback client mount fscache pnfs pnfs_ld state all
nfsd       sock fh export svc proc fileop auth repcache xdr lockd all
nlm        svc client clntlock svclock monitor clntsubs svcsubs hostcache xdr all
asrock1> rpcdebug -m nfsd -s all
/proc/sys/sunrpc/nfsd_debug: No such file or directory
asrock1>

--- End code ---

Unter /proc fehlt "/proc/sys/sunrpc/nfsd_debug".

Abhilfe schafft das Setzen des Kernel config Parameters CONFIG_SUNRPC_DEBUG.

Ich habe das in meinem ES nun gemacht und jetzt klappt das nfs Debugging.


--- Code: ---at5iont-i> cat config | grep SUNRPC
CONFIG_SUNRPC=y
CONFIG_SUNRPC_GSS=y
CONFIG_SUNRPC_DEBUG=y
at5iont-i> ls -l /proc/sys/sunrpc/
-rw-r--r--    1 root     root             0 Apr 20 09:37 max_resvport
-rw-r--r--    1 root     root             0 Apr 20 09:37 min_resvport
-rw-r--r--    1 root     root             0 Apr 20 07:00 nfsd_debug
-rw-r--r--    1 root     root             0 Apr 20 07:10 nfs_debug
-rw-r--r--    1 root     root             0 Apr 20 08:39 nlm_debug
-rw-r--r--    1 root     root             0 Apr 20 08:35 rpc_debug
-rw-r--r--    1 root     root             0 Apr 20 09:37 tcp_fin_timeout
-rw-r--r--    1 root     root             0 Apr 20 09:37 tcp_max_slot_table_entries
-rw-r--r--    1 root     root             0 Apr 20 09:37 tcp_slot_table_entries
-r--r--r--    1 root     root             0 Apr 20 09:37 transports
-rw-r--r--    1 root     root             0 Apr 20 09:37 udp_slot_table_entries
at5iont-i>

--- End code ---

Maschine asrock1: Develserver von Pit, Maschine at5iont-i: Mein eigener Develserver

Schöne Grüße
BobW

P3f:
Hallo BobW,

danke für diese Analyse. Ich werde den Parameter gerne miteinbinden. Kommt also in den nächsten Kernelbau.

BTW: das mit dem Blackscreen beim Kernel >5.15.32 ist lokalisiert und an Linus gemeldet.

Pit

Navigation

[0] Message Index

Go to full version