Litecoin cgminer configuration for Radon HD 7750 and Ubuntu 13.04

Ubuntu 13.04 includes fglrx 9.1.11 (fglrx-updates package) which appears to behave very differently when it comes to scrypt litecoin mining, especially for my Gigabyte Radeon HD 7750 cards. This shell script shows my best configuration so far, yielding 150 khash/s per card, which is a net loss of 20 khash/s compared to the 9.0.2 drivers.

If you have more than one card, all the cards may run within the same cgminer instance, I’ve seen no improvement in performance by running multiple instances. Another difference from  the 9.0.2 drivers in Ubuntu 12.04 and 12.10.

Should you happen to figure out a configuration that produces any more than 150 khash, I would sure love to hear about it!

export GPU_USE_SYNC_OBJECTS=1
export GPU_MAX_ALLOC_PERCENT=100
./cgminer -o stratum+tcp://localhost:3333-u user -p password -g 2 –shaders 2048 -I 11 –scrypt –gpu-fan 75 –gpu-engine 880 –gpu-memclock 1125

 

 

Posted in Bitcoin, Technical | Tagged , , , | Leave a comment

Disable guest acount / session in Ubuntu 13.04 Raring

In Ubuntu 13.04 a guest session is available by default, letting random users access the computer to run a web browser and such. This may not be something you want to be available on a business pc, or worse a system or network administration workstation.

Anyway, here’s how to get rid of it:

sudo su -
echo “allow-guest=false” >> /etc/lightdm/lightdm.conf

Posted in Technical, Ubuntu | Leave a comment

Bitcoin and Litecoin prediction

My very first prediction for crypto-currency: By end of business on the 29th we should see BTC near 150 USD and LTC somewhere below 0.03 BTC. Let’s see how it goes!

Posted in General | 1 Comment

Hunting heads in headers

If you happen to have any technical skill or experience worth mentioning, it’s hard to avoid the recruiters and employment agencies these days. Still, I was surprised when I was troubleshooting a WordPress site and happened to come across this HTTP header:

X-hacker: If you’re reading this, you should visit automattic.com/jobs and apply to join the fun, mention this header.

Posted in General | Leave a comment

Initial performance on Amazon Oracle RDS Micro Instance

The variations I found yesterday lead me to investigating the Amazon Oracle RDS performance further. This morning I created a new Oracle SE1 micro instance on Amazon and ran regular AS3AP benchmarks throughout the day from an EC2 instance.

I ran the same tests on a 2 node VPS.net running Oracle XE on CentOS. The VPS instance is comparable to the RDS instance in price and specifications, but does not benefit from being in the same cloud as the EC2 testbed.

To begin with, the RDS instance gave about half the throghput of the VPS instance, despite being at a closer proximity to the testbed. And then it all turned for the worse. Pretty soon the RDS was performing close to a permille (1/1000) of the initial troughput and it did not recover within the 12 hour window of my test.

I have asked the Amazon AWS support team for comment or advice, but have yet to receive a reply.

AS3AP Performance

 

After some further analysis, I found that Oracle AMM over time decided to reduce the buffer cache in favor of other resource pools. The micro instance that supposedly sports 630 MB memory ended up with a buffer cache of a mere 33 MB out of a max_memory_target of 312 MB.

It further appears that the RDS instances does not have any filesystem or O/S level caching, and thus completely depend on the buffer cache to reduce physical I/O. As a result the workload became I/O bound, and totally trashed the throughput.

The VPS.net instance had a very similar memory configuration, but was supported by a 700 MB filesystem cache – enough to prevent most of the physical I/O seen on the RDS instance.

On the good side, the RDS micro instance reported a fairly stable I/O throughput of about 250 read operations per second, which is more than I expected to see on this instance size without provisioned IOPS.

Posted in Oracle, Technical | Tagged , , , , , , | Leave a comment

Huge performance variations on Amazon RDS

Found some weird performance differences while running some tests on Amazon RDS for Oracle Database.

In particular, a medium instance with provisioned IOPS was underperforming to an extent where I decided to run some new benchmarks. These identical test runs  were done from the same testbed, a medium EC2 instance. There was no other load on the RDS instances.

