*** tpb has joined #tp | 00:00 | |
*** ChanServ sets mode: +o tpb | 00:00 | |
*** mithro has joined #tp | 01:04 | |
mithro | howdy people | 01:05 |
---|---|---|
mithro | dmpayton: ping? | 01:05 |
dmpayton | mithro, pong | 01:05 |
dmpayton | How's it goin'? | 01:06 |
mithro | pretty good | 01:06 |
mithro | handed up all the documentation today | 01:06 |
dmpayton | Fun fun. | 01:06 |
dmpayton | Hey, I've got a question about ubuntu | 01:07 |
mithro | dmpayton: sure, shoot | 01:07 |
dmpayton | though I probably already know the answer | 01:07 |
dmpayton | I run out of memory real fast... I've had to restart atleast once a day, whereas on XP I could sometimes go maybe 3 days before I needed a restart | 01:07 |
dmpayton | I know the biggest offender is FF | 01:08 |
dmpayton | However | 01:08 |
dmpayton | I didn't setup a partition for swap space when I installed ubuntu | 01:08 |
dmpayton | i'm guessing that's where my problem lies? | 01:09 |
mithro | dmpayton: you can create a swap file if you want | 01:09 |
mithro | you shouldn't need to restart | 01:09 |
mithro | just restart firefox | 01:09 |
mithro | btw: how much memory do you have? | 01:10 |
dmpayton | I saw earlier, FF was using almost 155MB | 01:10 |
dmpayton | I have 1GB | 01:10 |
mithro | Res or virtual? | 01:10 |
mithro | my web browser regularly uses about 100Mb | 01:10 |
*** llnz has joined #tp | 01:10 | |
mithro | dmpayton: Linux has to concepts of memory usage | 01:13 |
mithro | dmpayton: Linux doesn't suffer from memory fragmentation as window does | 01:14 |
mithro | s/to/two | 01:16 |
mithro | Virtual and Resident | 01:19 |
dmpayton | Sorry, dog pissed on the rug. >:( | 01:26 |
mithro | dmpayton: :/ | 01:30 |
mithro | Virtual memory, is all memory mapped | 01:31 |
mithro | including things like shared libraries | 01:31 |
mithro | video memory | 01:31 |
mithro | shared memory | 01:31 |
mithro | etc | 01:31 |
mithro | while resident memory is only "real" memory | 01:31 |
llnz | resident memory is the current amount of RAM being used | 01:32 |
dmpayton | Hmm | 01:33 |
mithro | dmpayton: do you want to create a swap file? | 01:35 |
dmpayton | mithro, yeah, I'm googling it now. | 01:37 |
mithro | dmpayton: i can tell you how if you want :P | 01:37 |
dmpayton | mithro, That'll work. :) | 01:37 |
mithro | okay - first you need to create a file | 01:38 |
mithro | you use dd for that | 01:38 |
dmpayton | Okay. | 01:38 |
mithro | sudo dd if=/dev/zero bs=1024 count=1 seek=5242879 of=/swap | 01:44 |
mithro | that will create a 5gb sparse file | 01:45 |
mithro | sudo mkswap /swap | 01:46 |
mithro | that will give it a swap signature | 01:46 |
mithro | opps - turns out you can't use a sparse file | 01:48 |
mithro | sudo dd if=/dev/zero bs=1024 count=2097152 of=/swap | 01:49 |
mithro | that creates a 2gb file | 01:50 |
mithro | sudo swapon /swap | 01:52 |
mithro | swapon -s | 01:52 |
mithro | will give you your swap stats | 01:52 |
mithro | dmpayton: ping? | 01:52 |
dmpayton | mithro, pong | 01:54 |
mithro | dmpayton: you get all that? | 01:54 |
dmpayton | Yep. | 01:55 |
dmpayton | brb | 01:56 |
*** tuna-fish has quit IRC | 01:59 | |
*** tuna-fish has joined #tp | 01:59 | |
mithro | dmpayton: any luck? | 02:05 |
mithro | dmpayton: i ushally go abut 5-6 weeks before having to restart my laptop | 02:13 |
tuna-fish | mithro: what are you running? | 02:14 |
mithro | ubuntu | 02:14 |
mithro | llnz: handed up all the doco for my project today | 02:15 |
mithro | llnz: 100 pages in total | 02:16 |
dmpayton | back | 02:21 |
dmpayton | mithro, I type swapon -s, and it's empty. | 02:21 |
mithro | did you do this | 02:21 |
mithro | sudo swapon /swap | 02:21 |
mithro | ? | 02:21 |
mithro | Filename Type Size Used Priority | 02:21 |
mithro | /dev/sda6 partition 979924 412776 -1 | 02:21 |
mithro | /swap file 1464380 0 -3 | 02:22 |
dmpayton | ah-ha! | 02:22 |
dmpayton | There we go | 02:22 |
mithro | with 1gb, I doubt it will get used much | 02:22 |
dmpayton | well | 02:22 |
mithro | but if you have evolution, open office, fire fox, texmacs and eclipse open at once :P | 02:23 |
dmpayton | Right now, the system monitor is showing 29% used by programs, 66% by cache | 02:23 |
mithro | dmpayton: linux is smart, it'll use any "spare" ram for cache | 02:23 |
mithro | otherwise you have ram sitting there doing nothing | 02:23 |
mithro | which is silly - you paid for the ram so you should use it | 02:25 |
mithro | dmpayton: make sense? | 02:26 |
dmpayton | In linux, what's the difference between memory used by programs and memory used as cache? | 02:27 |
nash | cache can be discarded instantly | 02:28 |
nash | Also note swap (a swap partition anyway) can be used to make room for cache - so your startup code in firefox can be swapped out to make room for cache... | 02:28 |
*** tuna-fish_ has joined #tp | 02:43 | |
*** tuna-fish_ is now known as essipessi | 02:44 | |
*** JLP has joined #tp | 02:48 | |
*** nash has quit IRC | 03:32 | |
llnz | mithro: cool | 03:39 |
mithro | dmpayton: cache memory is just memory used to cache disk data | 03:41 |
*** Demitar has quit IRC | 03:48 | |
*** Demitar_ has quit IRC | 03:48 | |
*** Demitar__ has joined #tp | 03:48 | |
*** Demitar has joined #tp | 03:48 | |
mithro | dmpayton: you shouldn't need to worry about ff using to much memory untill your computer starts swapping | 04:26 |
mithro | what do you care if ff is taking 200mb if you have 600mb free | 04:27 |
llnz | brb, upgrading | 04:42 |
*** llnz has quit IRC | 04:42 | |
*** nash has joined #tp | 04:46 | |
mithro | hry | 04:47 |
nash | heyo | 04:47 |
mithro | s/hry/hey | 04:47 |
nash | I guessed | 04:48 |
mithro | eating dinner :P | 04:48 |
nash | About to here.. just got home | 04:54 |
mithro | off now | 05:02 |
mithro | see ya | 05:02 |
*** mithro has quit IRC | 05:21 | |
*** llnz has joined #tp | 05:21 | |
* llnz ponders | 05:45 | |
*** dmpayton has quit IRC | 06:28 | |
*** JLP has quit IRC | 06:30 | |
*** Demitar__ has quit IRC | 06:49 | |
nash | heyo llnz | 06:57 |
llnz | hi nash | 06:58 |
nash | how is life? | 06:59 |
llnz | not too bad | 07:01 |
llnz | i think i'm getting a nice contract at uni for 4 months | 07:02 |
*** jotham has quit IRC | 07:03 | |
nash | Sweet - your own SoC really | 07:03 |
*** jotham has joined #tp | 07:05 | |
llnz | more like winter of searching aimlessly and smacking head against wall | 07:05 |
llnz | so WoSAaSHAW | 07:06 |
nash | heh | 07:06 |
nash | Sounds just like SoC to me... | 07:06 |
llnz | hehehehe | 07:06 |
llnz | ssshhhhh | 07:06 |
llnz | don't let the students know | 07:06 |
nash | Oops.. sorry... besides DystopicFro isn't around ;-) | 07:06 |
* nash writes some code for a change... for galaxie too ;-) | 07:12 | |
llnz | coool | 07:13 |
llnz | i'm too sick and busy to really write code at the moment | 07:13 |
llnz | maybe next week | 07:13 |
nash | heh - I want to make sure I'm ready when you are are for mtsec ;-) And RFTS | 07:14 |
llnz | hehe | 07:20 |
* llnz wanders off | 07:33 | |
llnz | later all | 07:33 |
*** llnz has quit IRC | 07:33 | |
*** jotham has quit IRC | 07:33 | |
nash | night | 07:34 |
nash | So the question is... wchi tpserver-cpp version to use... | 08:08 |
CIA-2 | nash galaxie * rb5e0687d3d25 /tpe_scheme_guile.c: Add a scheme file | 08:12 |
CIA-2 | nash galaxie * r441beaaf0577 / (7 files in 2 dirs): Merge with git+ssh://nash@tranquillity/home/nash/work/thousandparsec/galaxie | 08:12 |
CIA-2 | nash galaxie * r5978559aa061 /tpe_scheme_guile.c: Merge with git+ssh://nash@tranquillity/home/nash/work/thousandparsec/galaxie#scheme | 08:12 |
CIA-2 | nash galaxie * r56630de0d1fd /Makefile: Add lua5.1 to depends. | 08:12 |
CIA-2 | nash galaxie * re15d93b0ea07 /tpe_scheme_guile.c: Merge with scheme | 08:12 |
CIA-2 | nash galaxie * r1da8091893eb / (Makefile edje/basic-info.edc tpe_gui.c): Merge with git+ssh://baboon/home/nash/work/tranquillity/galaxie | 08:12 |
CIA-2 | nash galaxie * rc18ecf74843b /tpe_gui.c: Fix other conflicts in merge. | 08:12 |
CIA-2 | nash galaxie * rc0b8920f7233 /ai_jones.c: Fix compilation error on TPW type. | 08:12 |
CIA-2 | nash galaxie * rc7afb2ca3776 /galaxie.c: Don't print '(null)' for game name. | 08:12 |
CIA-2 | nash galaxie * r73ee66ffe8d7 /tpe_gui.h: Fix compilation warning. | 08:12 |
*** mithro has joined #tp | 08:17 | |
nash | heyo mithro | 08:21 |
mithro | hey nash | 08:21 |
mithro | handed up my documentation now | 08:22 |
nash | I saw earlier - hit the magic 100 I hear ;-) COngrats | 08:22 |
nash | mithro: Is the battle protocol (to download) documented? | 08:28 |
mithro | actually, kind of | 08:28 |
mithro | it has a dtd | 08:28 |
nash | I meant to get the actual data for a battle from the server? | 08:29 |
nash | mithro: ? | 08:42 |
mithro | nash: checkout the battleviewer repo | 08:42 |
nash | mithro: No, I meant is it documented ;-) Not is there a magic program which does it ... | 08:42 |
mithro | nash: git clone git://git.thousandparsec.net/git/battleviewer.git | 08:43 |
mithro | more BATTLEFORMAT | 08:43 |
mithro | more battle.dtd | 08:43 |
nash | mithro: Yes, but how do you get the data from the server? | 08:44 |
mithro | ahh - you don't :P | 08:44 |
nash | Right... so where does it come from? | 08:44 |
mithro | hrm - i thought there was a get_data frame | 08:46 |
nash | I assume neither server generates the info anyway - right? | 08:46 |
mithro | tpserver-py has a simulator | 08:47 |
nash | So does it generate enough to be useful? | 08:48 |
nash | And does tpserver-py work currently? | 08:48 |
mithro | it can be used stand alone | 08:51 |
nash | Does downloading battle data need to be added to tp04 spec? | 08:51 |
mithro | i'm pretty sure we had thought about it | 08:52 |
mithro | basically you can reference a URL | 08:52 |
nash | I'm sure you did... | 08:52 |
nash | how? the generic ref sys only handles ints | 08:53 |
nash | Anyway - I'm off to bed | 08:56 |
CIA-2 | nash galaxie * r4663dd3ddd19 / (5 files): Work on 'Home' zoom, and a little work in actually using resources. | 08:57 |
nash | Talk to you later.. | 08:57 |
*** Demitar__ has joined #tp | 09:05 | |
*** Demitar is now known as Demitar_ | 09:54 | |
*** Epyon has quit IRC | 11:40 | |
*** Demitar__ has quit IRC | 13:07 | |
*** Demitar__ has joined #tp | 14:33 | |
*** CIA-2 has quit IRC | 15:43 | |
*** nash has quit IRC | 16:59 | |
*** dmpayton has joined #tp | 18:05 | |
*** nash_ has joined #tp | 18:54 | |
*** niphree[AFK] has joined #tp | 19:12 | |
niphree[AFK] | hello | 19:12 |
*** niphree[AFK] is now known as niphree | 19:12 | |
nash_ | heyo niphree | 19:13 |
nash_ | hm.. I have an underscore | 19:13 |
*** nash_ is now known as nash | 19:15 | |
nash | better | 19:15 |
*** mithro has quit IRC | 19:22 | |
*** dmpayton has quit IRC | 19:33 | |
*** CIA-3 has joined #tp | 21:11 | |
*** xdotx has joined #tp | 23:22 |
Generated by irclog2html.py 2.5 by Marius Gedminas - find it at mg.pov.lt!