Annoying bug in OS X Mavericks causes dead slow performance of Terminal.app

Un article de Informaticiens département des sciences de la Terre et l'atmosphère
Aller à: navigation, charcher
In OS X 10.9 Mavericks, Apple introduced very annoying bug that causes temporary freezes every 30 seconds for everyone who is using Terminal.app (so people who work a lot over ssh for example). I have been working with apple on fixing this but, from unknown reason, they did not fix it since it was reported   (17-Jul-2013, case ID: 14467127 dear Apple…).
Reason of this issue is that session state save is very slow compared to 10.8 and it is related to saving state of application. When you have multiple tabs opened in Terminal.app and lot of text in them, OS X begin to struggle when there is time to save the app state (and yes that happens every 30 seconds).
Solution to that is very simple - you need to disable that feature, there is simple command for this:
defaults write Terminal.app NSQuitAlwaysKeepsWindows -int 0
just copy&paste to terminal.app and restart application. You will immediately feel the difference.
Worth of noting is that this issue is visible only on Mac that is running standard HDD, this seems not affect SSD drives - my Macbook Air do not suffer from this - probably issue is still there but since SSD have performance from different planet compared to old HDD - you just don’t feel it.
https://discussions.apple.com/thread/5483424
Solution trouvée : 
#sudo sysctl -w net.link.ether.inet.arp_unicast_lim=0
C'est la gestion de bande passante, qui joue des tours en mode terminal. Un bogue de Mavericks.