1298: can have heavy "feel" on closing windows

Discussion related to "Everything" 1.5 Alpha.
Post Reply
therube
Posts: 4947
Joined: Thu Sep 03, 2009 6:48 pm

1298: can have heavy "feel" on closing windows

Post by therube »

1298: can have a slow, heavy "feel" on closing windows - sometimes.
void
Developer
Posts: 16648
Joined: Fri Oct 16, 2009 11:31 pm

Re: 1298: can have heavy "feel" on closing windows

Post by void »

This is caused by FlushFileBuffers added in 1298.

I will disable this by default in the next update and make it an option.
void
Developer
Posts: 16648
Joined: Fri Oct 16, 2009 11:31 pm

Re: 1298: can have heavy "feel" on closing windows

Post by void »

Everything 1.5.0.1299a will no longer flush file buffers by default.

Flushing file buffers was added in 1297.



I have added a flush_file_buffers ini setting to always flush file buffers to disk when closing a file.
This might help users who find their configuration file or Everything database filled with NULs after a system crash or Windows update.

To enable flushing of file buffers to disk when closing files:
  • In Everything, type in the following search and press ENTER:
    /flush_file_buffers=1
  • If successful, flush_file_buffers=1 is shown in the status bar for a few seconds.
therube
Posts: 4947
Joined: Thu Sep 03, 2009 6:48 pm

Re: 1298: can have heavy "feel" on closing windows

Post by therube »

Was something done here (in 1307)?

I believe, at times (without having made any .ini changes), I can sometimes notice a slight heaviness on close.
More curious then anything (as now it is not an issue, where it was back in 1298).
void
Developer
Posts: 16648
Joined: Fri Oct 16, 2009 11:31 pm

Re: 1298: can have heavy "feel" on closing windows

Post by void »

Heaviness in disk IO? CPU usage?

The only change I can think of since 1298 is the addition of a CRC being calculated and stored in the database.
This would have a minimal impact on CPU usage.



Everything will save the database to disk daily.
If this scheduled save at 4am is missed, Everything will save the database to disk the next time an Everything search window is closed.
This might be causing the heavy feel on close..



Please try disabling auto save database on close:
  • In Everything, type in the following search and press ENTER:
    /db_auto_save_on_close=0
  • If successful, you should see db_auto_save_on_close=0 in the status bar for a few seconds.
db_auto_save_on_close



Please make sure flush file buffers is disabled:
  • In Everything, type in the following search and press ENTER:
    /flush_file_buffers=0
  • If successful, flush_file_buffers=0 is shown in the status bar for a few seconds.


Everything will also save the following files when closing an Everything search window:
  • Run History.csv (if changed)
  • Search History.csv (if changed)
  • Everything.ini
How large are these files? (they should all be under 1 MB)



Debug logs might help:
  • In Everything, from the Tools menu, under the Debug submenu, click Start Debug Logging.
  • From the Tools menu, click Close.
  • Open a new Everything search window
  • From the Tools menu, under the Debug submenu, click Stop Debug Logging.
    ---this will open your %TEMP%\Everything Debug Log.txt
  • What is shown in the log?
therube
Posts: 4947
Joined: Thu Sep 03, 2009 6:48 pm

Re: 1298: can have heavy "feel" on closing windows

Post by therube »

If this scheduled save at 4am is missed, Everything will save the database to disk the next time an Everything search window is closed.
This might be causing the heavy feel on close..
That might be it.
(It is very slight, compared to 1298, so not an issue.)
Post Reply