Instance size: Medium
Storage: 100 GB
Provisioned I/O: 1000 IOPS
Cost: $329/month
AS3AP performance: 6 tps

Instance size: Micro
Storage: 20 GB
Provisioned I/O: none
Cost: $28/month
AS3AP performance: 70 tps

As you can see, the micro instance was more than ten times faster than the underperforming medium instance, despite going for less than a tenth of the price.

To be fair, other RDS instances with the exact same medium configuration listed above have shown 200-300 tps in previous identical tests.

Posted in Oracle, Technical | Tagged , , , | Leave a comment

New SSD: Samsung SSD 840 Pro 256GB

I had to replace a Transcend SSD720 that failed and ended up with a Samsung SSD 840 Pro series drive of 256 GB for my Lenovo ThinkPad X1.

Installation was uneventful and the performance is looking good.

AS SSD Benchmark

AS SSD Benchmark 1.7.4739.38088
------------------------------
Name: Samsung SSD 840 PRO Seri
Firmware: DXM0
Controller: iaStor
Offset: 81920000 K - OK
Size: 238,47 GB
Date: 31.01.2013 11:16:11
------------------------------
Sequential:
------------------------------
Read: 517,53 MB/s
Write: 494,05 MB/s
------------------------------
4K:
------------------------------
Read: 25,84 MB/s
Write: 48,51 MB/s
------------------------------
4K-64Threads:
------------------------------
Read: 378,47 MB/s
Write: 292,42 MB/s
------------------------------
Access Times:
------------------------------
Read: 0,126 ms
Write: 0,070 ms
------------------------------
Score:
------------------------------
Read: 456
Write: 390
Total: 1086
------------------------------

 Crystal DiskMark

CrystalDiskMark 3.0.2 Shizuku Edition x64 (C) 2007-2013 hiyohiyo
 Crystal Dew World : http://crystalmark.info/
* MB/s = 1,000,000 byte/s [SATA/300 = 300,000,000 byte/s]

Sequential Read : 505.581 MB/s
Sequential Write : 488.467 MB/s
Random Read 512KB : 430.731 MB/s
Random Write 512KB : 449.838 MB/s
Random Read 4KB (QD=1) : 29.853 MB/s [ 7288.4 IOPS]
Random Write 4KB (QD=1) : 57.675 MB/s [ 14080.9 IOPS]
Random Read 4KB (QD=32) : 393.184 MB/s [ 95992.2 IOPS]
Random Write 4KB (QD=32) : 87.082 MB/s [ 21260.2 IOPS]

Test : 1000 MB [C: 66.8% (107.1/160.3 GB)] (x5)
Date : 2013/01/31 11:13:27
OS : Windows 7 Ultimate Edition SP1 [6.1 Build 7601] (x64)
Posted in General | Leave a comment

HBO Nordic? Yet another pile of .. something

No content, no functionality, no linux, no devices. Looks like Viaplay just happened all over again, just worse.

While HBO Nordic does sport a few interesting titles like Game of Thrones, the combined package of content does not appear to fully defend the subscription price when compared to services like Netflix.

Surprisingly, the service only provides a very basic interface to let you browse generic recommendations or all available titles. There is no rating system, personalized recommendations or social network integration. I didn’t even see a way to browse by genre or category.

I assume that we will continue to see changes to platform and device support. So far I’ve been unable to find a solution for my Samsung or LG TV’s, or any of my TV connected devices like Apple TV, Wii, Xbox 360 or Popcorn Hour.  iOS and Android apps became available just before the holidays, although the apps are  still a very buggy, and the iOS app does not support AirPlay. There appear to be no support for PC’s running Linux.

If it’s all right with everyone, I think I’ll just stick with Netflix for the time being.

Posted in General | Leave a comment

Installing MediaWiki 1.20.2 with Oracle 11g Express Edition

I encountered and worked around a couple of issues when installing MediaWiki 1.20.2 with Oracle 11g Express Edition 11.2.0.2.0 as the database back-end. The solutions below can be also applied to MediaWiki 1.20.0 and 1.20.1.

