0.161.0-pre remote editing pins CPU's to 100% #20405
Labels
bug
[core label]
performance
Feedback for performance issues, speed, memory usage, etc
remote dev
Feedback for remote development servers
Check for existing issues
Describe the bug / provide steps to reproduce it
Grabbed the preview build and connected to my server. It worked so much better than the previous approach.
After browsing some folders and editing some files I noticed my UPS wattage was high and checked. Two of my CPUs were pinned to 100% utilisation. Quitting zed-preview dropped the CPU usage and UPS wattage back to normal levels.
I tried again and depending on the number of connections to the server is the number of CPUs it starts to hammer. At first it hovers around 5% and jumps up to 80% and after a while gets stuck at 100%.
I believe it is scanning the entire shared directory which given I have a lot of files can be quite a bit of data. Based on the Zed.log it was dipping in to all kinds of folders that weren't actively visible yet in Zed. I suspect, eventually, it'd complete its scan and the CPU usage would return to normal.
Environment
client:
Zed: v0.161.0 (Zed Preview)
OS: macOS 15.1.0
Memory: 16 GiB
Architecture: aarch64
server:
OS: Unraid 7.0.0-beta.3
Memory: 128 GiB
Architecture: x86_64
zed.dockerfile
FROM alpine:latest
RUN <<EOF
apk add --no-cache openssh-server
ssh-keygen -t ecdsa -f /etc/ssh/ssh_host_ed25519_key -N ""
echo 'PubkeyAuthentication yes' >> /etc/ssh/sshd_config
adduser -h /home/willow -s /bin/sh -D willow
EOF
USER willow:willow
WORKDIR /home/willow
RUN <<EOF
mkdir .zed_server
wget -O .zed_server/zed-remote-server-stable-linux-x86_64.gz https://github.com/zed-industries/zed/releases/download/v0.161.0-pre/zed-remote-server-linux-x86_64.gz
gunzip .zed_server/zed-remote-server-stable-linux-x86_64.gz
chmod +x .zed_server/zed-remote-server-stable-linux-x86_64
EOF
COPY zed.pub.willow_rsa .ssh/authorized_keys
USER root:root
CMD ["/usr/sbin/sshd","-D"]
EXPOSE 22
zed.compose.yml
services:
zed:
build:
context: .
dockerfile: zed.dockerfile
container_name: zed
restart: unless-stopped
env_file: default-environment.env
volumes:
- /mnt/user/documents:/home/willow/documents
networks:
containers-br2-network:
ipv4_address: ${address_zed?}
labels:
net.unraid.docker.icon: 'https://zed.dev/_next/static/media/zed-logo.11b2d662.png'
net.unraid.docker.webui: ''
net.unraid.docker.shell: 'ash'
If applicable, add mockups / screenshots to help explain present your vision of the feature
If applicable, attach your Zed.log file to this issue.
Log includes too much personal information.
The text was updated successfully, but these errors were encountered: