[haiku-bugs] Re: [Haiku] #3011: Filling Tracker windows with many files takes too long

  • From: "Haiku" <trac@xxxxxxxxxxxx>
  • To: undisclosed-recipients: ;
  • Date: Mon, 19 Aug 2019 03:09:08 -0000

#3011: Filling Tracker windows with many files takes too long
------------------------------------+---------------------------
   Reporter:  stippi                |      Owner:  leavengood
       Type:  enhancement           |     Status:  assigned
   Priority:  normal                |  Milestone:  Unscheduled
  Component:  Applications/Tracker  |    Version:  R1/pre-alpha1
 Resolution:                        |   Keywords:
 Blocked By:                        |   Blocking:  3974, 10952
Has a Patch:  0                     |   Platform:  All
------------------------------------+---------------------------

Comment (by leavengood):

 I don't know, this feels pretty fast now, especially once files are in the
 file cache. I am testing this opening a directory with 8612 empty files
 that I made with touch. It takes about 8-10 seconds. I am testing Haiku in
 VirtualBox with 1 CPU on a host machine with an i7 2600K and Intel SSD
 from 2011. I don't know how much using a VM would taint the profile
 results though.

 I ran the profile command against Tracker and on the first run the "add
 poses" thread (which actually is what reads from the disk) hits the
 EntryCache a lot, and then after that it is really just hitting the kernel
 to get stat info from the cache as well as some memory allocation.

 When I close the resulting window and get the profile information there is
 really not that much in Tracker itself high on the profile list. See
 attached file. It is doing a whole lot of _kern_port_buffer_size_etc
 calls, which maybe is just communication with app_server? Or that is the
 information sent from the "add poses" thread? Either way I am not sure
 what else could be tweaked in Tracker.

-- 
Ticket URL: <https://dev.haiku-os.org/ticket/3011#comment:28>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: