LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-19-2015, 07:06 PM   #1
Red Squirrel
Senior Member
 
Registered: Dec 2003
Distribution: Mint 20.1 on workstation, Debian 11 on servers
Posts: 1,336

Rep: Reputation: 54
Will they ever fix the issue in Kate with file swap syncing?


In Kate every time you press a key it also writes to a swap file. This is very problematic on network drives as any bit of latency translates to lag in the typing. There is an option in Kate to disable this, but that checkbox does not actually do anything.

Why is this, and is there any plans to fix that? Is Kate even still under development? I hope so as I have been unable to find an editor that compares as far as usability and features go (except for this issue). It is very noticeable if I'm working off a network drive and an IO intensive task is also in process on that same raid array. Using it over VPN is also not doable.

I switched away from it years ago because of this issue, and when I did an install of Mint KDE I was hoping this issue would be resolved but it's not.

If you want to reproduce this issue just open a file on a high latency storage device and hold down a key. Working locally is not an option, the whole point of my multi thousand dollar server infrastructure is so I don't have to store anything locally. It's all redundant, backed up, etc on the server farm.
 
Old 08-19-2015, 07:24 PM   #2
dedec0
Senior Member
 
Registered: May 2007
Posts: 1,372

Rep: Reputation: 51
It seems you're probably missing some details about your problem. The given description is not clear enough to know your problem - there are many significant variations of it that are possible, by your description.

I have edited, for several years, any kind of files in remote networks/disks/machines, with very high latencies and low bandwidth or both, and I never had such problem. I could use any program or editor I wanted - and I did so.

The KDE you're running is *installed* on the local machine? Or are you running some sort of thin client, since you mention to have an expensive and "complete" server? Why do you use KDE? Have you tried other alternatives?

Try this: open the terminal (CTRL+ALT+F2, for example) and edit this file with the command "pico" or "evim" or any other editor your system has installed (these two should be present on a Mint, though).

Tell us which commands you did in every step, including logging in (or steps that were done by the system, since it may access networkd files in several different ways).
 
Old 08-19-2015, 08:57 PM   #3
Red Squirrel
Senior Member
 
Registered: Dec 2003
Distribution: Mint 20.1 on workstation, Debian 11 on servers
Posts: 1,336

Original Poster
Rep: Reputation: 54
The OS and Kate is installed locally but the files I'm editing are not local and shared via NFS. If I open a packet sniffer and hold down a key in kate I will see it is generating tons of NFS traffic, because for each character entered it sends data to a .kate-swp file. Is there a way to disable this? There is a check box called "Disable swap files syncing" to disable it but it does not work. In much earlier versions it used to. I don't want to use a command line editor for coding.
 
Old 08-19-2015, 09:55 PM   #4
dedec0
Senior Member
 
Registered: May 2007
Posts: 1,372

Rep: Reputation: 51
Quote:
Originally Posted by Red Squirrel View Post
The OS and Kate is installed locally but the files I'm editing are not local and shared via NFS. If I open a packet sniffer and hold down a key in kate I will see it is generating tons of NFS traffic, because for each character entered it sends data to a .kate-swp file. Is there a way to disable this? There is a check box called "Disable swap files syncing" to disable it but it does not work. In much earlier versions it used to. I don't want to use a command line editor for coding.
I don't use and I don't like KDE. I have used and have seen hundreds of users using Gnome, MATE (and other window managers) in Ubuntu, Mint, Debian, Slackware and a few other distros, always doing NFS file editing (and much more than text editing). I have not seen a single complaint like yours now.

With a high certainty I assume the network traffic you see is for the key strokes being sent to KDE and Kate (and not for its swap file, as you said; there is an option to disable its use, which I believe should work).

If you're using NFS, your files should me mounted in some directory. For example, a text file should have an absolute path similar to:

/mount/DISK_A_PART_C/documents/meeting-conclusions.txt

Please try editing this document with the text terminal and pico editor (it's really easy to use, if you haven't tried it before). You probably won't have any network traffic beyound: the download of file's data, when you open it; the upload of file's data only in the moment(s) you save it.

Last edited by dedec0; 08-19-2015 at 10:01 PM.
 
Old 08-19-2015, 10:08 PM   #5
dedec0
Senior Member
 
Registered: May 2007
Posts: 1,372

Rep: Reputation: 51
Quote:
Originally Posted by Red Squirrel View Post
There is a check box called "Disable swap files syncing" to disable it but it does not work. In much earlier versions it used to. I don't want to use a command line editor for coding.
This could also be a bug in Kate, or in KDE, or in your distro (in this order to search). I think the chance for such problem is lower than the other things I have said to you until now. But, if you think it is a bug you can try to submit a bug.

Many distributions have places where (even newbie) users can report bugs or problems.
 
Old 08-19-2015, 10:44 PM   #6
Red Squirrel
Senior Member
 
Registered: Dec 2003
Distribution: Mint 20.1 on workstation, Debian 11 on servers
Posts: 1,336

Original Poster
Rep: Reputation: 54
I've seen this behaviour in all distros that I've tried. Out of all desktops I prefer KDE, it seems to be the most featured. Lot of stuff is more intuitive like searching for files, or taking screenshots, all little things but it all adds up. So I'm not switching.