I did the installation on top of Zend Server Community Edition, saving me the trouble of tinkering too much with apache, php and oracle drivers.

First out, the web installer did not accept the new Easy Connect string format, even though the help text encouraged such use. The Zend Server environment doesn’t play well with TNS based connect strings these days, so I worked around this by commenting out the validation code on line 90 and 91 includes/installer/OracleInstaller.php:

[roy@lonora02 installer]# diff OracleInstaller.php.orig OracleInstaller.php
90,91c90,91
< } elseif ( !preg_match( '/^[a-zA-Z0-9_\.]+$/', $newValues['wgDBserver'] ) ) {
< $status->fatal( 'config-invalid-db-server-oracle', $newValues['wgDBserver'] );
---
> // } elseif ( !preg_match( '/^[a-zA-Z0-9_\.]+$/', $newValues['wgDBserver'] ) ) {
> // $status->fatal( 'config-invalid-db-server-oracle', $newValues['wgDBserver'] );

The installer now accepted localhost/XE:POOLED quite nicely for my Oracle 11g XE database with Database Resident Connection Pooling (DRCP) enabled.

After a couple of attempts, I found that the installer failed to create a database user, so I created a user manually, I suppose this is a good practice in any event, based on maintenance/oracle/user.sql

[oracle@lonora02 ~]$ sqlplus "/as sysdba"

create user wikiuser identified by SECRET default tablespace users temporary tablespace temp quota unlimited on users;

grant connect,resource to wikiuser;

grant alter session to wikiuser;

grant ctxapp to wikiuser;

grant execute on ctx_ddl to wikiuser;

grant create view, create synonym, create table, create sequence, create trigger to wikiuser;

After installation successfuly completed, I found a bug that was introduced in MediaWiki 1.20.0, where an array would incorrectly translate to a variable thus breaking a lot of SQL queries and making the wiki all but unusable. Luckily, I was able to borrow an existing workaround from the Postgres database script and modified includes/db/DatabaseOracle.php to implode the array to a comma separated list before passing it on to the variable. I found that this problem occurred two places, around line 1165 and 1168.

[roy@lonora02 db]# diff DatabaseOracle.php DatabaseOracle.php.orig
1165,1168c1165
< $ob = is_array( $options['GROUP BY'] )
< ? implode( ',', $options['GROUP BY'] )
< : $options['GROUP BY'];
< $preLimitTail .= " GROUP BY {$ob}";
---
> $preLimitTail .= " GROUP BY {$options['GROUP BY']}";
1171,1174c1168
< $ob = is_array( $options['ORDER BY'] )
< ? implode( ',', $options['ORDER BY'] )
< : $options['ORDER BY'];
< $preLimitTail .= " ORDER BY {$ob}";
---
> $preLimitTail .= " ORDER BY {$options['ORDER BY']}";

I really think it’s great that the MediaWiki team has taken the time to support Oracle database, not too many open source products like this do. The bugs I found have been reported and hopefully these issues will be all fixed by the next stable release.

Posted in Oracle, PHP, Technical | 1 Comment

Open source software alternatives for Oracle database

Here’s a very short list of open source server software that I have found to run smoothly with an Oracle database back-end. All will work with the free Express Edition.

Blog or Photoblog

While a bit of an overkill for a personal or small organization blog,  Drupal is just about the only tool I have found that works well with an Oracle back-end. Combined with the right theme and an image gallery, it should also be able to run a photoblog.  I really wish someone would adapt tools like Pixelpost and WordPress which both make it very easy to get a good looking site running. There was a project named orablog that looked promising, but appears to have been abandoned years ago.

Forum

I was genuinely surprised by how easy it was to get up and running with phpBB  on Oracle 11g XE.

Website

Whether you are small brochure style website or an elaborate e-commerce site, Drupal should be able to accommodate most or all of your requirements. Although a bit of an overkill, it can even be used for something like a personal blog or photoblog.

Wiki

Mediawiki which runs Wikipedia supports Oracle database. See my blog post on Installing MediaWiki 1.20.2 with Oracle 11g Express Edition to work around a couple of issues I had with the current release.

Posted in Oracle, Technical | Tagged , , | Leave a comment