Forum Discussion

EBRIN2233's avatar
EBRIN2233
Copper Contributor
Feb 28, 2024

Active OneDrive makes whole environment 'sluggish'

Our client is using AVD for about 5 weeks in 'production' now. It is a smaller company with about 40 users. We have 6 VM's in AVD (D4s_v5) in use at the moment. We have tried D8s_v5 without any improvement.  
But we see memory and cpu usage at high levels most of the time with OneDrive at the top of the processes. Every server feels sluggish at the moment. Starting Excel takes about 30-40 seconds, Word about the same time. Opening a Word document takes about 20-25 seconds to open and opening folders from the right pane (yes only the right pane) in explorer takes abount 7-15 seconds per folder.

All those folders are folders from SharePoint document libraries. 
It doens't matter if a folder is fully synced with the server or it isn't. 

We are using FSlogic with profiles stored on azure. 

I was reading a blog of Christian Brinkhoff about almost the same kind of issues but can't really pinpoint the exact cause or find a solution for this issue.

Can you help me out?

  • JamesC1920's avatar
    JamesC1920
    Copper Contributor
    We had this issue, edited the permissions on the reg key Computer\HKEY_CLASSES_ROOT\PackagedCom\Package\Microsoft.OneDriveSync_24180.905.1.0_neutral__8wekyb3d8bbwe

    And it instantly started working as normal
      • JamesC1920's avatar
        JamesC1920
        Copper Contributor
        any entities that didn't have full control, we changed to full control. Not sure this would result in any other issues but it sorted it.
    • Yanick_Gubler's avatar
      Yanick_Gubler
      Copper Contributor

      Thank you very much. This has solved the problem. We have been waiting for a solution for over a year. SharePoint and OneDrive is now super fast (like local) on the AVD with FSLogix.

      We just had to give the administrator full access to the latest version of Microsoft.OneDriveSync_xxx_neutral_8wekyb3d8bbwe under Computer\HKEY_CLASSES_ROOT\PackagedCom\Package\.

  • virtualmanc's avatar
    virtualmanc
    Iron Contributor
    This could be several things. Firstly, if you take OneDrive out of the equation, is still slow?? I have never seen OneDrive slow things down.

    Few things to check:
    1. How many users are you getting per host? With a D4S_5 try it with a 1:1 ratio to set it to 4 users per host and see if you still experience issues.
    2. Have you implemented the FSLogix exclusions? I would strongly suggest doing so if not.
    3. What storage are you using for the VMs, you should be at least Standard SSD
    4. Try the D4DS_V5 SKU as that has a temp disk so your pagefile disk will have much more IOPS so hopefully better experience
    5. If you open a local Word or Excel document is it still slow?
    6. What storage is your FSLogix profiles held on? Should be at least Premium SSD.
    7. If you exclude FSLogix from the equation, is it still slow?? You can do this by adding users to the local FSLogix exclude group on the session hosts.

    This should help pinpoint where the issue is ๐Ÿ™‚
    • EBRIN2233's avatar
      EBRIN2233
      Copper Contributor

      virtualmanc

      Disabeling OneDrive makes the servers 'fly'. Enabled slows them down incredibly.
      It doesn't matter if 1 or 5 users are on the server. We upgraded to D8s_V5 without improvement.

      Storage for servers and FSLogic is Standard & Premium SSD.

      ODFC is enabled. 

       

      The other questions I will try to find out. Will be back....

       
       

    • EBRIN2233's avatar
      EBRIN2233
      Copper Contributor
      7. If you exclude FSLogix from the equation, is it still slow?? You can do this by adding users to the local FSLogix exclude group on the session hosts.

      Excluding FSLogic -> same issues.

      Disabeling OneDrive makes the environment fast. Enabling it makes the environment slow.

      OneDrive and FSLogic on same storage but in different container.

      Starting OneDrive on server as Admin (without shares and sync) makes the server slow also.
      • EBRIN2233's avatar
        EBRIN2233
        Copper Contributor
        so problems seem to pinpoint to OneDrive client / setup.
  • frankfalvey's avatar
    frankfalvey
    Iron Contributor

    EBRIN2233 

    Analyze Resource Consumption:

    PerfInsights: Consider using PerfInsights, a tool specifically designed for Azure VMs. It provides insights into Azure best practices, SQL best practices, I/O latency graphs, and detailed CPU and memory information. 

    Existing Tools: Utilize familiar performance troubleshooting tools like Perfmon or Procmon (similar to on-premises servers). These tools can help identify resource-intensive processes and bottlenecks.

    Common Factors for High-CPU Situations:

    Recent Code Changes or Deployments: Check if recent code changes or deployments (especially for apps like Internet Information Services, Microsoft SharePoint, or Microsoft SQL Server) are contributing to the high CPU usage.

    Updates: Investigate whether recent OS-level updates or application-level cumulative updates might be causing the issue.

    Query Optimization: For SQL Server and Oracle data tier applications, outdated indexes or inefficient query plans can lead to increased CPU consumption.

    Azure VM-Specific Processes: Certain processes (e.g., RDAgent, Monitoring Agent, MMA agent, or Security client) specific to Azure VMs may cause high CPU usage. 

    Check VM Size and Storage:

    Verify if the current VM size (D4s_v5) is sufficient for the workload. If both CPU usage and available memory are consistently high, consider upgrading to a larger VM size (e.g., D8s_v5) to better support your usersโ€™ needs.

    Monitor and Optimize:

    Continuously monitor resource utilization using Azure Monitor or other monitoring tools.

    Optimize your application code, database queries, and indexing to reduce unnecessary resource consumption.

    Review Extensions and Agents:

    Ensure that any extensions or agents running on the VM (e.g., Monitoring Agent, MMA agent) are configured correctly and not causing excessive CPU load.

    Remember that each environment is unique, so tailor your troubleshooting approach based on the specific characteristics of your clientโ€™s AVD setup. If the issue persists, consider reaching out to Azure support for further assistance.

  • Oliver_Krage's avatar
    Oliver_Krage
    Brass Contributor
    I have a customer that is experiencing slow performance regarding OneDrive/SharePoint when opening files on AVD Hosts.
    The setup is:
    - WVDadmin with a master VM that i make changed on and re-image.
    - AVD is domain joined but NOT hybrid joined.
    - 10-12 users on D4s V5 (4 vCPU and 16 GB RAM) AVD hosts. Started with two but tried with tre as well it gave no performance increase regarding OneDrive/SharePoint
    - I have used MS own Windows 11 23H2 Multi session host without Office package.
    - Installed Office package with shared computer activation WITHOUT teams and OneDrive included.
    - Run https://github.com/The-Virtual-Desktop-Team/Virtual-Desktop-Optimization-Tool after image rollout, removed bunch og appx packages, services and scheduled tasks.
    - Installed OneDrive as machine install (best prac for AVD) (newest version).
    - FSLogix is the newest version on Azure Files Premium 490 GB Storage. Multi SMB Channel enabled.
    - Implemented OneDrive cleanup by Marcel: https://blog.itprocloud.de/OneDrive-Clean-Up-For-Azure-Virtual-Desktop-AVD-agains-Profile-Blotting/
    - Users use seperate dedicated mailbox that they need to roam credentials with and therefore roamidentity is enabled.

    The Issue:
    OneDrive/SharePoint files is like 20-30 seconds to open for the users. It makes no difference if the file is not on-demand or not. What is wrong here and what can be done so its faster for the users?
    • EBRIN2233's avatar
      EBRIN2233
      Copper Contributor
      Hi Oliver.
      Our freshly installed VM's seemed to do the trick. For about three days.
      We are experiencing the same issues like you have. Browsing through explorer on a "local' disk is fast. Browsing through explorer on SharePoint/OneDrive files is slow - 20-30 seconds per click.

      We are working with a partner for a solution on this. But are considering a move to Azure File Storage instead of SharePoint - yes, the client will lose the M365 functionality, we know.

      Do you have any updates?
      • Oliver_Krage's avatar
        Oliver_Krage
        Brass Contributor

        EBRIN2233 HI,

         

        It worked to deploy a fresh AVD host without using the VDOT or Marcels OneDrive cleanup. Im seeing pretty normal performance for the users. The only problem is i have nothing to dehydrate the files for the users. 

         

        Disk is 128 GB SSD Premium and IOPS is bumped up to 1100. Im running 1:1 ratio with the vCPU per user.

  • Marantz01's avatar
    Marantz01
    Copper Contributor
    We have been working on this issue for months with Microsoft support, but still no solution. Very frustrating and very poor support.
    • Oliver_Krage's avatar
      Oliver_Krage
      Brass Contributor
      I found the solution at least in our enviroment. The customer needed Citrix Workspace installed on the AVD host (dont ask why). This slows the entire file explorer + OneDrive down when its running in the background. If i close Citrix Workspace for my test user, it went pretty fast.
      • EBRIN2233's avatar
        EBRIN2233
        Copper Contributor
        I've read similar stories about Adobe Reader on AVD. But was not taking that to seriously....
        Perhaps I have te reconsider now... after reading your post.
        Thanks Oliver!
    • EBRIN2233's avatar
      EBRIN2233
      Copper Contributor
      HI Marantz. That's frustrating...
      We see issues on AVD and locally with OneDrive. So the focus of MS Support team is on OneDrive at the moment.
  • tommykneetz's avatar
    tommykneetz
    Iron Contributor
    Same issues with my customer... I had to go back wo Windows 10 and now all is fine... we doubled user on one host
    • EBRIN2233's avatar
      EBRIN2233
      Copper Contributor

      tommykneetz Back to Windows 10.... :facepalm:
      Oh my..... At least MS has until october '25 to solve this for you in Win11... 

    • Oliver_Krage's avatar
      Oliver_Krage
      Brass Contributor
      Please let me know when its working for you in Windows 11 again
  • Oliver_Krage's avatar
    Oliver_Krage
    Brass Contributor
    I am way under the sync limit MS advises but there are still problems. When the customer opens some the the documents they get the "was not able to download the content" and if you say "try again" it opens the document. Also i see some strange issues regarding the upload blocked error so the user cannot make changes to a document. We are in dialogue with the customer regarding tranfser the files to a normal file share. The sync performance with Win11 Multi session + FSLogix is just not good enough of what i have seen.
    • EBRIN2233's avatar
      EBRIN2233
      Copper Contributor
      We are in dialogue with the customer regarding tranfser the files to a normal file share. --> This is exactly the discussion we are having with our client at the moment.

      But MS OneDrive team is working on our case. If I know more or get an interesting reaction from them I will let you know.
    • EBRIN2233's avatar
      EBRIN2233
      Copper Contributor
      Hi Oliver. Sorry, I was on holiday for a few weeks and pretty much 100% offline.... ๐Ÿ™‚

      The only news I have regarding this issue:
      The client will move to Azure Storage for the time being. As I understand this issue happens randomly. One instance has this issue, the other doesn't... But if that is true - I have my doubts.
      AVD is a great solution - but still has these issues and is in combination with M365 / OneDrive, in my opinion, not suitable to be used in a production environment. Stick to SMB storage!
      • Oliver_Krage's avatar
        Oliver_Krage
        Brass Contributor
        Hi EBRIN2233 thanks for the reply. But sad to hear because this is one of the reasons customers wanna go with AVD instead of RDS ๐Ÿ˜ž
  • Yanick_Gubler's avatar
    Yanick_Gubler
    Copper Contributor

    We have been waiting for a solution for over a year. SharePoint and OneDrive is now super fast (like local) on the AVD with FSLogix.

    We just had to give the administrator full access to the latest version of Microsoft.OneDriveSync_xxx_neutral_8wekyb3d8bbwe under Computer\HKEY_CLASSES_ROOT\PackagedCom\Package\.

Resources