Permalink
Browse files

Remove native library references

  • Loading branch information...
1 parent 2623530 commit 5bf88e03cfb3c594d9c2fbef9bfab6866122bf39 Daniel Gómez Ferro committed Mar 21, 2013
View
@@ -33,15 +33,8 @@ for j in ../lib/*.jar; do
CLASSPATH=$CLASSPATH:$j
done
-if which greadlink; then
- READLINK=greadlink
-else
- READLINK=readlink
-fi
-
tso() {
- export LD_LIBRARY_PATH=`$READLINK -f ../lib`
- exec java -Xmx1024m -cp $CLASSPATH -Domid.maxItems=100000 -Domid.maxCommits=100000 -Djava.library.path=$LD_LIBRARY_PATH -Dlog4j.configuration=log4j.properties com.yahoo.omid.tso.TSOServer -port 1234 -batch $BATCHSIZE -ensemble 4 -quorum 2 -zk localhost:2181
+ exec java -Xmx1024m -cp $CLASSPATH -Domid.maxItems=1000000 -Domid.maxCommits=1000000 -Dlog4j.configuration=log4j.properties com.yahoo.omid.tso.TSOServer -port 1234 -batch $BATCHSIZE -zk localhost:2181
}
tsobench() {
View
@@ -48,6 +48,6 @@ log4j.appender.O.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=[%d{HH:mm:ss,SSS}]%5p%6.6r[%t]%x - %C{1}.%M(%F:%L) - %m%n
log4j.appender.O.layout.ConversionPattern=[%d{HH:mm:ss,SSS}]%5p%6.6r[%t]%x - %C{1}.%M(%F:%L) - %m%n
-log4j.logger.com.yahoo.omid.tso.ThroughputMonitor=INFO
+log4j.logger.com.yahoo.omid.tso.ThroughputMonitor=TRACE
log4j.logger.com.yahoo.omid.notifications=TRACE
log4j.logger.com.yahoo.omid.examples.notifications=TRACE
@@ -348,11 +348,11 @@ private void startTransaction() {
return;
if (curMessage == 0) {
- LOG.warn("No more message");
+ LOG.info("No more messages, stopping benchmark");
// wait for all outstanding msgs and then close the channel
// if (outstandingTransactions.intValue() == 0) {
if (outstandingTransactions == 0) {
- LOG.warn("Close channel");
+ LOG.info("Close channel");
channel.close().addListener(new ChannelFutureListener() {
public void operationComplete(ChannelFuture future) {
answer.offer(true);
@@ -68,8 +68,8 @@ public CommitHashMap(int size) {
throw new IllegalArgumentException("Illegal size: " + size);
}
- this.startCommitMapping = new LongCache(size, 2);
- this.rowsCommitMapping = new LongCache(size, 8);
+ this.startCommitMapping = new LongCache(size, 4);
+ this.rowsCommitMapping = new LongCache(size, 32);
}
public long getLatestWriteForRow(long hash) {

0 comments on commit 5bf88e0

Please sign in to comment.