I also like the functionality of Kate except for this issue, so I'm not switching. You can't even compare vim to a GUI editor. When coding a large application and you want to be able to have 20+ tabs opened and quickly switch between and do text manipulations like copy and paste and select you need a true GUI text editor, I don't care how 1337 using vim is, it's not not productive for large scale text editing. It's fine for editing the apache config file or DNS zones or making a minor change on live code or other basic edits directly on a server through SSH but does not replace a proper desktop editor.

I've tried plenty of editors but they all fell short of my needs. Though I just found through a more intensive google search that when it worked, that was actually considered a bug. Now they "fixed" it but it made this problem:

https://bugs.kde.org/show_bug.cgi?id=309751
 
Old 08-20-2015, 08:25 AM   #7
norobro
Member
 
Registered: Feb 2006
Distribution: Debian Sid
Posts: 792

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
@Red Squirrel - I'm with you on KDE and Kate although I have had a lot of problems upgrading to Plasma5.

Could this be your fix? https://bugs.kde.org/show_bug.cgi?id=349893
 
Old 08-20-2015, 10:29 AM   #8
dedec0
Senior Member
 
Registered: May 2007
Posts: 1,372

Rep: Reputation: 51
Don't use this tone

Quote:
Originally Posted by Red Squirrel View Post
I've seen this behaviour in all distros that I've tried. Out of all desktops I prefer KDE, it seems to be the most featured. Lot of stuff is more intuitive like searching for files, or taking screenshots, all little things but it all adds up. So I'm not switching.

I also like the functionality of Kate except for this issue, so I'm not switching. You can't even compare vim to a GUI editor. When coding a large application and you want to be able to have 20+ tabs opened and quickly switch between and do text manipulations like copy and paste and select you need a true GUI text editor, I don't care how 1337 using vim is, it's not not productive for large scale text editing. It's fine for editing the apache config file or DNS zones or making a minor change on live code or other basic edits directly on a server through SSH but does not replace a proper desktop editor.

I've tried plenty of editors but they all fell short of my needs. Though I just found through a more intensive google search that when it worked, that was actually considered a bug. Now they "fixed" it but it made this problem:

https://bugs.kde.org/show_bug.cgi?id=309751
Your arguments about Kate, compared with any other editor, including Vim, simply are not true at all, not even close. They are in fact absolutely wrong, when you compare your problems, your descriptions and your needs with the factory behaviour of most other existing text editors, in any operating system with a graphical interface.

But your tone of speech is simply sickening.
 
Old 08-20-2015, 04:19 PM   #9
Red Squirrel
Senior Member
 
Registered: Dec 2003
Distribution: Mint 20.1 on workstation, Debian 11 on servers
Posts: 1,336

Original Poster
Rep: Reputation: 54
Quote:
Originally Posted by dedec0 View Post
Your arguments about Kate, compared with any other editor, including Vim, simply are not true at all, not even close. They are in fact absolutely wrong, when you compare your problems, your descriptions and your needs with the factory behaviour of most other existing text editors, in any operating system with a graphical interface.

But your tone of speech is simply sickening.
What are you rambling on about?
 
Old 08-20-2015, 04:24 PM   #10
Red Squirrel
Senior Member
 
Registered: Dec 2003
Distribution: Mint 20.1 on workstation, Debian 11 on servers
Posts: 1,336

Original Poster
Rep: Reputation: 54
Quote:
Originally Posted by norobro View Post
@Red Squirrel - I'm with you on KDE and Kate although I have had a lot of problems upgrading to Plasma5.

Could this be your fix? https://bugs.kde.org/show_bug.cgi?id=349893
Hmm that does indeed seem like the issue I'm having. They are marking it as fixed though, so not sure. Distros tend to be behind with what the latest version of programs are though so maybe the fix did not make it in yet. My version is 4.14.2. So I'll have to wait and hope that's the case and that it eventually gets pushed to my distro.
 
Old 02-12-2017, 07:08 PM   #11
andrewlorien
LQ Newbie
 
Registered: Jan 2004
Location: sydney .AU
Posts: 25

Rep: Reputation: 15
Update : This is fixed in version 16
And are two new settings: how often to sync, so if you do want a backup but you don't want every keystroke clogging your network, you can just update every x seconds; and sync to a different folder, so if you're working on a remote file you can keep your backup local.
 
Old 02-13-2017, 06:44 AM   #12
Red Squirrel
Senior Member
 
Registered: Dec 2003
Distribution: Mint 20.1 on workstation, Debian 11 on servers
Posts: 1,336

Original Poster
Rep: Reputation: 54
That's great to hear! Those features should help a lot. Syncing to another folder is a nice option too, can have it go to a local disk.

Now in a few years from now maybe it will finally trickle down to distro main packages. :P
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to fix the known_hosts file issue Dominicvirgil Linux - Desktop 14 02-22-2014 08:55 AM
LXer: Kate/KDevelop October Sprint: What's new in Kate LXer Syndicated Linux News 0 11-24-2012 10:20 PM
LXer: Getting Started With the Kate Text Editor: Kate For Coders LXer Syndicated Linux News 0 04-01-2009 11:40 PM
Kernel Panic-not syncing: mm/swap.c nayabingi Linux - General 2 05-02-2007 06:14 PM
HELP! Swap file issue Steave Linux - General 3 09-16-2001 03:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration