PHP4b3 RC3 Memory usage

From: Date: Tue, 09 Nov 1999 14:43:11 +0000
Subject: PHP4b3 RC3 Memory usage
Groups: php.version4 
Request: Send a blank email to php-version4+get-6013@lists.php.net to get a copy of this message
Ok ive tried the --disable-inline, and it didnt make as much of a difference as i would hope ... here's a part of a top to show u the situation. (Note this is my testing machine, not production server, incase anyone sees a hole there, it wont work on the actual reviewboard site :P). As you can see the machine has 256 Megs of RAM, and 400something megs of swap space. The CPU is a P III 550. (SCSI disk). With php3 i was able to easely do about 60 clients on this config, and have enough diskcache etc left. Now with php4 and even with the disable-inline, it starts swaping like a madman @ 45 httpd clients. As ull notice on the dump, the CPU can take a lot more (there's a Mysqld running on the same machine btw, doing persistent connections), but the machine is swaping like crazy (30 megs swap used, some of which are mysqld's and httpd's it actualy needs. This causes a severe performance hit!!) without further adue part of the top dump: CPU states: 76.4% user, 7.6% system, 1.3% nice, 14.5% idle Mem: 258192K av, 255424K used, 2768K free, 49168K shrd, 5240K buff Swap: 481940K av, 28960K used, 452980K free 9120K cached PID USER PRI NI SIZE RSS SHARE STAT LIB %CPU %MEM TIME COMMAND 2236 httpd 7 0 6624 6532 1212 D 0 3.3 2.5 0:00 httpd 2230 httpd 7 0 6748 6652 1160 S 0 2.8 2.5 0:00 httpd 2183 httpd 15 0 6448 6232 908 D 0 2.7 2.4 0:00 httpd 2186 httpd 15 0 6512 6320 908 S 0 2.7 2.4 0:00 httpd 2196 httpd 15 0 6568 6372 908 D 0 2.7 2.4 0:00 httpd 2197 httpd 14 0 6548 6356 908 S 0 2.7 2.4 0:00 httpd 2232 httpd 7 0 6432 6096 852 D 0 2.7 2.3 0:00 httpd 2202 httpd 15 0 6548 6324 908 D 0 2.6 2.4 0:00 httpd 2229 httpd 7 0 6752 6656 1160 S 0 2.6 2.5 0:00 httpd 2233 httpd 7 0 6628 6532 1188 S 0 2.6 2.5 0:00 httpd 2219 httpd 14 0 6748 6644 1160 S 0 2.5 2.5 0:00 httpd 2221 httpd 7 0 6472 6240 880 S 0 2.5 2.4 0:00 httpd 2228 httpd 7 0 6636 6532 1160 D 0 2.5 2.5 0:00 httpd 2184 httpd 13 0 6516 6308 908 D 0 2.3 2.4 0:00 httpd 2200 httpd 13 0 6524 6268 908 D 0 2.3 2.4 0:00 httpd 2235 httpd 7 0 6628 6532 1188 S 0 2.3 2.5 0:00 httpd 2237 httpd 6 0 6552 6284 908 D 0 2.3 2.4 0:00 httpd 2234 httpd 7 0 6632 6536 1196 D 0 2.1 2.5 0:00 httpd 2201 httpd 15 0 6468 6220 916 D 0 1.9 2.4 0:00 httpd 2210 httpd 14 0 6456 6024 908 D 0 1.9 2.3 0:00 httpd 2217 httpd 15 0 6436 5960 892 D 0 1.9 2.3 0:00 httpd 2220 httpd 16 0 6376 6280 1156 D 0 1.9 2.4 0:00 httpd 2238 httpd 7 0 6404 6308 1188 D 0 1.9 2.4 0:00 httpd 2240 httpd 8 0 6624 6332 1172 D 0 1.9 2.4 0:00 httpd 2208 httpd 14 0 6516 6272 908 D 0 1.7 2.4 0:00 httpd 2216 httpd 15 0 6532 6324 1020 D 0 1.7 2.4 0:00 httpd 2188 httpd 15 0 6460 6252 904 D 0 1.6 2.4 0:00 httpd 2193 httpd 14 0 6440 6228 908 D 0 1.6 2.4 0:00 httpd 2241 httpd 8 0 6140 5888 908 D 0 1.5 2.2 0:00 httpd 2239 httpd 7 0 6508 6228 864 S 0 1.4 2.4 0:00 httpd 2192 httpd 14 0 6492 6236 908 D 0 1.3 2.4 0:00 httpd 2189 httpd 15 0 6556 6348 908 S 0 1.1 2.4 0:00 httpd 2222 httpd 7 0 6716 6620 1156 S 0 1.1 2.5 0:00 httpd 2194 httpd 14 0 6508 6252 908 S 0 1.0 2.4 0:00 httpd 2207 httpd 14 0 6456 5788 904 D 0 1.0 2.2 0:00 httpd The compiler i use is gcc 2.95.2. CFLAGS= -O2. Configuration for php4b3 RC3 is : ./configure --with-apache=../apache_1.3.9 --with-mysql --with-zlib --enable-sysvshm=yes --enable-sysvsem=yes --enable-debug=no --with-gd --with-ttf --with-readline --with-gettext --with-ftp --enable-track-vars --disable-inline apache config: ./configure --prefix=/home/httpd --activate-module=src/modules/php4/libphp4.a ps testing tool i use to test these releases is http_load (http://www.acme.com/software/http_load/) i strongly sugest this program to anyone who wants to do some serious load testing. -- Chris

« previous php.version4 (#6013) next »