Re: Swapping performance

2002-03-10 Thread Terry Lambert
Giorgos Keramidas wrote: > On 2002-03-07 16:45, Simon 'corecode' Schubert wrote: > > to everybody who doesn't believe that: it really generates bad code. > > i've been having severe problems with my tcp and udp stack lately (on a > > i586/mmx machine). guess what, -O2 resulted in code which >>some

Re: Swapping performance

2002-03-10 Thread Giorgos Keramidas
On 2002-03-07 16:45, Simon 'corecode' Schubert wrote: > to everybody who doesn't believe that: it really generates bad code. > i've been having severe problems with my tcp and udp stack lately (on a > i586/mmx machine). guess what, -O2 resulted in code which >>sometimes<< > generated bad tcp and/

Re: Swapping performance

2002-03-08 Thread Mike Silbersack
On Fri, 8 Mar 2002, David Xu wrote: > Unfortunately, I havn't Linux kernel 2.4.17 installed, is Linux kernel 2.4.17 >faster? > -- > David Xu Well, the VM in it is certainly different. Since he's using SUSE 2.4.17, I believe that would mean that he's actually using 2.4.17-AA; you'd want to tr

Re: Swapping performance

2002-03-08 Thread Terry Lambert
David Xu wrote: > I have done some tests on my machine, the machine has both > Linux and FreeBSD installed, the following is the data: > > MALLOC_SIZE = 1024*1024*400 > has bzero > > Red Linux 6.2(kernel 2.2.14) > 5.09u 5.62s 1:15.33 14% > 4.70u 5.73s 1:17.13 13% > 4.88u 5.68s 1:17

Re: Swapping performance

