/srv/irclogs.ubuntu.com/2017/06/10/#ubuntu-server.txt

Freemonhello05:33
Freemondid anyone try to install phantheon desktop on server 17 ?05:34
=== ashleyd is now known as ashd
lordievader[m]Good morning09:35
obinoobHi, need to set SET explicit_defaults_for_timestamp=1 but I can find a way, I'm on ubuntu server mysql 5.5.5509:56
sarnoldobinoob: this looks like it was introduced in 5.6.6 https://dev.mysql.com/doc/refman/5.6/en/server-system-variables.html#sysvar_explicit_defaults_for_timestamp10:00
obinoobsarnold: can I upgrade mysql without loose my data?10:01
sarnoldobinoob: it looks like mysql-5.7 is in main in 16.04 LTS10:04
sarnoldobinoob: I see many package upgrade failures every release -- it feels like the package management scripts are a bit brittle, so if you've done anything out of the ordinary to your configuration it might take some work to untangle it10:05
sarnoldobinoob: and of course backups are always a good idea10:05
obinoobno i didn't did anything special to my system is pretty much stock10:06
obinoobI will follow this tutorial is based on digital ocean https://askubuntu.com/questions/750498/mysql-5-5-update-to-mysql-5-710:06
sarnoldobinoob: if you do that you're on your own for security updates -- be sure to keep up with those every two months.10:07
obinoobsarnold: so whats my best shot here?10:08
sarnoldobinoob: I'd be inclined to upgrade to 16.04 LTS. The worst of the bugs have probably been shaken out of it by now :)10:08
obinoobsarnold: well I've a lot of server configuration done DNS DHCP, OPENVP, APACHE, PHP etc not sure ...10:09
sarnoldobinoob: if you'd rather use mysql straight from oracle, you can give those a try, but it may not be easy to return to using ubuntu-provided packaging10:09
sarnoldaha, yeah, 16.04 LTS's php is php7. A huge amount of php software is still stuck in 5.3 days..10:09
obinoobI'm running php7.1 here from ondreij I guess...10:10
obinoobanyway I will probably upgrade to a stable release in future but for now got to solve this ET explicit_defaults_for_timestamp=110:11
sarnoldbed time here, good luck :) sorry I can't be more specific, I'm not sure about most of these things10:11
sarnoldi'm happy enough to not need to tend mysql or php :)10:11
obinoobwhere are you?10:12
obinooboceania?10:12
obinoobjapan?10:12
obinooblol10:12
obinoobok thank you very much10:12
sarnoldportland, oregon, usa10:12
sarnoldnn :)10:13
obinoob;)10:13
=== JanC_ is now known as JanC
supercoolHello all!21:10
supercoolI am running a Ubuntu server very fast and the other is just not. I was checking with top and I see one is using swap memory and the second is not.21:10
supercoolMy question is how do I turn swap memory on?21:11
supercoolIs it even possible?21:11
genii!swap21:16
ubottuswap is used to move unused programs and data out of main memory to make your system faster. It can also be used as extra memory if you don't have enough. See https://help.ubuntu.com/community/SwapFaq for more info21:16
jellysupercool, does the second use none, or have none configured at all?21:24
supercooljelly: I already set it to 1GB21:45
supercoolThe thing is I have a processo running that in a few minutes fallows from 100% CPU to 17%... It used to be 17% all the time.21:45
supercoolI think it is related to swap disk now. First there where no swap disk.21:46
supercoolNow the disk gets filled to quick perhaps?21:46
supercoolI set a 1GB swap and it rolds 20secs with full working CPU 100%, then it drops to 17% more or less.22:05
supercoolNow I set a swap of 4GB and it took 1 minute with 100% CPU22:06
supercoolNow it finally drop to 28% more or less.22:06
supercoolI wonder if I can set something to recicle or something like that the swap partition22:06
supercoolMaybe this application is just filling it22:07
supercoolAny ideas please?22:07
tomreynsupercool: this sound slike you need to debug the application.22:41
tomreynexamining why swap grows rapidly on OS level is not really possible, since it's processes demanding it and that's all you'll find out.22:42
supercooltomreyn: is there a way to confirm this application is using too much swap?22:43
supercooljust a basic level, as user22:43
supercoolwell, besides what I am doing of course22:43
supercoolWhat else could be dropping down the CPU speed like that?22:44
tomreynsupercool: there is no reliable way to determine swap allocation by process, but the *2nd* answer here has something which *may* give a good enough hint https://stackoverflow.com/questions/479953/how-to-find-out-which-processes-are-swapping-in-linux22:48
tomreynyou may also wish to look at iotop22:49
supercoolchecking...22:50
tomreyni.e. you need to find out what is your bottleneck. often the thing which is the boittleneck causes other perfomance indicators to change as well. but you need to identify the root cause.22:51
supercoolThe thing is this same application runs at two different systems22:52
supercoolOne runs it per hours all right22:52
supercoolThe other got stuck in 1 minute22:52
tomreynhigh disk io can result in elevated cpu overhead (e.g. if you have software storage encryption). ram allocation spikes can cause high disk i/o due to swap configuration and  and swapiness.22:52
tomreynand the application work load is the same on both for sure?22:53
supercoolThats why I thought it could be something system related, you know..22:53
tomreynidentical hardware?22:53
supercooltomreyn: yes22:53
supercoolsame loads22:53
supercooltomreyn: no, very similar in memory and disk I think. I could check that.22:53
supercoolBut somehow the second one got stuck!22:54
tomreynyou should. if hardware is the same, look at firmware. then look at hardware health, hwere possible (e.g. S.M.A.R.T. and the like)22:55
supercoolhow can I list the users list from the users listed on top command?22:55
tomreynalso check kernel messages / logs, i.e. /var/log/dmesg + /var/log/syslog22:56
supercoolthe top command is saying there are 11 users at one system22:56
tomreynw, who, last22:56
supercoolOk22:56
tomreyn /var/log/auth.log also22:56
* tomreyn bbl22:57
supercoolhow about the memory being used22:58

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!