Could you open a github issue for this?
Also, can you determine anything from the backtrace exactly what's causing it to hang?
That doesn't look like a function (strcasecmp) that should normally hang unless some
corruption as caused the string length to be absurdly long (and then it seems like it
would eventually segfault).
Frank
-----Original Message-----
From: Daniel Gryniewicz [mailto:dang@redhat.com]
Sent: Tuesday, January 4, 2022 6:27 AM
To: bbjjffmcxs(a)outlook.com; devel(a)lists.nfs-ganesha.org
Subject: [NFS-Ganesha-Devel] Re: ganesha debus server thread hang after
creating 20K nfs shares
There's no built-in limit, everything is expandable lists. However, you'll
certainly
run out of memory at some point, and searching linked lists degrades in
performance as they get larger, so there's certainly limits somewhere. I highly
doubt anyone has come close to 50k exports before.
You're backtrace is parsing the config file, so maybe large config file parsing
becomes slow?
Daniel
On 12/25/21 05:12, bbjjffmcxs(a)outlook.com wrote:
> Dear maintainer,
>
> Does ganesha have a limit on the number of nfs share?
>
> Recently I attempted to create 50 thousand nfs shares and it
> turned out the debus server thread got stuck after creating about 20K
> shares.
>
> Also the commad “ganesha_mgr show exports” got no reponse and
> finally timed out. See the below detailed result.
>
> Could you please help take a took and give your valuable advice?
>
> Thanks a lot.
>
> Attahed the backtrace below.
>
> --------------env-----------
>
> NFS-Ganesha Release = V3.5
>
> ------------------Backtrace-----------
>
> #0 0x00007ff0425ed7f4 in __strcasecmp_l_avx () from /lib64/libc.so.6
>
> #1 0x00007ff044dcaabd in save_token (token=0x7ff00d5f0262
> "No_Root_Squash", esc=false, st=0x7ff0203befd0) at
> /usr/src/debug/nfs-ganesha-3.5/config_parsing/analyse.c:60
>
> #2 0x00007ff044dd4214 in ganeshun_yylex (yylval_param=0x7ff0203bef20,
> yylloc_param=0x7ff0203bef00, yyscanner=0x7ff008874080) at
> /usr/src/debug/nfs-ganesha-3.5/config_parsing/conf_lex.l:364
>
> #3 0x00007ff044dd1daf in ganesha_yylex (yylval_param=0x7ff0203bef20,
> yylloc_param=0x7ff0203bef00, st=0x7ff0203befd0) at
> /usr/src/debug/nfs-ganesha-3.5/config_parsing/conf_yacc.y:520
>
> #4 0x00007ff044dd09c5 in ganesha_yyparse (st=0x7ff0203befd0) at
> /usr/src/debug/nfs-ganesha-3.5/config_parsing/conf_yacc.c:1407
>
> #5 0x00007ff044dcb6cc in config_ParseFile (file_path=0x7ff0091260b4
> "/etc/ganesha/ganesha.conf", err_type=0x7ff0203bf0d0) at
> /usr/src/debug/nfs-ganesha-3.5/config_parsing/config_parsing.c:60
>
> #6 0x00007ff044e4f803 in gsh_export_addexport (args=0x7ff0203bf1a0,
> reply=0x7ff008874200, error=0x7ff0203bf1f0) at
> /usr/src/debug/nfs-ganesha-3.5/support/export_mgr.c:1057
>
> #7 0x00007ff044ee360a in dbus_message_entrypoint
> (conn=0x7ff03f4d9580, msg=0x7ff0088742c0, user_data=0x7ff04518dd10
> <export_interfaces>) at
> /usr/src/debug/nfs-ganesha-3.5/dbus/dbus_server.c:574
>
> #8 0x00007ff0446d6466 in _dbus_object_tree_dispatch_and_unlock ()
> from
> /lib64/libdbus-1.so.3
>
> #9 0x00007ff0446c7d19 in dbus_connection_dispatch () from
> /lib64/libdbus-1.so.3
>
> #10 0x00007ff0446c8032 in _dbus_connection_read_write_dispatch () from
> /lib64/libdbus-1.so.3
>
> #110x00007ff044ee42b5 in gsh_dbus_thread (arg=0x0) at
> /usr/src/debug/nfs-ganesha-3.5/dbus/dbus_server.c:810
>
> #12 0x00007ff042ea4ea5 in start_thread () from /lib64/libpthread.so.0
>
> #13 0x00007ff0425a396d in clone () from /lib64/libc.so.6
>
> 从Windows 版邮件 <
https://go.microsoft.com/fwlink/?LinkId=550986>发送
>
>
> _______________________________________________
> Devel mailing list -- devel(a)lists.nfs-ganesha.org To unsubscribe send
> an email to devel-leave(a)lists.nfs-ganesha.org
_______________________________________________
Devel mailing list -- devel(a)lists.nfs-ganesha.org To unsubscribe send an email to
devel-leave(a)lists.nfs-ganesha.org