Going to Need Help

Experiencing technical difficulties? Think you've found a problem with PokerTracker 3? Report it here.

Moderator: Moderators

Going to Need Help

Postby PJs Ronin » Sat Apr 09, 2011 3:01 am

I've decided to take the plunge and upgrade my system... not hardware though. I'm currently running Ubuntu 8.04LTS with postgres 8.3.14 and then a VirtualBox VM into which I have Win XP Home, PT3 and the poker clients. I intend to keep the VM side of the house the same, although I understand I might/will have to rebuild the VM unless I can figure out a way of transferring the image... more later. One reason for doing this is that PT3 is slower than the second coming of the Almighty and I have a feeling a lot of the slowdown might be coming from the Linux side, or at least the way the Linux side is handing the VM and thereby PT3.

Anyway, I'm presently installing Ubuntu 10.04LTs and getting that set up the way I like it so I have a little time on my hands... besides, kraada (who I believe is a Linux guru) is probably asleep right about now. So, here's a couple of questions for the boffins b4 I get too far down the track. btw, I'm 32 bit o/s across the board, Core two Duo 2.8GHz, 4Gb RAM, 250Gb 7200rpm primary HD (contains pretty much everything) and 500Gb 7200rpm secondary HD (contains HHs, most of my non-poker data and acts as a common area between Linux and Windoze.).

First. Is prolly a good opportunity to upgrade postgress from 8.3.14 to something with more bang. What version do you recommend? I can, if necessary, import all data fresh from HHs but that would mean I would need to re-detect all my MTT/SnG types and make manual changes.... PT3's auto-detect feature is good, but it's still a work in progress and for me is only about 60% successful If possible I would prefer to get the data from my 8.3 db into whatever version of postgres you recommend. Suggestions?

Second. I've read the FAQs on tweaking postgres and as expected found that most of the info refers to Windoze machines. The small amount of Linux info tends to take a lot for granted and jumps from the big bang straight to the 18th century. I need something more defined, like exactly where do the config files live? is the stack builder available for the Linux version of postgres. Time to show off your expertise kraada to a grateful audience :)

I'm going to have a lot more questions as I pursue this, but if I can get some guidance on the matters raised I'd be happy as a clam.
PJs Ronin
 
Posts: 978
Joined: Fri Dec 25, 2009 11:55 pm

Re: Going to Need Help

Postby WhiteRider » Sat Apr 09, 2011 4:18 am

Kraada isn't here today AFAIK, but I'm sure he'll get back to you when he reappears.
For now.. If you want to upgrade to a newer version of PostgreSQL you may as well go straight to 9. PT3 doesn't officially support it yet, but several of our team are using it (myself included). The biggest performance improvement comes from using the 64-bit version, but you should still get some improvement with the 32-bit version, over 8.3.
To update you'll need to make a Backup of your databases using your current version and then install the new PostgreSQL version and restore from your backup. Unless you need to run both versions of PostgreSQL at the same time you will probably find it easiest to stop 8.3 and then install 9 on the same port (5432). You will then only be able to run one or the other, but you won't need to uninstall 8.3 until you're sure you have your databases working in 9, and you'll be able to switch between them as needed.
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: Going to Need Help

Postby tarix » Sat Apr 09, 2011 4:55 am

WhiteRider wrote:If you want to upgrade to a newer version of PostgreSQL you may as well go straight to 9. PT3 doesn't officially support it yet, but several of our team are using it (myself included). The biggest performance improvement comes from using the 64-bit version, but you should still get some improvement with the 32-bit version, over 8.3.


We fix bugs for pg9 and it is my primary version on both platforms now. We don't install it by default but at this point we both support it and recommend it. Upgrading to the 64bit version is definitely worth it.

If you use VMware then you can just copy your VMs over. I've done it cross platform as well so you won't have any problems just tell VMware it was moved and not copied.

The Linux stuff I will leave to kraada. :D
tarix
Developer
 
Posts: 3760
Joined: Tue May 20, 2008 2:49 pm

Re: Going to Need Help

Postby kraada » Sun Apr 10, 2011 8:32 am

You were right PJs, I was asleep :)

On Ubuntu 10.04 LTS the config files for postgres live in /etc/postgresql/VERSION/main - so with your 8.3 install it'll be /etc/postgresql/8.3/main/ - you'll find pg_hba.conf and postgresql.conf there.

Side note: if you're ever looking for something in linux, at the command line use the locate command - it's awfully handy (for more information on how to use it, type 'man locate' on the command line, without the quotes of course).

PostgreSQL 9.0 is out there for 10.04 LTS and the config files will be in /etc/postgresql/9.0/main/. I say this of course because I run 10.04 LTS and that's where those configs are for me :)

All of the options in postgres.conf are the same in Linux as they are in Windows so the actual changes will be identical. You will likely need to edit sysctl.conf as explained in the bottom of the tutorial but I hope those directions are clear enough - if not let me know at what point you're getting stuck. Mostly all you need to do is open up the config file and locate and change a few text entries - I'm sure you can do this :)

Regarding performance, I'm not seeing problems with PT3 but my system is a little beefier than yours - with a quad core and 8G ram - so that may be playing a role. You could also try VMWare Player though - I've been a VMWare user for a while now and always been very happy with it.

