skate icon indicating copy to clipboard operation
skate copied to clipboard

Skate is painfully slow

Open DarkblooM-IO opened this issue 11 months ago • 14 comments

Is this normal?

image

System info:

  • OS: Linux Mint
  • Shell: Bash
  • Terminal: Kitty

DarkblooM-IO avatar Jan 13 '25 16:01 DarkblooM-IO

cannot reproduce it here... are you sure you're using the latest version (v1.0.0)?

caarlos0 avatar Feb 03 '25 17:02 caarlos0

Yup

$ skate --version
skate version v1.0.0 (16b84e6)

DarkblooM-IO avatar Feb 03 '25 20:02 DarkblooM-IO

i can't think of anything that would cause it, and also cannot reproduce it myself :/

any other info you could give? how you installed skate? uname -a? maybe also output of mount?

caarlos0 avatar Feb 04 '25 02:02 caarlos0

how you installed skate?

Brew

uname -a?

Linux bookworm 6.8.0-48-generic #48-Ubuntu SMP PREEMPT_DYNAMIC Fri Sep 27 14:04:52 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

maybe also output of mount?

$ mount | column -t
sysfs                               on  /sys                       type  sysfs            (rw,nosuid,nodev,noexec,relatime)
proc                                on  /proc                      type  proc             (rw,nosuid,nodev,noexec,relatime)
udev                                on  /dev                       type  devtmpfs         (rw,nosuid,relatime,size=7796384k,nr_inodes=1949096,mode=755,inode64)
devpts                              on  /dev/pts                   type  devpts           (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs                               on  /run                       type  tmpfs            (rw,nosuid,nodev,noexec,relatime,size=1567480k,mode=755,inode64)
efivarfs                            on  /sys/firmware/efi/efivars  type  efivarfs         (rw,nosuid,nodev,noexec,relatime)
/dev/nvme0n1p2                      on  /                          type  ext4             (rw,relatime,errors=remount-ro)
securityfs                          on  /sys/kernel/security       type  securityfs       (rw,nosuid,nodev,noexec,relatime)
tmpfs                               on  /dev/shm                   type  tmpfs            (rw,nosuid,nodev,inode64)
tmpfs                               on  /run/lock                  type  tmpfs            (rw,nosuid,nodev,noexec,relatime,size=5120k,inode64)
cgroup2                             on  /sys/fs/cgroup             type  cgroup2          (rw,nosuid,nodev,noexec,relatime,nsdelegate,memory_recursiveprot)
pstore                              on  /sys/fs/pstore             type  pstore           (rw,nosuid,nodev,noexec,relatime)
bpf                                 on  /sys/fs/bpf                type  bpf              (rw,nosuid,nodev,noexec,relatime,mode=700)
systemd-1                           on  /proc/sys/fs/binfmt_misc   type  autofs           (rw,relatime,fd=32,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=1524)
mqueue                              on  /dev/mqueue                type  mqueue           (rw,nosuid,nodev,noexec,relatime)
hugetlbfs                           on  /dev/hugepages             type  hugetlbfs        (rw,nosuid,nodev,relatime,pagesize=2M)
debugfs                             on  /sys/kernel/debug          type  debugfs          (rw,nosuid,nodev,noexec,relatime)
tracefs                             on  /sys/kernel/tracing        type  tracefs          (rw,nosuid,nodev,noexec,relatime)
fusectl                             on  /sys/fs/fuse/connections   type  fusectl          (rw,nosuid,nodev,noexec,relatime)
configfs                            on  /sys/kernel/config         type  configfs         (rw,nosuid,nodev,noexec,relatime)
/dev/nvme0n1p1                      on  /boot/efi                  type  vfat             (rw,relatime,fmask=0077,dmask=0077,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
binfmt_misc                         on  /proc/sys/fs/binfmt_misc   type  binfmt_misc      (rw,nosuid,nodev,noexec,relatime)
tmpfs                               on  /run/user/1000             type  tmpfs            (rw,nosuid,nodev,relatime,size=1567476k,nr_inodes=391869,mode=700,uid=1000,gid=1000,inode64)
/home/.ecryptfs/darkbloom/.Private  on  /home/darkbloom            type  ecryptfs         (rw,nosuid,nodev,relatime,ecryptfs_fnek_sig=054831fa4ebec05d,ecryptfs_sig=e235b73d2cd645f6,ecryptfs_cipher=aes,ecryptfs_key_bytes=16,ecryptfs_unlink_sigs)
gvfsd-fuse                          on  /run/user/1000/gvfs        type  fuse.gvfsd-fuse  (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)
portal                              on  /run/user/1000/doc         type  fuse.portal      (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)

DarkblooM-IO avatar Feb 04 '25 09:02 DarkblooM-IO

I can't see why it could be slow, and also cannot reproduce it...

caarlos0 avatar Feb 12 '25 12:02 caarlos0

my wild guess would be badger.

v4.3.0 has some perf updates, its already on main, could you try it?

caarlos0 avatar Feb 12 '25 12:02 caarlos0

Sorry I'm not sure what you mean by "try it"
What should I do with Badger?

DarkblooM-IO avatar Feb 12 '25 14:02 DarkblooM-IO

sorry, I meant skate on main branch (which has the latest version of badger)

caarlos0 avatar Mar 05 '25 13:03 caarlos0

Is the brew package not the on main branch?

DarkblooM-IO avatar Mar 05 '25 18:03 DarkblooM-IO

just released v1.0.1, can you try updating?

Is the brew package not the on main branch?

no, brew package is always the latest tag

caarlos0 avatar Mar 06 '25 14:03 caarlos0

just released v1.0.1, can you try updating?

It still takes around 6 seconds to list items

Tried downloading the executable directly but I get the same result

DarkblooM-IO avatar Mar 07 '25 09:03 DarkblooM-IO

weird... i have no other ideas on what can be causing this... and I cannot reproduce it here either 🤔

caarlos0 avatar Mar 10 '25 11:03 caarlos0

What's weird is that it doesn't occur on my other PC, I really don't know what's wrong with my laptop for it to be doing this.

DarkblooM-IO avatar Mar 10 '25 12:03 DarkblooM-IO

$ time skate list

real	0m3,589s
user	0m0,015s
sys	0m3,424s

Same on my machine. skate is bullet fast on all my personal machines (different hardware, all run Linux Mint), but really slow on my office laptop (Linux Mint again). The only difference I can spot is encrypted home directory on my office lappy (due to the company security policy).

spaghetti-coder avatar May 30 '25 14:05 spaghetti-coder