Nicolas_Studiokgb
Contributor
- Joined
- Aug 7, 2020
- Messages
- 130
Hello
Here the result of the command while deleting
I've used `smbstatus` to get pid of the SMB session, then run smbcontrol all profile flush, then smbcontrol <pid> profile on, then repeat the operation and run smbstatus -P to dump profiling metrics.
Approx 40k files with the Mac Os finder from Truenas.
ARC Req Demand_metadata goes up to 45M
Smbd processes still go 100%
Following mac settings :
(This one might maybe limit to 45M instead of 65M)
and in /etc/nsmb.conf
Bellow the screen shot of ZFS reporting in the GUI
Let me know
View attachment 64976
Here the result of the command while deleting
I've used `smbstatus` to get pid of the SMB session, then run smbcontrol all profile flush, then smbcontrol <pid> profile on, then repeat the operation and run smbstatus -P to dump profiling metrics.
Approx 40k files with the Mac Os finder from Truenas.
ARC Req Demand_metadata goes up to 45M
Smbd processes still go 100%
Following mac settings :
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool TRUE
(This one might maybe limit to 45M instead of 65M)
and in /etc/nsmb.conf
[default]
dir_cache_max_cnt=0
signing_required=no
Bellow the screen shot of ZFS reporting in the GUI
Let me know
root@truenas[~]# smbstatus -P
**** "SMBD loop" **************************************************************
connect_count: 0
disconnect_count: 0
idle_count: 193634
idle_time: 348954598
cpu_user_time: 846156025831
cpu_system_time: 1863381399126
request_count: 572837
push_sec_ctx_count: 2659
push_sec_ctx_time: 5427
set_sec_ctx_count: 149
set_sec_ctx_time: 1966
set_root_sec_ctx_count: 2608
set_root_sec_ctx_time: 27965
pop_sec_ctx_count: 2659
pop_sec_ctx_time: 12944
**** "System Calls" ***********************************************************
syscall_opendir_count: 0
syscall_opendir_time: 0
syscall_fdopendir_count: 150798
syscall_fdopendir_time: 7891913
syscall_readdir_count: 1590322
syscall_readdir_time: 1005890
syscall_seekdir_count: 46
syscall_seekdir_time: 16
syscall_telldir_count: 1587898
syscall_telldir_time: 217212
syscall_rewinddir_count: 0
syscall_rewinddir_time: 0
syscall_mkdirat_count: 0
syscall_mkdirat_time: 0
syscall_closedir_count: 150798
syscall_closedir_time: 281739
syscall_open_count: 0
syscall_open_time: 0
syscall_openat_count: 12455398
syscall_openat_time: 44795372
syscall_createfile_count: 0
syscall_createfile_time: 0
syscall_close_count: 10612575
syscall_close_time: 363817569
syscall_pread_count: 0
syscall_pread_time: 0
syscall_pread_idle: 0
syscall_pread_bytes: 0
syscall_asys_pread_count: 0
syscall_asys_pread_time: 0
syscall_asys_pread_idle: 0
syscall_asys_pread_bytes: 0
syscall_pwrite_count: 0
syscall_pwrite_time: 0
syscall_pwrite_idle: 0
syscall_pwrite_bytes: 0
syscall_asys_pwrite_count: 0
syscall_asys_pwrite_time: 0
syscall_asys_pwrite_idle: 0
syscall_asys_pwrite_bytes: 0
syscall_lseek_count: 0
syscall_lseek_time: 0
syscall_sendfile_count: 0
syscall_sendfile_time: 0
syscall_sendfile_idle: 0
syscall_sendfile_bytes: 0
syscall_recvfile_count: 0
syscall_recvfile_time: 0
syscall_recvfile_idle: 0
syscall_recvfile_bytes: 0
syscall_renameat_count: 0
syscall_renameat_time: 0
syscall_asys_fsync_count: 0
syscall_asys_fsync_time: 0
syscall_asys_fsync_idle: 0
syscall_asys_fsync_bytes: 0
syscall_stat_count: 91360564
syscall_stat_time: 655678870
syscall_fstat_count: 13438224
syscall_fstat_time: 13166601
syscall_lstat_count: 4236748
syscall_lstat_time: 58065639
syscall_get_alloc_size_count: 1931060
syscall_get_alloc_size_time: 438872
syscall_unlinkat_count: 39370
syscall_unlinkat_time: 678113
syscall_chmod_count: 0
syscall_chmod_time: 0
syscall_fchmod_count: 0
syscall_fchmod_time: 0
syscall_fchown_count: 0
syscall_fchown_time: 0
syscall_lchown_count: 0
syscall_lchown_time: 0
syscall_chdir_count: 26317084
syscall_chdir_time: 296844384
syscall_getwd_count: 123
syscall_getwd_time: 2706
syscall_fntimes_count: 0
syscall_fntimes_time: 0
syscall_ftruncate_count: 0
syscall_ftruncate_time: 0
syscall_fallocate_count: 0
syscall_fallocate_time: 0
syscall_fcntl_lock_count: 0
syscall_fcntl_lock_time: 0
syscall_kernel_flock_count: 0
syscall_kernel_flock_time: 0
syscall_fcntl_count: 2453766
syscall_fcntl_time: 1795903
syscall_linux_setlease_count: 0
syscall_linux_setlease_time: 0
syscall_fcntl_getlock_count: 0
syscall_fcntl_getlock_time: 0
syscall_readlinkat_count: 0
syscall_readlinkat_time: 0
syscall_symlinkat_count: 0
syscall_symlinkat_time: 0
syscall_linkat_count: 0
syscall_linkat_time: 0
syscall_mknodat_count: 0
syscall_mknodat_time: 0
syscall_realpath_count: 15042398
syscall_realpath_time: 459450632
syscall_get_quota_count: 0
syscall_get_quota_time: 0
syscall_set_quota_count: 0
syscall_set_quota_time: 0
syscall_get_sd_count: 0
syscall_get_sd_time: 0
syscall_set_sd_count: 0
syscall_set_sd_time: 0
syscall_brl_lock_count: 0
syscall_brl_lock_time: 0
syscall_brl_unlock_count: 0
syscall_brl_unlock_time: 0
syscall_brl_cancel_count: 0
syscall_brl_cancel_time: 0
syscall_asys_getxattrat_count: 0
syscall_asys_getxattrat_time: 0
syscall_asys_getxattrat_idle: 0
syscall_asys_getxattrat_bytes: 0
**** "ACL Calls" **************************************************************
get_nt_acl_count: 0
get_nt_acl_time: 0
get_nt_acl_at_count: 0
get_nt_acl_at_time: 0
fget_nt_acl_count: 0
fget_nt_acl_time: 0
fset_nt_acl_count: 0
fset_nt_acl_time: 0
**** "Stat Cache" *************************************************************
statcache_lookups_count: 0
statcache_misses_count: 0
statcache_hits_count: 0
**** "SMB Calls" **************************************************************
SMBmkdir_count: 0
SMBmkdir_time: 0
SMBrmdir_count: 0
SMBrmdir_time: 0
SMBopen_count: 0
SMBopen_time: 0
SMBcreate_count: 0
SMBcreate_time: 0
SMBclose_count: 0
SMBclose_time: 0
SMBflush_count: 0
SMBflush_time: 0
SMBunlink_count: 0
SMBunlink_time: 0
SMBmv_count: 0
SMBmv_time: 0
SMBgetatr_count: 0
SMBgetatr_time: 0
SMBsetatr_count: 0
SMBsetatr_time: 0
SMBread_count: 0
SMBread_time: 0
SMBwrite_count: 0
SMBwrite_time: 0
SMBlock_count: 0
SMBlock_time: 0
SMBunlock_count: 0
SMBunlock_time: 0
SMBctemp_count: 0
SMBctemp_time: 0
SMBmknew_count: 0
SMBmknew_time: 0
SMBcheckpath_count: 0
SMBcheckpath_time: 0
SMBexit_count: 0
SMBexit_time: 0
SMBlseek_count: 0
SMBlseek_time: 0
SMBlockread_count: 0
SMBlockread_time: 0
SMBwriteunlock_count: 0
SMBwriteunlock_time: 0
SMBreadbraw_count: 0
SMBreadbraw_time: 0
SMBreadBmpx_count: 0
SMBreadBmpx_time: 0
SMBreadBs_count: 0
SMBreadBs_time: 0
SMBwritebraw_count: 0
SMBwritebraw_time: 0
SMBwriteBmpx_count: 0
SMBwriteBmpx_time: 0
SMBwriteBs_count: 0
SMBwriteBs_time: 0
SMBwritec_count: 0
SMBwritec_time: 0
SMBsetattrE_count: 0
SMBsetattrE_time: 0
SMBgetattrE_count: 0
SMBgetattrE_time: 0
SMBlockingX_count: 0
SMBlockingX_time: 0
SMBtrans_count: 0
SMBtrans_time: 0
SMBtranss_count: 0
SMBtranss_time: 0
SMBioctl_count: 0
SMBioctl_time: 0
SMBioctls_count: 0
SMBioctls_time: 0
SMBcopy_count: 0
SMBcopy_time: 0
SMBmove_count: 0
SMBmove_time: 0
SMBecho_count: 0
SMBecho_time: 0
SMBwriteclose_count: 0
SMBwriteclose_time: 0
SMBopenX_count: 0
SMBopenX_time: 0
SMBreadX_count: 0
SMBreadX_time: 0
SMBwriteX_count: 0
SMBwriteX_time: 0
SMBtrans2_count: 0
SMBtrans2_time: 0
SMBtranss2_count: 0
SMBtranss2_time: 0
SMBfindclose_count: 0
SMBfindclose_time: 0
SMBfindnclose_count: 0
SMBfindnclose_time: 0
SMBtcon_count: 0
SMBtcon_time: 0
SMBtdis_count: 0
SMBtdis_time: 0
SMBnegprot_count: 0
SMBnegprot_time: 0
SMBsesssetupX_count: 0
SMBsesssetupX_time: 0
SMBulogoffX_count: 0
SMBulogoffX_time: 0
SMBtconX_count: 0
SMBtconX_time: 0
SMBdskattr_count: 0
SMBdskattr_time: 0
SMBsearch_count: 0
SMBsearch_time: 0
SMBffirst_count: 0
SMBffirst_time: 0
SMBfunique_count: 0
SMBfunique_time: 0
SMBfclose_count: 0
SMBfclose_time: 0
SMBnttrans_count: 0
SMBnttrans_time: 0
SMBnttranss_count: 0
SMBnttranss_time: 0
SMBntcreateX_count: 0
SMBntcreateX_time: 0
SMBntcancel_count: 0
SMBntcancel_time: 0
SMBntrename_count: 0
SMBntrename_time: 0
SMBsplopen_count: 0
SMBsplopen_time: 0
SMBsplwr_count: 0
SMBsplwr_time: 0
SMBsplclose_count: 0
SMBsplclose_time: 0
SMBsplretq_count: 0
SMBsplretq_time: 0
SMBsends_count: 0
SMBsends_time: 0
SMBsendb_count: 0
SMBsendb_time: 0
SMBfwdname_count: 0
SMBfwdname_time: 0
SMBcancelf_count: 0
SMBcancelf_time: 0
SMBgetmac_count: 0
SMBgetmac_time: 0
SMBsendstrt_count: 0
SMBsendstrt_time: 0
SMBsendend_count: 0
SMBsendend_time: 0
SMBsendtxt_count: 0
SMBsendtxt_time: 0
SMBinvalid_count: 0
SMBinvalid_time: 0
**** "Trans2 Calls" ***********************************************************
Trans2_open_count: 0
Trans2_open_time: 0
Trans2_findfirst_count: 0
Trans2_findfirst_time: 0
Trans2_findnext_count: 0
Trans2_findnext_time: 0
Trans2_qfsinfo_count: 0
Trans2_qfsinfo_time: 0
Trans2_setfsinfo_count: 0
Trans2_setfsinfo_time: 0
Trans2_qpathinfo_count: 0
Trans2_qpathinfo_time: 0
Trans2_setpathinfo_count: 0
Trans2_setpathinfo_time: 0
Trans2_qfileinfo_count: 0
Trans2_qfileinfo_time: 0
Trans2_setfileinfo_count: 0
Trans2_setfileinfo_time: 0
Trans2_fsctl_count: 0
Trans2_fsctl_time: 0
Trans2_ioctl_count: 0
Trans2_ioctl_time: 0
Trans2_findnotifyfirst_count: 0
Trans2_findnotifyfirst_time: 0
Trans2_findnotifynext_count: 0
Trans2_findnotifynext_time: 0
Trans2_mkdir_count: 0
Trans2_mkdir_time: 0
Trans2_session_setup_count: 0
Trans2_session_setup_time: 0
Trans2_get_dfs_referral_count: 0
Trans2_get_dfs_referral_time: 0
Trans2_report_dfs_inconsistancy_count: 0
Trans2_report_dfs_inconsistancy_time: 0
**** "NT Transact Calls" ******************************************************
NT_transact_create_count: 0
NT_transact_create_time: 0
NT_transact_ioctl_count: 0
NT_transact_ioctl_time: 0
NT_transact_set_security_desc_count: 0
NT_transact_set_security_desc_time: 0
NT_transact_notify_change_count: 0
NT_transact_notify_change_time: 0
NT_transact_rename_count: 0
NT_transact_rename_time: 0
NT_transact_query_security_desc_count: 0
NT_transact_query_security_desc_time: 0
NT_transact_get_user_quota_count: 0
NT_transact_get_user_quota_time: 0
NT_transact_set_user_quota_count: 0
NT_transact_set_user_quota_time: 0
**** "SMB2 Calls" *************************************************************
smb2_negprot_count: 0
smb2_negprot_time: 0
smb2_negprot_idle: 0
smb2_negprot_inbytes: 0
smb2_negprot_outbytes: 0
smb2_sesssetup_count: 0
smb2_sesssetup_time: 0
smb2_sesssetup_idle: 0
smb2_sesssetup_inbytes: 0
smb2_sesssetup_outbytes: 0
smb2_logoff_count: 0
smb2_logoff_time: 0
smb2_logoff_idle: 0
smb2_logoff_inbytes: 0
smb2_logoff_outbytes: 0
smb2_tcon_count: 0
smb2_tcon_time: 0
smb2_tcon_idle: 0
smb2_tcon_inbytes: 0
smb2_tcon_outbytes: 0
smb2_tdis_count: 0
smb2_tdis_time: 0
smb2_tdis_idle: 0
smb2_tdis_inbytes: 0
smb2_tdis_outbytes: 0
smb2_create_count: 190694
smb2_create_time: 145301569
smb2_create_idle: 0
smb2_create_inbytes: 55413160
smb2_create_outbytes: 30264872
smb2_close_count: 190690
smb2_close_time: 384450612
smb2_close_idle: 0
smb2_close_inbytes: 16780720
smb2_close_outbytes: 24405484
smb2_flush_count: 0
smb2_flush_time: 0
smb2_flush_idle: 0
smb2_flush_inbytes: 0
smb2_flush_outbytes: 0
smb2_read_count: 0
smb2_read_time: 0
smb2_read_idle: 0
smb2_read_inbytes: 0
smb2_read_outbytes: 0
smb2_write_count: 0
smb2_write_time: 0
smb2_write_idle: 0
smb2_write_inbytes: 0
smb2_write_outbytes: 0
smb2_lock_count: 0
smb2_lock_time: 0
smb2_lock_idle: 0
smb2_lock_inbytes: 0
smb2_lock_outbytes: 0
smb2_ioctl_count: 0
smb2_ioctl_time: 0
smb2_ioctl_idle: 0
smb2_ioctl_inbytes: 0
smb2_ioctl_outbytes: 0
smb2_cancel_count: 0
smb2_cancel_time: 0
smb2_cancel_idle: 0
smb2_cancel_inbytes: 0
smb2_cancel_outbytes: 0
smb2_keepalive_count: 1
smb2_keepalive_time: 1
smb2_keepalive_idle: 0
smb2_keepalive_inbytes: 68
smb2_keepalive_outbytes: 68
smb2_find_count: 151450
smb2_find_time: 2083487101
smb2_find_idle: 0
smb2_find_inbytes: 22128546
smb2_find_outbytes: 280014099
smb2_notify_count: 1
smb2_notify_time: 1082401
smb2_notify_idle: 1082164
smb2_notify_inbytes: 96
smb2_notify_outbytes: 73
smb2_getinfo_count: 621
smb2_getinfo_time: 298476
smb2_getinfo_idle: 0
smb2_getinfo_inbytes: 64584
smb2_getinfo_outbytes: 66896
smb2_setinfo_count: 39370
smb2_setinfo_time: 1910650
smb2_setinfo_idle: 0
smb2_setinfo_inbytes: 4094480
smb2_setinfo_outbytes: 2834640
smb2_break_count: 0
smb2_break_time: 0
smb2_break_idle: 0
smb2_break_inbytes: 0
smb2_break_outbytes: 0
root@truenas[~]#
View attachment 64976