Below is the list of changes that have just been committed into a local
5.1 repository of jonas. When jonas does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html
ChangeSet
1.2109 06/02/22 17:31:52 jonas@eel.(none) +1 -0
Merge joreland@stripped:/home/bk/mysql-5.1-ndb-new
into eel.(none):/home/jonas/src/mysql-5.1-new
storage/ndb/src/kernel/vm/ndbd_malloc_impl.cpp
1.7 06/02/22 17:31:46 jonas@eel.(none) +0 -0
Auto merged
# This is a BitKeeper patch. What follows are the unified diffs for the
# set of deltas contained in the patch. The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User: jonas
# Host: eel.(none)
# Root: /home/jonas/src/mysql-5.1-new/RESYNC
--- 1.6/storage/ndb/src/kernel/vm/ndbd_malloc_impl.cpp 2006-02-22 14:23:50 +01:00
+++ 1.7/storage/ndb/src/kernel/vm/ndbd_malloc_impl.cpp 2006-02-22 17:31:46 +01:00
@@ -619,13 +619,18 @@
int
main(int argc, char** argv)
{
- int sz = 3*32768;
+ int sz = 1*32768;
+ int run_time = 30;
if (argc > 1)
sz = 32*atoi(argv[1]);
+ if (argc > 2)
+ run_time = atoi(argv[2]);
+
char buf[255];
Timer timer[4];
- printf("Startar modul test av Page Manager %dMb\n", (sz >> 5));
+ printf("Startar modul test av Page Manager %dMb %ds\n",
+ (sz >> 5), run_time);
g_eventLogger.createConsoleHandler();
g_eventLogger.setCategory("keso");
g_eventLogger.enable(Logger::LL_ON, Logger::LL_INFO);
@@ -642,7 +647,7 @@
rl.m_curr = 0;
rl.m_resource_id = 0;
mem.set_resource_limit(rl);
- rl.m_min = 32768;
+ rl.m_min = sz < 16384 ? sz : 16384;
rl.m_max = 0;
rl.m_resource_id = 1;
mem.set_resource_limit(rl);
@@ -652,13 +657,13 @@
printf("pid: %d press enter to continue\n", getpid());
fgets(buf, sizeof(buf), stdin);
Vector<Chunk> chunks;
- const Uint32 LOOPS = 100000000;
- for(Uint32 i = 0; i<LOOPS; i++){
+ time_t stop = time(0) + run_time;
+ for(Uint32 i = 0; time(0) < stop; i++){
//mem.dump();
// Case
Uint32 c = (rand() % 100);
- if (c < 60)
+ if (c < 50)
{
c = 0;
}
@@ -694,7 +699,7 @@
}
break;
case 2: { // Seize(n) - fail
- alloc += 32000;
+ alloc += sz;
// Fall through
}
case 1: { // Seize(n) (success)
@@ -750,6 +755,8 @@
};
for(Uint32 i = 0; i<4; i++)
timer[i].print(title[i]);
+
+ mem.dump();
}
template class Vector<Chunk>;
| Thread |
|---|
| • bk commit into 5.1 tree (jonas:1.2109) | jonas | 22 Feb |