This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 270750 - Moving across source file cause sync to disc (this is not even editing!!)
Summary: Moving across source file cause sync to disc (this is not even editing!!)
Status: NEW
Alias: None
Product: editor
Classification: Unclassified
Component: Navigation (show other bugs)
Version: 8.2
Hardware: PC Linux
: P3 normal (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-26 21:14 UTC by gavenkoa
Modified: 2017-05-26 21:39 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description gavenkoa 2017-05-26 21:14:03 UTC
Moving across source file cause sync to disc (this is not even editing!!).

I hate annoying sound from my hard drive.

Application shouldn't call sync on UP/DOWN key movement.

I run strace and it shown:

$ strace  -o nb.log -f /opt/netbeans-8.2/bin/netbeans

27796 open("/home/user/.netbeans/8.2/var/log/uigestures", O_WRONLY|O_CREAT|O_APPEND, 0666) = 160
...
27798 write(160, "<record>\n  <date>2017-05-27T00:0"..., 1934 <unfinished ...>
27798 <... write resumed> )             = 1934
27798 fsync(160 <unfinished ...>

on each key press in editor buffer.

Please disable logging of user actions and never force sync in production builds!
Comment 1 gavenkoa 2017-05-26 21:21:24 UTC
Just installed latest NB and have the same behavior.
Comment 2 gavenkoa 2017-05-26 21:22:06 UTC
Linux kernel sync FS by default each 5 sec. No need for sync at all!
Comment 3 gavenkoa 2017-05-26 21:39:28 UTC
I believe that this crap is responsible for irrelevant `sync` syscall:

http://wiki.netbeans.org/UIGesturesCollector

As this report says: https://netbeans.org/bugzilla/show_bug.cgi?id=219302

***The only way to really disable uigesture recording is to disable the IDE Branding plugin.***

Thanks God for good people!