on PDAs
Kjetil Jacobsen < kjetilja@stud.cs.uit.no >
Dag Johansen <
dag@cs.uit.no >
Department of Computer Science, University of Troms, NORWAY.
This work was supported by NSF (Norway) grant No. 17543/410 and 111034/410.
Time (milliseconds)
80
60
50 60
40
40
30
20
20
10
0 0
1024 8192 32768 1024 8192 32768
Briefcase size (bytes) Briefcase size (bytes)
The Windows CE operating system has support for 4.5.1 TACOMA Lite API Experiments
processes and threads, similar to Windows NT. Ac-
cordingly, we have made the rewall design more ad- The experiment system conguration consists of Win-
vanced than for the PalmOS rewall. A separate dows CE running on a HP320LX/4MB, and PalmOS
thread from a static thread pool is created each time running on a PalmPilot Pro/1MB.
a remote agent migrates to the rewall. As soon as An expensive sub-step of the meet operation is the
the thread is allocated, the rewall is ready to service briefcase marshaling. We measured the performance
another request. A consequence of the multithreaded of marshaling and unmarshaling briefcases, with re-
rewall, is that several agents may operate simultane- sults displayed in gure 1 and 2, respectively. The
ously. Windows CE marshaling and unmarshaling is much
faster than on the PalmOS, especially when briefcases
The thread reads the briefcase from a socket, and are large. Considering the performance dierence be-
stores it in the le system. Next, the target agent tween the MC68328 in the PalmPilot and the SH3 in
is created as a separate process that reads the stored HP320LX, this is not surprising. The PalmOS also
briefcase, and performs the requested service. If the triggers a call to compact the heap every time a large
meet is synchronous, the target agent updates the
block of memory, typically beyond 1KB, is requested
briefcase stored in the le system, before terminating for allocation. Likewise, allocating memory blocks of
and returning control to the rewall process. Con- sizes larger than 1KB is expensive on Windows CE.
versely, if the meet is asynchronous, the target agent We assume this is also due to an increased frequency
terminates without any updating operations. of heap compaction.
We could have used the built-in database in Win- The performance of the meet operation has been di-
dows CE for passing briefcases among the agents and vided into one experiment for a local meet (table 2)
the rewall. The le system approach, however, makes and one for a remote meet (table 1). We have varied
it possible for users to inspect the briefcases that have the briefcase size to get an indication of the perfor-
been received by the rewall, using the standard Win- mance impact this parameter impose on a meet. Fig-
dows CE le explorer. ure 3 lists the steps involved in the experiments.
Agent Firewall Step 1 2 3 4 Total
meet 9600 baud 247 2188 9692 254 12381
19200 baud 247 2188 5676 168 8279
3. fetch briefcase from network
1. marshal briefcase