2002-03-08 Thread David Xu
I have done some tests on my machine, the machine has both Linux and FreeBSD installed, the following is the data: MALLOC_SIZE = 1024*1024*400 has bzero Red Linux 6.2(kernel 2.2.14) 5.09user 5.62system 1:15.33elapsed 14%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+0outputs (115298majo

Re: Swapping performance

2002-03-07 Thread Dimitar Peikov
On Thu, 7 Mar 2002 11:12:03 -0800 (PST) Matthew Dillon <[EMAIL PROTECTED]> wrote: > Hmm. well, I don't think this test is very meaningful. If the > machines have 256M of ram and the test is doing a two-swipe access of > 256M of VM. This doesn't represent any real test and I would no

Re: Swapping performance

2002-03-07 Thread Dimitar Peikov
On Thu, 07 Mar 2002 11:19:25 -0800 Terry Lambert <[EMAIL PROTECTED]> wrote: > > #include > > #include > > #include > > > > #define MALLOC_SIZE 1024*1024*256 > > > > int main(int argc, char **argv) { > >char *ptr; > >int i, i_count; > >int j; > > > >ptr = (char *) malloc(MALL

Re: Swapping performance

2002-03-07 Thread Dimitar Peikov
On Thu, 7 Mar 2002 10:42:05 -0800 "David O'Brien" <[EMAIL PROTECTED]> wrote: > On Thu, Mar 07, 2002 at 08:09:06AM -0600, GB Clark wrote: > > > I've tested it with : > > > > > > cc -O6 -o malloc_test malloc_test.c > > > > That -O6 does not look right from here. Do we support anything over > > -

Re: Swapping performance

2002-03-07 Thread Dimitar Peikov
On Thu, 7 Mar 2002 11:41:28 + (GMT) Mike Silbersack <[EMAIL PROTECTED]> wrote: > > On Thu, 7 Mar 2002, cjp wrote: > > > In order to handle the kruft that occurs, there is the out of memory > > killer, oom_killer. > > Which merrily goes through the list of processes, killing off the low > >

Re: Swapping performance

2002-03-07 Thread David Greenman
>Another point that I should bring up in regards to swap performance: >systems that require good swap performance will almost always have >more then one physical disk to swap to. FreeBSD is very good at >paging to swap with a single disk, but it kicks ass paging to swap >with

Re: Swapping performance

2002-03-07 Thread Terry Lambert
Matthew Dillon wrote: > :The bzero is unnecessary on FreeBSD. Allocated pages start out > :zero'ed. Part of the performance issue might be that FreeBSD is > :being asked to zero the pages twice, instead of once. > > malloc() does not guarentee a zero'd page, even though the > side effec

Re: Swapping performance

2002-03-07 Thread Matthew Dillon
:>ptr = (char *) malloc(MALLOC_SIZE); :>bzero(ptr, MALLOC_SIZE); : :The bzero is unnecessary on FreeBSD. Allocated pages start out :zero'ed. Part of the performance issue might be that FreeBSD is :being asked to zero the pages twice, instead of once. malloc() does not guarentee a z

Re: Swapping performance

2002-03-07 Thread Terry Lambert
> #include > #include > #include > > #define MALLOC_SIZE 1024*1024*256 > > int main(int argc, char **argv) { >char *ptr; >int i, i_count; >int j; > >ptr = (char *) malloc(MALLOC_SIZE); >bzero(ptr, MALLOC_SIZE); The bzero is unnecessary on FreeBSD. Allocated pages start

Re: Swapping performance

2002-03-07 Thread Matthew Dillon
Hmm. well, I don't think this test is very meaningful. If the machines have 256M of ram and the test is doing a two-swipe access of 256M of VM. This doesn't represent any real test and I would not be surprised by the difference in timing. It all comes down to how much real

Re: Swapping performance

2002-03-07 Thread Matthew Dillon
:... :> > This is a comparison of how fast Linux can do something :> > STUPID versus how fast a real OS can do something intelligently. Your :> > test is giving you misleading, and dangerous numbers. Do not go waving :> > them around until you have actually looked at mallocs behavior on the :>

Re: Swapping performance

2002-03-07 Thread David O'Brien
On Thu, Mar 07, 2002 at 11:41:28AM +, Mike Silbersack wrote: > In any case, we can't make any useful comparisons until Dimitar posts the > source to his test program. > > Dimitar, post the source for the test program! Does your MTA strip attachments? -> I 1 [text/plain

Re: Swapping performance

2002-03-07 Thread Terry Lambert
Simon 'corecode' Schubert wrote: > to everybody who doesn't believe that: it really generates bad code. > i've been having severe problems with my tcp and udp stack lately (on a > i586/mmx machine). guess what, -O2 resulted in code which >>sometimes<< > generated bad tcp and/or udp checksums (depe

Re: Swapping performance

2002-03-07 Thread David O'Brien
On Thu, Mar 07, 2002 at 08:09:06AM -0600, GB Clark wrote: > > I've tested it with : > > > > cc -O6 -o malloc_test malloc_test.c > > That -O6 does not look right from here. Do we support anything over -O2? > > And how about some source for malloc_test.c? The fact of running > something at -O6

Re: Swapping performance

2002-03-07 Thread Mike Silbersack
On Thu, 7 Mar 2002, Rogier R. Mulhuijzen wrote: > > >Once Dimitar posts his test program, we'll be able to generate a more > >clear picture about what's really happening. Until then, please control > >the ranting. > > Am I the only one who saw that he attached it to his 1st mail? Apparently no

Re: Swapping performance

2002-03-07 Thread Rogier R. Mulhuijzen
>Once Dimitar posts his test program, we'll be able to generate a more >clear picture about what's really happening. Until then, please control >the ranting. Am I the only one who saw that he attached it to his 1st mail? Here you go: #include #include #include #define MALLOC_SIZE 1024*102

Re: Swapping performance

2002-03-07 Thread Mike Silbersack
On Thu, 7 Mar 2002, Tom wrote: > But when you lose that data, do you not get burnt by that same situation? > I have written a 1GB file to a linux box, and then within 5 seconds of it > finishing, yanked the power cord. When I booted it back up, the file was > *JUST NOT THERE*, I tried it a few o

Re: Swapping performance

2002-03-07 Thread Tom
> > This is a comparison of how fast Linux can do something > > STUPID versus how fast a real OS can do something intelligently. Your > > test is giving you misleading, and dangerous numbers. Do not go waving > > them around until you have actually looked at mallocs behavior on the > > different

Re: Swapping performance

2002-03-07 Thread Mike Silbersack
On Thu, 7 Mar 2002, cjp wrote: > In order to handle the kruft that occurs, there is the out of memory killer, > oom_killer. > Which merrily goes through the list of processes, killing off the low priority > processes > until enough memory is free to satisfy what was most recently used. It's the

Re: Swapping performance

2002-03-07 Thread Simon 'corecode' Schubert
On Thu, 7 Mar 2002 16:36:15 +0100 Erik Trulsson <[EMAIL PROTECTED]> wrote: > > > > I've tested it with : > > > > > > > > cc -O6 -o malloc_test malloc_test.c > > > > > > That -O6 does not look right from here. Do we support anything over -O2? > > > > ISTR that -On is exactly the same for -O2 f

Re: Swapping performance

2002-03-07 Thread Erik Trulsson
On Thu, Mar 07, 2002 at 04:47:24PM +0200, Peter Pentchev wrote: > On Thu, Mar 07, 2002 at 08:09:06AM -0600, GB Clark wrote: > > On Thu, 7 Mar 2002 14:27:59 +0200 > > Dimitar Peikov <[EMAIL PROTECTED]> wrote: > > > > > On Thu, 7 Mar 2002 04:01:58 -0800 (PST) > > > Julian Elischer <[EMAIL PROTECTED

Re: Swapping performance

2002-03-07 Thread Erik Trulsson
On Thu, Mar 07, 2002 at 09:42:44AM -0500, cjp wrote: > This is a comparison of how fast Linux can do something > STUPID versus how fast a real OS can do something intelligently. Your > test is giving you misleading, and dangerous numbers. Do not go waving them > around until you have actually lo

Re: Swapping performance

2002-03-07 Thread Dimitar Peikov
On Thu, 7 Mar 2002 09:42:44 -0500 "cjp" <[EMAIL PROTECTED]> wrote: > This is a comparison of how fast Linux can do something > STUPID versus how fast a real OS can do something intelligently. Your > test is giving you misleading, and dangerous numbers. Do not go waving > them around until you h

Re: Swapping performance

2002-03-07 Thread Harti Brandt
On Thu, 7 Mar 2002, cjp wrote: You are probably misinformed, because FreeBSD also does overcommit of memory. If you look up the mail archives you will find long battles about the pros and cons of this. harti c>This is a comparison of how fast Linux can do something c>STUPID versus how fast a re

Re: Swapping performance

2002-03-07 Thread cjp
This is a comparison of how fast Linux can do something STUPID versus how fast a real OS can do something intelligently. Your test is giving you misleading, and dangerous numbers. Do not go waving them around until you have actually looked at mallocs behavior on the different systems. Here's wh

Re: Swapping performance

2002-03-07 Thread Dimitar Peikov
On Thu, 7 Mar 2002 08:09:06 -0600 GB Clark <[EMAIL PROTECTED]> wrote: > On Thu, 7 Mar 2002 14:27:59 +0200 > Dimitar Peikov <[EMAIL PROTECTED]> wrote: > > > On Thu, 7 Mar 2002 04:01:58 -0800 (PST) > > Julian Elischer <[EMAIL PROTECTED]> wrote: > > > > > he said -stable.. > > > > > > what are th

Re: Swapping performance

2002-03-07 Thread Peter Pentchev
On Thu, Mar 07, 2002 at 08:09:06AM -0600, GB Clark wrote: > On Thu, 7 Mar 2002 14:27:59 +0200 > Dimitar Peikov <[EMAIL PROTECTED]> wrote: > > > On Thu, 7 Mar 2002 04:01:58 -0800 (PST) > > Julian Elischer <[EMAIL PROTECTED]> wrote: > > > > > he said -stable.. > > > > > > what are the malloc opti

Re: Swapping performance

2002-03-07 Thread GB Clark
On Thu, 7 Mar 2002 14:27:59 +0200 Dimitar Peikov <[EMAIL PROTECTED]> wrote: > On Thu, 7 Mar 2002 04:01:58 -0800 (PST) > Julian Elischer <[EMAIL PROTECTED]> wrote: > > > he said -stable.. > > > > what are the malloc options on -stable? > > > > maybe we should make sure that they are null > >

Re: Swapping performance

2002-03-07 Thread Dimitar Peikov
On Thu, 7 Mar 2002 04:01:58 -0800 (PST) Julian Elischer <[EMAIL PROTECTED]> wrote: > he said -stable.. > > what are the malloc options on -stable? > > maybe we should make sure that they are null > > ln -s ">" /etc/malloc.conf > (I hope that helps) :) > I've tested it with : cc -O6 -o mall

Re: Swapping performance

2002-03-07 Thread Julian Elischer
he said -stable.. what are the malloc options on -stable? maybe we should make sure that they are null ln -s ">" /etc/malloc.conf (I hope that helps) :) On Thu, 7 Mar 2002, Alfred Perlstein wrote: > * Dimitar Peikov <[EMAIL PROTECTED]> [020307 00:45] wrote: > > I start some performance test

Re: Swapping performance

2002-03-07 Thread Alfred Perlstein
* Dimitar Peikov <[EMAIL PROTECTED]> [020307 00:45] wrote: > I start some performance tests on -stable and on SuSE 7.1 / 2.4.17. I > don't comment about 'bzero' performance, but when RAM is over, Linux > is much faster. I have no idea what is the algorithm of swapping but it seems that >the granu

Re: Swapping performance

2002-03-07 Thread Konrad Heuer
On Thu, 7 Mar 2002, Dimitar Peikov wrote: > I start some performance tests on -stable and on SuSE 7.1 / 2.4.17. I > don't comment about 'bzero' performance, but when RAM is over, Linux > is much faster. I have no idea what is the algorithm of swapping but it seems that >the granularity of swapp

Re: Swapping performance

2002-03-07 Thread Alfred Perlstein
* Dimitar Peikov <[EMAIL PROTECTED]> [020307 00:45] wrote: > I start some performance tests on -stable and on SuSE 7.1 / 2.4.17. I > don't comment about 'bzero' performance, but when RAM is over, Linux > is much faster. I have no idea what is the algorithm of swapping but it seems that >the granu