Also, when you upgrade PostgreSQL, if you use pg_dump to dump the databases from the old version, then pg_restore to get them into the new version, you won't need to reimport anything. You can also do this via PGAdmin if you find that easier than command line stuff, though - a tutorial on that can be found here - it works just the same in Linux as it does in Windows.

Oh one more thing that will probably help you: edit /etc/sysctl.conf and add the following lines at the bottom:
vm.overcommit_memory = 2
vm.dirty_ratio = 10
vm.dirty_background_ratio = 5

Then after saving it run sysctl -p as root (or through sudo) - that will change slightly the way that the operating system handles writes to your hard drive and it should improve things a little for you also.

If there's anywhere else in particular you're stuck just let me know and I'll be glad to help out :)
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: Going to Need Help

Postby PJs Ronin » Sun Apr 10, 2011 7:59 pm

Whoo hoo... I knew you guys would come thru for me. Is early AM Monday here and I've only had 1 cup of coffee so need to clean myself up b4 I tackle your suggestions.

I've got 10.04LTS installed now, along side 8.04LTS (this was sooooo easy to do) so that I can go back and forth as I remember "oh yeah, I need to grab those files too..." and have already noticed an increase in speed. I've already upgraded the VBox from V3 to V4 and 'imported' my old V3 guest image so that PT3, the poker clients etc are up and running. Btw, V4 would not import the V3 image so I had to go the import/export route... just a FYI in case anyone else is going to do this.

Time to get postgres 9 installed on both sides.. Linux and XP :)
PJs Ronin
 
Posts: 978
Joined: Fri Dec 25, 2009 11:55 pm

Re: Going to Need Help

Postby WhiteRider » Mon Apr 11, 2011 3:35 am

That sounds good! :-)
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: Going to Need Help

Postby PJs Ronin » Mon Apr 11, 2011 7:49 pm

Well, spent yesterday doing the same thing over and over all because I forgot a little pre-planning and didn't read all the pop-up messages during the 10.04 installation. Also found that the tutorial on Postgress (http://www.pokertracker.com/forums/view ... 45&t=10393) that talks about:
Launch the "Application Stack Builder"
Select your PostgreSQL Database Server and click 'Next'.
Expand "AddOns" and check "EnterpriseDB Tuning Wizard
Download the tuning wizard by selecting your country and continuing
Continue through the end of installation and ...

needs to be reworded for v9 of Postgres. You now need to be registered at the Postgres site and the tuning wizard now lives in a different part of the options list... sorry, didn't get all the details.

Current situation is that Postgress is installed and running on the Linux side, I've got the Win XP guest up and running and have installed Postgress 9 there as well but with the service de-activated. Am trying to link between Win XP and the Linux Postgres service but not having much luck. Will need to work my way throiugh the tutorial again to see what I've missed. Oh yeah, both the Linux side and the Win XP side can see the common swap partition so there is a connection.

Back to the salt mine.
PJs Ronin
 
Posts: 978
Joined: Fri Dec 25, 2009 11:55 pm

Re: Going to Need Help

Postby kraada » Mon Apr 11, 2011 9:21 pm

As a Linux user you should be willing to edit some configuration files - it makes your life much easier :)

In order to make PostgreSQL accessible via the network you need to edit postgres.conf and set listen_addresses = '*' and make sure there's an entry in pg_hba.conf for the LAN address of your virtual machine's subnet (if Windows is in a VM, if it's just on a different machine, then just your local subnet is good). For more on that, see this tutorial - the file locations are different of course but the changes are the same.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: Going to Need Help

Postby PJs Ronin » Mon Apr 11, 2011 9:57 pm

kraada wrote:As a Linux user you should be willing to edit some configuration files - it makes your life much easier :)


Please to stop throwing challenges my way :)

Ok... I got something wrong here atm and I think it's got something to do with the second part of your post (pg_hba.conf) but I need to go out for a couple of hours which means it will be way past your bed time b4 I get back.

Another thing... the original PT3 config in the XP VM had it looking for a db on the linux side. That location/db is no longer available (long story, short version I screwed up) but I think PT3 is 'hard wired' to look for it there. Atm, I have turned off postgres on the Linux side and am running the service on the XP side just to see if I can get a db created, but PT3/Postgres still won't play ball... PT3 complains about postgres not answering.... and I checked that the XP postgres service is running and I made the changes suggested in the "how to" on this.

Meh, I need coffee and some time away from this screen... bbs.
PJs Ronin
 
Posts: 978
Joined: Fri Dec 25, 2009 11:55 pm

Re: Going to Need Help

Postby kraada » Mon Apr 11, 2011 10:00 pm

PT3 looks for the database(s) listed in the PokerTracker.cfg file (in XP that's in C:\Program Files\PokerTracker 3\Data\Config\ by default) - if you blank the entire [Databases] section PT3 will forget whatever databases it had configured and ask you to start fresh next time you boot it up.

(And I only challenge you because I know you're up to it ;))
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Next

Return to Technical Support / Bug Reports [Read Only]

Who is online

Users browsing this forum: No registered users and 0 guests