[Offtopic?] I'm looking for "Revolution OS" copy

2002-03-17 Thread Karasik, Vitaly

Does anybody have/know how to get DVD/videotape with "Revolution OS"
[http://www.revolution-os.com]

Thanks,
Vitaly  

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]




The Revolution will not be televised (was RE: I'm looking for "Revolution OS" copy)

2002-03-17 Thread Gilad Ben-Yossef


..but you might still catch it in a theater near you:

> Does anybody have/know how to get DVD/videotape with "Revolution OS"
> [http://www.revolution-os.com]

I have a better idea: let's organize a public screening of this film in Israel.
Everyone (except special cases) will pay a normal fee of a film to cover expenses 
(film + cinema).

In fact, I've already sent an email to these guys asking for a price quote.

Anyone who thinks he (or she) will come to such a screening please send an email to 
[EMAIL PROTECTED] saying so. Any commercial entities wishing to become official 
sponsors of the occasion please contact me as well.

PLEASE continue further discussion on the IGLU mailing list 
(http://www.iglu.org.il/mailing-lists/iglu.html) and NOT on linux-il or I'll hang you 
naked from the server rack  and lash you with a bundle of CAT5 cables. People who WISH 
to be hung naked from the server rack and lashed can contact me in private email and 
need not bother the list... 

Gilad.

-- 
Gilad Ben-Yossef <[EMAIL PROTECTED]>
Tel: +972(9)9717330 | Fax: +972(9)9717334   | Cel: +972(54)756701
Kagoor Networks ltd | http://www.kagoor.com | 



To unsubscribe, send 
mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]




Cable modems

2002-03-17 Thread Geoffrey S. Mendelson

Ok, is there anyone out there with a Cable modem. Any words of wisdom on
how to use it with linux.

TIA.

Geoff
-- 
Geoffrey S. Mendelson
Bloomberg L.P., BFM (Israel) 2 hours ahead of London, 7 hours ahead of New York.
Tel:  972-(0)3-754-1158 Fax 972-(0)3-754-1236 Email: [EMAIL PROTECTED] 


=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]




RE: Cable modems

2002-03-17 Thread Amir Tal

> No wisdom needed.
> You use it like you are connecting to a local LAN (actually, 
> you do) with dhcp enabled for your NIC.
> 
> What problems are you experiencing ?
> 
> Tal.
> 
> 
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]] On Behalf Of Geoffrey 
> > S. Mendelson
> > Sent: Sunday, March 17, 2002 12:16 PM
> > To: [EMAIL PROTECTED]
> > Subject: Cable modems
> > 
> > 
> > Ok, is there anyone out there with a Cable modem. Any words
> > of wisdom on how to use it with linux.
> > 
> > TIA.
> > 
> > Geoff
> > --
> > Geoffrey S. Mendelson
> > Bloomberg L.P., BFM (Israel) 2 hours ahead of London, 7 hours 
> > ahead of New York.
> > Tel:  972-(0)3-754-1158 Fax 972-(0)3-754-1236 Email: 
> > [EMAIL PROTECTED] 
> > 
> > 
> > =
> > To unsubscribe, send mail to [EMAIL PROTECTED]
> > with the word "unsubscribe" in the message body, e.g., run 
> > the command echo unsubscribe | mail [EMAIL PROTECTED]
> > 
> 


=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]




Re: pthreads question

2002-03-17 Thread guy keren



On Sat, 16 Mar 2002, Malcolm Kavalsky wrote:

> I attach a program benchmark.c that compares speed of memcpy versus data
> transfer
> over unix sockets.

on my PC (AMD k-6 II 366MHz w/256MB RAM, kernel 2.2.20):

[choo@simey ~]$ gcc -O2 benchmark.c
[choo@simey ~]$ ./a.out
Memcpy'ed 2000 blocks of size 1048576 in 38 seconds => 52 Mbytes/second
Sent 2000 blocks of size 1048576 in 94 seconds over unix socket => 21
Mbytes/second
[choo@simey ~]$

could it be that you were running this while your system was busy doing
other things during the memcpy run, and hence altered the results?
which kernel are you using, btw?

as for zero-copy - no need to argue without reading the kernel's source.
i checked, and it does not do any zero-copy. in kernel 2.2.20, the unix
domain socket functions that handle socket reads/writes
(/usr/src/linux-2-2.20/net/unix/af_unix.c, functions unix_stream_sendmsg
and unix_stream_recvmsg, data is sent using the memcpy_toiovec and
memcpy_fromiovec, respectively. those functions eventually call
copy_from_user and copy_to_user, which has to actualy copy the data.

btw, your 'time testing' is not proper for the unix sockets test - you
measure the time in the client only, while you should measure the _end_
time in the server, not in the client. thought i don't think this has too
much effect on the test...

in any event, for many applications, this is not relevant because:

1. you're comparing socket transfer to memcpy - but you should compare it
   to no copy at all (as is the case with shared mem).

2. sometimes, you cannot afford to copy the data, because of memory
   constrains.

3. if you have complex data structures with pointers, you cannot simply
   copy the data between processes - you need to serialize and
   de-serialize it, which takes more time.

4. there is no synchronization in this manner between the processes - one
   might work on data that's already been modified in another process.

--
guy

"For world domination - press 1,
 or dial 0, and please hold, for the creator." -- nob o. dy


-- Attached file included as plaintext by Listar --
-- File: benchmark.c

#include 
#include 
#include 
#include 
#include 
#include 

#define BUFSIZE 0x10  /* 1 Megabyte */
#define NBLOCKS   2000
#define PORT_NAME"/tmp/foo"

socket_benchmark()
{
  if ( fork() == 0 ) {
server();
  } else {
sleep(1); /* Dirty, but ensures client runs after server is ready */
client();
  }
}

server()
{
  struct sockaddr_un sin,from;
  int s,g,len;
  char *buf;
  
  buf = malloc( BUFSIZE );
  /* Create an unbound socket */
  if( (s=socket( PF_UNIX, SOCK_STREAM, 0 )) < 0 ){
printf( "Bad socket\n");
return 0;
  }
  strcpy( sin.sun_path, PORT_NAME );
  sin.sun_family = PF_UNIX;
  if( bind( s, (struct sockaddr *)&sin, 
strlen(sin.sun_path) + sizeof(sin.sun_family)) < 0){
printf( "Bad bind\n");
return 0;
  }
  listen( s, 5 );
  len = sizeof(from);
  g = accept( s, (struct sockaddr *)&from, &len );
  while( read( g, buf, BUFSIZE ) > 0 ); /* sink all data received */
  close(g);
  close(s);
  unlink( PORT_NAME );
}

client()
{
  struct sockaddr_un sin;
  int s;
  char *buf;
  time_t start_time, elapsed_time;
  int i;
  
  buf = malloc( BUFSIZE );
  
  if( (s=socket( PF_UNIX, SOCK_STREAM, 0 )) < 0 ){
printf( "Bad socket\n");
return -1;
  }
  strcpy( sin.sun_path, PORT_NAME );
  sin.sun_family = PF_UNIX;
  if( connect( s, (struct sockaddr *)&sin, sizeof(sin)) < 0 ){
printf("Bad connect\n");
close(s);
return -1;
  }

  start_time = time(0);
  for( i=0; i< NBLOCKS && write(s, buf, BUFSIZE) == BUFSIZE ; i++ );
  elapsed_time = time(0) - start_time;
  close(s);
  printf( "Sent %d blocks of size %d in %d seconds over unix socket =>",
  i, BUFSIZE, elapsed_time );
  printf( " %d Mbytes/second \n", (NBLOCKS * BUFSIZE) / (0x10 * elapsed_time) );

}

memcpy_benchmark()
{
  char *src, *dst;
  time_t start_time, elapsed_time;
  int i;

  src = malloc ( BUFSIZE );
  dst = malloc ( BUFSIZE );
  start_time = time(0);
  for( i=0; i< NBLOCKS; i++ )
memcpy( dst, src, BUFSIZE );
  elapsed_time = time(0) - start_time;

  printf( "Memcpy'ed %d blocks of size %d in %d seconds =>",
  NBLOCKS, BUFSIZE, elapsed_time );
  printf( " %d Mbytes/second\n", (NBLOCKS * BUFSIZE) / (0x10 * elapsed_time) );
}

main()
{
  memcpy_benchmark();
  socket_benchmark();
}


=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]




RE: Cable modems

2002-03-17 Thread guy keren


amir, _please_ fix your mail replying, so they will NOT look like you're
quoting messages? it takes too much CPU time from my brain to try and
decypher your messages when they look like this. what kind of mail client
are you using, that generates thes broken messages? it could most likely
be fixed.

thanks,
guy

On Sun, 17 Mar 2002, Amir Tal wrote:

> Date: Sun, 17 Mar 2002 12:30:35 +0200
> From: Amir Tal <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: RE: Cable modems
>
> > No wisdom needed.
> > You use it like you are connecting to a local LAN (actually,
> > you do) with dhcp enabled for your NIC.
> >
> > What problems are you experiencing ?
> >
> > Tal.
> >
> >
> > > -Original Message-
> > > From: [EMAIL PROTECTED]
> > > [mailto:[EMAIL PROTECTED]] On Behalf Of Geoffrey
> > > S. Mendelson
> > > Sent: Sunday, March 17, 2002 12:16 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: Cable modems
> > >
> > >
> > > Ok, is there anyone out there with a Cable modem. Any words
> > > of wisdom on how to use it with linux.
> > >
> > > TIA.
> > >
> > > Geoff
> > > --
> > > Geoffrey S. Mendelson
> > > Bloomberg L.P., BFM (Israel) 2 hours ahead of London, 7 hours
> > > ahead of New York.
> > > Tel:972-(0)3-754-1158 Fax 972-(0)3-754-1236 Email:
> > > [EMAIL PROTECTED]
> > >
> > >
> > > =
> > > To unsubscribe, send mail to [EMAIL PROTECTED]
> > > with the word "unsubscribe" in the message body, e.g., run
> > > the command echo unsubscribe | mail [EMAIL PROTECTED]
> > >
> >
>
>
> =
> To unsubscribe, send mail to [EMAIL PROTECTED] with
> the word "unsubscribe"in the message body, e.g., run the command
> echo unsubscribe | mail [EMAIL PROTECTED]
>

--
guy

"For world domination - press 1,
 or dial 0, and please hold, for the creator." -- nob o. dy


=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]




RE: Cable modems

2002-03-17 Thread Nir Siminovich

 
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hey There,

  I use a cable modem, and basicly there is nothing much to know.
Unlike ADSL, you don't need a PPPOE or PPPOA or any of that shit, it's a
simple
IP over ethernet connection.

  However, bare in mind the follow rules:

1. You can't change the network card the ISP will give you, as it's MAC
address
is defined within the ISP LDAP server, and is required for obtaining
an IP address.
2. If you want to try an use your own cable modem/router, DON'T. Most
ISPs in 
Israel still don't support that many cable modems, due to a deal
they sigend with 
the cable modem company, so the CMTS is configured to support those
modems,
which are not totally compliant to DOCSIS 1.0 and DOCSIS 1.1 (unless
something 
changed in the ISPs policy in 10 months, which I dought).

  Apart from that, nothing more to know or understand basicly. If you
need help, just e-mail
me, I'll be glad to lend a hand. I have a setup working at home, so I'm
sure I could be of
help.

Best regards,
  Nir Simionovich
  Senior Network Manager
  m-Wise

http://www.m-wise.com/

Phone:   +972 (9) 958-1711 ext. 105  
Fax:   +972 (9) 958-1739
Mobile:   +972 (54) 482826




- -Original Message-
From: Geoffrey S. Mendelson [mailto:[EMAIL PROTECTED]]
Sent: Sunday, March 17, 2002 12:16 PM
To: [EMAIL PROTECTED]
Subject: Cable modems


Ok, is there anyone out there with a Cable modem. Any words of wisdom on
how to use it with linux.

TIA.

Geoff
- -- 
Geoffrey S. Mendelson
Bloomberg L.P., BFM (Israel) 2 hours ahead of London, 7 hours ahead of
New York.
Tel:  972-(0)3-754-1158 Fax 972-(0)3-754-1236 Email:
[EMAIL PROTECTED] 


=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]


-BEGIN PGP SIGNATURE-
Version: PGP 7.0.4

iQA/AwUBPJRzC4IPDOTXgnguEQKoEQCg5g8jeH7+HfqwydUJmvFM8Z5IdMoAoOpw
8f7ZfS1EpMz/163KeNZpXqgr
=u3f1
-END PGP SIGNATURE-

To unsubscribe, send 
mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]




Re: pthreads question

2002-03-17 Thread Nadav Har'El

On Sun, Mar 17, 2002, guy keren wrote about "Re: pthreads question":
> 
> On Sat, 16 Mar 2002, Malcolm Kavalsky wrote:
> 
> > I attach a program benchmark.c that compares speed of memcpy versus data
> > transfer
> > over unix sockets.
> 
> on my PC (AMD k-6 II 366MHz w/256MB RAM, kernel 2.2.20):
> 
> [choo@simey ~]$ gcc -O2 benchmark.c
> [choo@simey ~]$ ./a.out
> Memcpy'ed 2000 blocks of size 1048576 in 38 seconds => 52 Mbytes/second
> Sent 2000 blocks of size 1048576 in 94 seconds over unix socket => 21
> Mbytes/second
> [choo@simey ~]$

Similarly, on Redhat 7.2 and kernel 2.4.7-10, Pentium III (Katmai) 500 MHz:
$ a.out
Memcpy'ed 2000 blocks of size 1048576 in 12 seconds => 166 Mbytes/second
Sent 2000 blocks of size 1048576 in 14 seconds over unix socket => 142 Mbytes/second 

So unix domain sockets are slightly slower, but not significantly slower
(because you sent huge 1MB buffers) than a straight memcpy. I cannot be
faster. No way. You don't even need to look in the source for that: if the
semantics of the API is that data from one malloc'ed buf suddenly appears
in another malloc'ed buf (and the server is free to then change the data it
sent without affecting the client) - then a copy *must* be made.

Something is wrong in your original measurement, but I have no idea what.


-- 
Nadav Har'El|Sunday, Mar 17 2002, 4 Nisan 5762
[EMAIL PROTECTED] |-
Phone: +972-53-245868, ICQ 13349191 |We are Microsoft. You will be
http://nadav.harel.org.il   |assimilated. Resistance is futile.

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]




RE: pthreads question

2002-03-17 Thread guy keren


On Sat, 16 Mar 2002, Tzahi Fadida wrote:

> > that _is_ the nature ofdeadlocks. show me how java's mechanism help
> > prevent deadlocks, please. give a concrete example - talking in the air
> > and hand-waving are not acceptable proof techniques ;)
>
> There are mechanisms, its a matter of using them correctly. impling u
> canstill create deadlocks if you make realy big beginners mistakes, i am
> not stating that u can completely eliminate deadlocks automagically in
> JAVA, just that its easily and 'naturally' avoidable in this particular
> language.

you're hand-waving again :P~~. can you give _concrete_ examples, and show
why they are better then what you have with pthreads (or better - in ACE)?

> > deadlocks are _always_ a sign of bad design. in any language.
>
> Not so, its a matter of weighing performance agains safety. If there
> wasn't a performance problem, wecould ideally create the ultimate
> design.

its not a matter of weighing anything. either your code is deadlock free
or its broken. saying "i won't lock here cause it reduces performance, and
i'll hope this list never gets corrupted" _is_ bad design. if that's not
what you meant - what did you mean?

> But since we live in the real world, a bad/good design is a point of
> view under the circumstances.

not regarding deadlocks. a design that has deadlocks allowed is bad bad
bad bad bad always. its not a matter of tradeoff. its a matter of
corrections of the design and/or the code.

> > > besides, u can alway just define a volatile array of bits that will
> > > indicate if an obeject is in its critical section, and thus any object
> > > trying to enter its critical section will check if its set of resources
> > > is free and if not he will just call wait().(which is better than a
> > > spinlock, unless u r directing for smp). and on exit just notifyall()
> > > will be the safest. no more worries. Simplicity at its best.
> >
> > this is not something that rpevents _deadlocks_. deadlocks, by their
> > nature, cannot be solved by 'waiting'. do refer to the dining
> > philosopheres for a hint.
>
> I know the philosophers problem, and the solution is as i suggested (1
> of several), if u first check if ur sticks are free and only start to
> eat
> if u hold two of them and in the event u don't u drop the one u hold (or
> as i suggested wait() Before entering thecritical section and be
> awakened
> by either philosopher on ur left and right).

naturaly, this is a racy solution - which means, its not a real solution.
if you have starvation inherent to the solution - its not _realy_ a
solution. and the goal of the philosophers problem is to avoid starvation.
that's the main goal. hence, the need for proper locking.

> besides, by tracking ur
> resources before entering critical sections, u can break circular waits,
> etc.

not if you don't use any locking _before_ grabbing your resources.

> Although, as i mentioned in my first email, starvation is still a
> problem u need to solve for urself, cz i don't know what
> language/library
> provides an automated mechanism that will prevent starvation while not
> creating a deadlock. In JAVA 2.0 the notify() solves starvation but can
> create a deadlock, on the other hand notifyall() can prevent deadlocks
> but create starvation. I think, though that starvation is easier to deal
> with from a programmer point of view, because its not hard to setup some
> simple aging mechanism.

what does aging has to do with this? how will you implement it?

> > i didn't say i don't use a debugger at all. i still use it for quite a few
> > problems. just not for the hard synchronization problems ;) (but i still
> > can use it to debug deadlocks, by attaching to the deadlocked process and
> > viewing the stacks of all threads. and also to identify crashing matters,
> > by viewing a core dump with the debugger. true, i won't get code dumps
> > with java unless i realy try hard enough).
>
> granted. Just wanted to add that debugging the way u describe is not
> trivial to most programmers(if i can make that assumption, so i will be
> cautious on that one).

debugging, per-se, is not trivial for most programmers :) so i think we
agree on this one.

> > when i said 'if you can afford to use java', i didn't imply 'if you can
> > afford learning java'. i refered to 'can afford' in overhead (both space
> > and time), in ability/need to use specific 3rd-party products, etc.
> > and if you like slagish GUIs ;) (java seems to make more sense on the
> > server side, it seems).
>
> granted. no contest there. p.s: can u give me an example of a widely
> used java server, whichis an advantage over a C implementation...?

i was talking about application development in general - not about servers
for the masses. when you have a server application to develope, that does
not need to run too fast, java makes sense for the same reasons you
mentioned earlier - safer programming (no pointers), faster development
(supposedly, at least), good suppor

RE: Cable modems

2002-03-17 Thread Amir Tal

I sent the message by mistake using another account (that is not
registered with the list) and when the message bounced, I re-sent it
Using the right one. This is why it appeared like that, I didn't notice
- sorry.

This was a 1 time mistake, sorry if I made your brain work to hard ;)

Tal.


> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED]] On Behalf Of guy keren
> Sent: Sunday, March 17, 2002 12:36 PM
> To: Amir Tal
> Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: RE: Cable modems
> 
> 
> 
> amir, _please_ fix your mail replying, so they will NOT look 
> like you're quoting messages? it takes too much CPU time from 
> my brain to try and decypher your messages when they look 
> like this. what kind of mail client are you using, that 
> generates thes broken messages? it could most likely be fixed.
> 
> thanks,
> guy
> 
> On Sun, 17 Mar 2002, Amir Tal wrote:
> 
> > Date: Sun, 17 Mar 2002 12:30:35 +0200
> > From: Amir Tal <[EMAIL PROTECTED]>
> > To: [EMAIL PROTECTED]
> > Cc: [EMAIL PROTECTED]
> > Subject: RE: Cable modems
> >
> > > No wisdom needed.
> > > You use it like you are connecting to a local LAN 
> (actually, you do) 
> > > with dhcp enabled for your NIC.
> > >
> > > What problems are you experiencing ?
> > >
> > > Tal.
> > >
> > >
> > > > -Original Message-
> > > > From: [EMAIL PROTECTED] 
> > > > [mailto:[EMAIL PROTECTED]] On Behalf Of Geoffrey S. 
> > > > Mendelson
> > > > Sent: Sunday, March 17, 2002 12:16 PM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: Cable modems
> > > >
> > > >
> > > > Ok, is there anyone out there with a Cable modem. Any words of 
> > > > wisdom on how to use it with linux.
> > > >
> > > > TIA.
> > > >
> > > > Geoff
> > > > --
> > > > Geoffrey S. Mendelson
> > > > Bloomberg L.P., BFM (Israel) 2 hours ahead of London, 7 hours 
> > > > ahead of New York. Tel:972-(0)3-754-1158 Fax 972-(0)3-754-1236 
> > > > Email: [EMAIL PROTECTED]
> > > >
> > > >
> > > > 
> =
> > > > To unsubscribe, send mail to [EMAIL PROTECTED] with 
> > > > the word "unsubscribe" in the message body, e.g., run 
> the command 
> > > > echo unsubscribe | mail [EMAIL PROTECTED]
> > > >
> > >
> >
> >
> > =
> > To unsubscribe, send mail to [EMAIL PROTECTED] with the 
> > word "unsubscribe"in the message body, e.g., run the command echo 
> > unsubscribe | mail [EMAIL PROTECTED]
> >
> 
> --
> guy
> 
> "For world domination - press 1,
>  or dial 0, and please hold, for the creator." -- nob o. dy
> 
> 
> =
> To unsubscribe, send mail to [EMAIL PROTECTED] 
> with the word "unsubscribe" in the message body, e.g., run 
> the command echo unsubscribe | mail [EMAIL PROTECTED]
> 


=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]




Re: Cable modems

2002-03-17 Thread Geoffrey S. Mendelson

I wrote:
 
> Ok, is there anyone out there with a Cable modem. Any words of wisdom on
> how to use it with linux.

Thanks everyone so much for your quick answers. I was flooded with replies.
Now if the cable company will work so quickly. :-)

Geoff.
-- 
Geoffrey S. Mendelson
Bloomberg L.P., BFM (Israel) 2 hours ahead of London, 7 hours ahead of New York.
Tel:  972-(0)3-754-1158 Fax 972-(0)3-754-1236 Email: [EMAIL PROTECTED] 


=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]




pass that one to MS addicts :-)http://www.newsforge.com/article.pl?sid=02/03/05/0232253

2002-03-17 Thread Ely Levy



Ely Levy
System group
Hebrew University 
Jerusalem Israel




=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]




Re: pthreads question

2002-03-17 Thread Matan

On Sun, 17 Mar 2002, Nadav Har'El wrote:

> On Sun, Mar 17, 2002, guy keren wrote about "Re: pthreads question":
> >
> > On Sat, 16 Mar 2002, Malcolm Kavalsky wrote:
> >
> > > I attach a program benchmark.c that compares speed of memcpy versus data
> > > transfer
> > > over unix sockets.
> >
> > on my PC (AMD k-6 II 366MHz w/256MB RAM, kernel 2.2.20):
> >
> > [choo@simey ~]$ gcc -O2 benchmark.c
> > [choo@simey ~]$ ./a.out
> > Memcpy'ed 2000 blocks of size 1048576 in 38 seconds => 52 Mbytes/second
> > Sent 2000 blocks of size 1048576 in 94 seconds over unixsocket => 21
> > Mbytes/second
> > [choo@simey ~]$
> 
> Similarly, on Redhat 7.2 and kernel 2.4.7-10, Pentium III (Katmai) 500 MHz:
> $ a.out
> Memcpy'ed 2000 blocks of size 1048576 in 12 seconds => 166 Mbytes/second
> Sent 2000 blocks of size 1048576 in 14 seconds over unix socket => 142 Mbytes/second

Just for all to know that Kavalsky's results are not unique: this is on
a MDK8.1 system (glibc-2.2.4, kernel 2.4.17) with Athlon 1GHz and 133MHz
SDRAM:
Memcpy'ed 2000 blocks of size 1048576 in 7 seconds => 285 Mbytes/second
Sent 2000 blocks of size 1048576 in 4 seconds over unix socket => 500
Mbytes/second

(the 7s is sometimes 8s, and the 4s is sometimes 5s).

So there might be some improvements in the kernel between 2.4.7 and
2.4.17.


-- 
Matan Ziv-Av. [EMAIL PROTECTED]




=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]




RE: The Revolution will not be televised (was RE: I'm looking for "Revolution OS" copy)

2002-03-17 Thread Karasik, Vitaly

:-?

 *PLEASE*, explain me why I can't sent my question to linux-il [The main
mailing-list for Linux users in Israel] 
and *HAVE TO* send it to IGLU [Linux-IL announcements and administrative
only].

To say the truth: I want to send my posts to linux-il-list-without-flamers.


Vitaly. 

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]




RE : cable modem

2002-03-17 Thread Yehuda Drori

hi..
Nir.. there isnt any prob.. connecting via diffrenet NICs..

Geoffrey ..

the procedure to connect to a cable campany is diveded in to two steps:
first you need to connect your nic to the modem and set it to obtain IP from a 
DHCP server ( quite easy )
sec. you need to log on using a web site that register your computer ( thats 
the mac of your eth card ) and after that all you have to do is to connect to 
an ISP that is in the list your cable company allow you to. this gives your 
machine the nesseccry info to begine surfing ( i.e. G.W. ,DNS, external IP 
and so on.. )

if you wnat to change nic all you have to do is to unregister your computer 
and thats all.. 

I'm connected via ARUTZI ZAHAV using a netvision account and able to switch 
between to boxes I have quite easy..

another nice thing about the connection is that if you didnt disconnected and 
you rebooted your computer when it comes back again you are still connected 
:-)




-- 
Yehuda Drori
http://whatsup.homelinux.net

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]




RE: The Revolution will not be televised (was RE: I'm looking for "Revolution OS" copy)

2002-03-17 Thread Gilad Ben-Yossef


>  *PLEASE*, explain me why I can't sent my question to linux-il [The main
> mailing-list for Linux users in Israel] 
> and *HAVE TO* send it to IGLU [Linux-IL announcements and administrative
> only].

I think you've answered your own question. The discussion in question will be about an 
IGLU activity, not about Linux. Hence, it's an IGLU administrative discussion and one 
which may not interest all of the linux-il mailing list subscribers, so why bother 
them?

> 
> To say the truth: I want to send my posts to 
> linux-il-list-without-flamers.

Sure, and I want World Peace. It's a tuff world, ain't it? ;-))

-- 
Gilad Ben-Yossef <[EMAIL PROTECTED]>
Tel: +972(9)9717330 | Fax: +972(9)9717334   | Cel: +972(54)756701
Kagoor Networks ltd | http://www.kagoor.com | 



To unsubscribe, send 
mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]




RE: The Revolution will not be televised (was RE: I'm looking for "Revolution OS" copy)

2002-03-17 Thread Karasik, Vitaly

It's my LAST post to this thread. 


I'm a Linux user in Israel, and I want to buy/borrow this movie.  

I don't see here nothing related to "Linux-IL announcements and
administrative only".

Gilad, was my questionannouncement or administrative?

Vitaly.

> -Original Message-
> From: Gilad Ben-Yossef [mailto:[EMAIL PROTECTED]]
> Sent: Sun, March 17, 2002 4:10 PM
> To: Karasik, Vitaly; [EMAIL PROTECTED]
> Subject: RE: The Revolution will not be televised (was RE: 
> I'm looking for "Revolution OS" copy)
> 
> 
> 
> >  *PLEASE*, explain me why I can't sent my question to 
> linux-il [The main
> > mailing-list for Linux users in Israel] 
> > and *HAVE TO* send it to IGLU [Linux-IL announcements and 
> administrative
> > only].
> 
> I think you've answered your own question. The discussion in 
> question will be about an IGLU activity, not about Linux. 
> Hence, it's an IGLU administrative discussion and one which 
> may not interest all of the linux-il mailing list 
> subscribers, so why bother them?
> 
> > 
> > To say the truth: I want to send my posts to 
> > linux-il-list-without-flamers.
> 
> Sure, and I want World Peace. It's a tuff world, ain't it? ;-))
> 
> -- 
> Gilad Ben-Yossef <[EMAIL PROTECTED]>
> Tel: +972(9)9717330 | Fax: +972(9)9717334   | Cel: +972(54)756701
> Kagoor Networks ltd | http://www.kagoor.com | 
> 
> 

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]




RE: RE : cable modem

2002-03-17 Thread Nir Siminovich

 
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi Yehuda,

  That's probably something that Onlye Arutzei Zahav enables. I'm
connected to
nonStop, and they require that I connect with their network card and
modem. They
admit that they can use other network cards, but prefer not to due to
support issues.

Best regards,
  Nir Simionovich
  Senior Network Manager
  m-Wise

http://www.m-wise.com/

Phone:   +972 (9) 958-1711 ext. 105  
Fax:   +972 (9) 958-1739
Mobile:   +972 (54) 482826




- -Original Message-
From: Yehuda Drori [mailto:[EMAIL PROTECTED]]
Sent: Sunday, March 17, 2002 2:47 PM
To: [EMAIL PROTECTED]
Subject: RE : cable modem


hi..
Nir.. there isnt any prob.. connecting via diffrenet NICs..

Geoffrey ..

the procedure to connect to a cable campany is diveded in to two steps:
first you need to connect your nic to the modem and set it to obtain IP
from a 
DHCP server ( quite easy )
sec. you need to log on using a web site that register your computer (
thats 
the mac of your eth card ) and after that all you have to do is to
connect to 
an ISP that is in the list your cable company allow you to. this gives
your 
machine the nesseccry info to begine surfing ( i.e. G.W. ,DNS, external
IP 
and so on.. )

if you wnat to change nic all you have to do is to unregister your
computer 
and thats all.. 

I'm connected via ARUTZI ZAHAV using a netvision account and able to
switch 
between to boxes I have quite easy..

another nice thing about the connection is that if you didnt
disconnected and 
you rebooted your computer when it comes back again you are still
connected 
:-)




- -- 
Yehuda Drori
http://whatsup.homelinux.net

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]


-BEGIN PGP SIGNATURE-
Version: PGP 7.0.4

iQA/AwUBPJSVX4IPDOTXgnguEQI7HACcDj6y4v80uSUSDWpHwSUux8tad6IAn3kR
yq5OrucaC7JJ9nRkuiTXYHuR
=MY6U
-END PGP SIGNATURE-

To unsubscribe, send 
mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]




RE: The Revolution will not be televised (was RE: I'm looking for "Revolution OS" copy)

2002-03-17 Thread Gilad Ben-Yossef


> I'm a Linux user in Israel, and I want to buy/borrow this movie.  
> I don't see here nothing related to "Linux-IL announcements and
> administrative only".
> 
> Gilad, was my questionannouncement or administrative?
> 

My apologies, I thought you were relating to my post about the public screening of the 
movie. I did not realize you are talking still about getting the movie on DVD/tape. 

Now can we please move on to more interesting things? ;-)

Gilad.



To unsubscribe, send 
mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]




RE: The Revolution will not be televised (was RE: I'm looking for "Revolution OS" copy)

2002-03-17 Thread Karasik, Vitaly

Oops! I'm very sorry ! 

I'm too egocentric and always think only about *my* ideas/posts :-)

Vitaly.

> -Original Message-
> From: Gilad Ben-Yossef [mailto:[EMAIL PROTECTED]]
> Sent: Sun, March 17, 2002 4:26 PM
> To: Karasik, Vitaly; [EMAIL PROTECTED]
> Subject: RE: The Revolution will not be televised (was RE: 
> I'm looking for "Revolution OS" copy)
> 
> 
> 
> > I'm a Linux user in Israel, and I want to buy/borrow this movie.  
> > I don't see here nothing related to "Linux-IL announcements and
> > administrative only".
> > 
> > Gilad, was my questionannouncement or administrative?
> > 
> 
> My apologies, I thought you were relating to my post about 
> the public screening of the movie. I did not realize you are 
> talking still about getting the movie on DVD/tape. 
> 
> Now can we please move on to more interesting things? ;-)
> 
> Gilad.
> 
> 

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]




RE: pthreads question

2002-03-17 Thread Tzahi Fadida

> -Original Message-
> From: guy keren [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, March 17, 2002 12:48 PM
> To: Tzahi Fadida
> Cc: Malcolm Kavalsky; [EMAIL PROTECTED]
> Subject: RE: pthreads question
> 
> 
> 
> On Sat, 16 Mar 2002, Tzahi Fadida wrote:
> 
> > > that _is_ the nature ofdeadlocks. show me how java's mechanism help
> > > prevent deadlocks, please. give a concrete example - talking 
> in the air
> > > and hand-waving are not acceptable proof techniques ;)
> >
> > There are mechanisms, its a matter of using them correctly. impling u
> > canstill create deadlocks if you make realy big beginners mistakes, i am
> > not stating that u can completely eliminate deadlocks automagically in
> > JAVA, just that its easily and 'naturally' avoidable in this particular
> > language.
> 
> you're hand-waving again :P~~. can you give _concrete_ examples, and show
> why they are better then what you have with pthreads (or better - in ACE)?

Well, i am not going to give code examples, so we'll drop it. better is a relative 
term. 
Plus i never used ACE so i can't compare.

> 
> > > deadlocks are _always_ a sign of bad design. in any language.
> >
> > Not so, its a matter of weighing performance agains safety. If there
> > wasn't a performance problem, wecould ideally create the ultimate
> > design.
> 
> its not a matter of weighing anything. either your code is deadlock free
> or its broken. saying "i won't lock here cause it reduces performance, and
> i'll hope this list never gets corrupted" _is_ bad design. if that's not
> what you meant - what did you mean?

I thought I was clear because there is no other meaning for my words then language 
design. If you also meant design, than by your own words C/C++ and java have a bad 
design. But I guess u meant code. and its obviously bad to have ur program stuck! :) 
(though some OSes use this technique on the basis of "infrequent" deadlocks to 
increase performance).

> 
> > But since we live in the real world, a bad/good design is a point of
> > view under the circumstances.
> 
> not regarding deadlocks. a design that has deadlocks allowed is bad bad
> bad bad bad always. its not a matter of tradeoff. its a matter of
> corrections of the design and/or the code.

Again i was referring to language design. Since u know, that we are not in the dark 
ages anymore, and a good language often implicitly handle facilities such as garbage 
collection, etc and for our topic Java also manages threads natively. I guess its a 
middle ground as i said, to allow flexibility. While C/C++ do not hanle it natively 
obviously for maximum flexibility. which again is a tradeoff, like range checking.

> 
> > > > besides, u can alway just define a volatile array of bits that will
> > > > indicate if an obeject is in its critical section, and thus 
> any object
> > > > trying to enter its critical section will check if its set 
> of resources
> > > > is free and if not he will just call wait().(which is better than a
> > > > spinlock, unless u r directing for smp). and on exit just 
> notifyall()
> > > > will be the safest. no more worries. Simplicity at its best.
> > >
> > > this is not something that rpevents _deadlocks_. deadlocks, by their
> > > nature, cannot be solved by 'waiting'. do refer to the dining
> > > philosopheres for a hint.
> >
> > I know the philosophers problem, and the solution is as i suggested (1
> > of several), if u first check if ur sticks are free and only start to
> > eat
> > if u hold two of them and in the event u don't u drop the one u hold (or
> > as i suggested wait() Before entering thecritical section and be
> > awakened
> > by either philosopher on ur left and right).
> 
> naturaly, this is a racy solution - which means, its not a real solution.
> if you have starvation inherent to the solution - its not _realy_ a
> solution. and the goal of the philosophers problem is to avoid starvation.
> that's the main goal. hence, the need for proper locking.

I must disagree here. not having a deadlock Prevents "starvation" in the strict send 
in the philosophers case. But starvation which is not indefinetly is also a kind of 
starvation. for example, if 4 from 5 philosophers get access to their plates for a 
week while they interchangeably release and aquire their sticks. how is that possible? 
it could be possible if by chance the random time of release and acuire always succeed 
from either side of the particular 5th philosopher. The thing is, that he will 
eventually get to eat because the scheme is deadlock free. But i don't think he can 
hang on for a week.
to solve it read ahead about aging...

> 
> > besides, by tracking ur
> > resources before entering critical sections, u can break circular waits,
> > etc.
> 
> not if you don't use any locking _before_ grabbing your resources.

I was referring to synchronize + volatile array. which implies locking and in my 
previous mail i specifically defined that a process will not enter its critical 
section un

OT/or not?: windows update.

2002-03-17 Thread Tzahi Fadida

Does anybody know why in the last month or so i can't use windows update:
It give me a message that it can't display the page (in hebrew!?!). and says something 
about their software which is buggy(big supprise;).
I have a legit serial number and i checked it on several computers on a certain 
company's computers which definetly have legit serials.
Maybe its not offtopic, because maybe its MTU related, though i doubt it, because they 
don't use dsl at the office.
Anyone?

* - * - *
Tzahi Fadida
[EMAIL PROTECTED]
Fax (+1 Outside the US) 240-597-3213
* - * - * - * - * - * - * - * - * - *


To unsubscribe, send 
mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]




Re: OT/or not?: windows update.

2002-03-17 Thread Nadav Har'El

On Sun, Mar 17, 2002, Tzahi Fadida wrote about "OT/or not?: windows update.":
> Does anybody know why in the last month or so i can't use windows update:
> It give me a message that it can't display the page (in hebrew!?!). and says 
>something about their software which is buggy(big supprise;).
> I have a legit serial number and i checked it on several computers on a certain 
>company's computers which definetly have legit serials.
> Maybe its not offtopic, because maybe its MTU related, though i doubt it, because 
>they don't use dsl at the office.

Hmm, let's see - a post about Windows, not mentioning Linux even once.
Could it be off-topic for linux-il? I wonder...

MTU related? Do you have a router somewhere in the mix? Does it run Linux?
You didn't give us any information...


-- 
Nadav Har'El|Sunday, Mar 17 2002, 4 Nisan 5762
[EMAIL PROTECTED] |-
Phone: +972-53-245868, ICQ 13349191 |Attention: There will be a rain dance
http://nadav.harel.org.il   |Friday night, weather permitting.

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]




RE: OT/or not?: windows update.

2002-03-17 Thread Tzahi Fadida

Some run linux as a router, with pptp, etc.. regular setup. with the mss clamp.
I just wanted to know if anyone experienced it with their routing setup. Specifically 
with linux masquerading.

* - * - *
Tzahi Fadida
[EMAIL PROTECTED]
Fax (+1 Outside the US) 240-597-3213
* - * - * - * - * - * - * - * - * - *

> -Original Message-
> From: Nadav Har'El [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, March 17, 2002 4:14 PM
> To: Tzahi Fadida
> Cc: [EMAIL PROTECTED]
> Subject: Re: OT/or not?: windows update.
> 
> 
> On Sun, Mar 17, 2002, Tzahi Fadida wrote about "OT/or not?: 
> windows update.":
> > Does anybody know why in the last month or so i can't use 
> windows update:
> > It give me a message that it can't display the page (in 
> hebrew!?!). and says something about their software which is 
> buggy(big supprise;).
> > I have a legit serial number and i checked it on several 
> computers on a certain company's computers which definetly have 
> legit serials.
> > Maybe its not offtopic, because maybe its MTU related, though i 
> doubt it, because they don't use dsl at the office.
> 
> Hmm, let's see - a post about Windows, not mentioning Linux even once.
> Could it be off-topic for linux-il? I wonder...
> 
> MTU related? Do you have a router somewhere in the mix? Does it run Linux?
> You didn't give us any information...
> 
> 
> -- 
> Nadav Har'El|Sunday, Mar 17 2002, 
> 4 Nisan 5762
> [EMAIL PROTECTED] 
> |-
> Phone: +972-53-245868, ICQ 13349191 |Attention: There will be a rain dance
> http://nadav.harel.org.il   |Friday night, weather permitting.


To unsubscribe, send 
mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]




does anyone knows of a good download accelerator that know how to use several proxy servers

2002-03-17 Thread Ohad . Levy

Ohad.

 


=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]




Re: OT/or not?: windows update.

2002-03-17 Thread Hetz Ben Hamo

On Sunday 17 March 2002 16:22, Tzahi Fadida wrote:
> Some run linux as a router, with pptp, etc.. regular setup. with the mss
> clamp. I just wanted to know if anyone experienced it with their routing
> setup. Specifically with linux masquerading.

It's just an MTU problem (you can see it takes a long time to check and even 
when you get checked and downloading patches - you won't see the license 
agreement)...

Set the MTU on your Windows client - Linux Masquarading got the info how to 
set them up. Had the same thing here few months ago.

Hetz

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]




RE: OT/or not?: windows update.

2002-03-17 Thread Tzahi Fadida

Please contact me off the mailing list, because i am pretty certain now its OT.

It takes a second to get a reply, so thats not it. and it worked a month ago and 
nothing was changed not here and not in the office.
plus all the mtu settings are like the howto, as i said, the tcpmss clamp is in place. 
1452 etc.. i am working with this stuff for over a year. no problem with any site 
aside from microsoft.
Plus, it also don't work when adsl is not present at other offices i 
contacted(obviously to eliminate the legit serial claim).
Some contacted me about a new explorer bug and microsoft explains.. change this, do 
that. well, i tried that and it didn't work. also i tried previous versions of 
explorer.5.5, 5 and think that the problem is on their server. they have somehow 
misconfigured something.

* - * - *
Tzahi Fadida
[EMAIL PROTECTED]
Fax (+1 Outside the US) 240-597-3213
* - * - * - * - * - * - * - * - * - *

> -Original Message-
> From: Hetz Ben Hamo [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, March 17, 2002 8:04 PM
> To: [EMAIL PROTECTED]; Nadav Har'El
> Cc: [EMAIL PROTECTED]
> Subject: Re: OT/or not?: windows update.
> 
> 
> On Sunday 17 March 2002 16:22, Tzahi Fadida wrote:
> > Some run linux as a router, with pptp, etc.. regular setup. with the mss
> > clamp. I just wanted to know if anyone experienced it with their routing
> > setup. Specifically with linux masquerading.
> 
> It's just an MTU problem (you can see it takes a long time to 
> check and even 
> when you get checked and downloading patches - you won't see the license 
> agreement)...
> 
> Set the MTU on your Windows client - Linux Masquarading got the 
> info how to 
> set them up. Had the same thing here few months ago.
> 
> Hetz


To unsubscribe, send 
mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]




Re: pthreads question

2002-03-17 Thread Malcolm Kavalsky

Thanks Matan, I was getting worried that I had some strange computers which
were playing tricks with me ;)

I forgot to mention that I am running Redhat 7.2 with kernel 2.4.14. My 
PIII has
384Mb dram, and runs at 667Mhz. The results are completely reproducible, 
without
running anything in the background.

I realised afterwards that I should have measured the time also in the 
server, and attach
the fixed program, which still gives the same results.

I guess there have been some major improvements on the kernel code, running
the same program on my laptop ( PIII 500 Mhz, 128MB Dram, kernel 2.4.18)
results in:

Memcpy'ed 2000 blocks of size 1048576 in 11 seconds => 181 Mbytes/second
Sent 2000 blocks of size 1048576 in 5 seconds over unix socket => 400 
Mbytes/second
Received 2097152000 bytes in 5 seconds over unix socket =>  400 
Mbytes/second

Even though zero-copy is not being done, isn't it surprising how much 
faster it
is to send data over a socket than just to copy it from one buffer to 
another ;)


Malcolm

Matan wrote:

>On Sun, 17 Mar 2002, Nadav Har'El wrote:
>
>>On Sun, Mar 17, 2002, guy keren wrote about "Re: pthreads question":
>>
>>>On Sat, 16 Mar 2002, Malcolm Kavalsky wrote:
>>>
I attach a program benchmark.c that compares speed of memcpy versus data
transfer
over unix sockets.

>>>on my PC (AMD k-6 II 366MHz w/256MB RAM, kernel 2.2.20):
>>>
>>>[choo@simey ~]$ gcc -O2 benchmark.c
>>>[choo@simey ~]$ ./a.out
>>>Memcpy'ed 2000 blocks of size 1048576 in 38 seconds => 52 Mbytes/second
>>>Sent 2000 blocks of size 1048576 in 94 seconds over unixsocket => 21
>>>Mbytes/second
>>>[choo@simey ~]$
>>>
>>Similarly, on Redhat 7.2 and kernel 2.4.7-10, Pentium III (Katmai) 500 MHz:
>>$ a.out
>>Memcpy'ed 2000 blocks of size 1048576 in 12 seconds => 166 Mbytes/second
>>Sent 2000 blocks of size 1048576 in 14 seconds over unix socket => 142 Mbytes/second
>>
>
>Just for all to know that Kavalsky's results are not unique: this is on
>a MDK8.1 system (glibc-2.2.4, kernel 2.4.17) with Athlon 1GHz and 133MHz
>SDRAM:
>Memcpy'ed 2000 blocks of size 1048576 in 7 seconds => 285 Mbytes/second
>Sent 2000 blocks of size 1048576 in 4 seconds over unix socket => 500
>Mbytes/second
>
>(the 7s is sometimes 8s, and the 4s is sometimes 5s).
>
>So there might be some improvements in the kernel between 2.4.7 and
>2.4.17.
>
>



#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 

#define BUFSIZE 0x10  /* 1 Megabyte */
#define NBLOCKS   2000
#define PORT_NAME"/tmp/foo"

void server()
{
  struct sockaddr_un sin,from;
  int s,g,len,n;
  char *buf;
  float nbytes;
  time_t start_time, elapsed_time;
  
  buf = malloc( BUFSIZE );
  /* Create an unbound socket */
  if( (s=socket( PF_UNIX, SOCK_STREAM, 0 )) < 0 ){
printf( "Bad socket\n");
return;
  }
  strcpy( sin.sun_path, PORT_NAME );
  sin.sun_family = PF_UNIX;
  if( bind( s, (struct sockaddr *)&sin, 
strlen(sin.sun_path) + sizeof(sin.sun_family)) < 0){
printf( "Bad bind\n");
return;
  }
  listen( s, 5 );
  len = sizeof(from);
  g = accept( s, (struct sockaddr *)&from, &len );
  nbytes = read( g, buf, BUFSIZE );
  start_time = time(0);
  while( (n = read( g, buf, BUFSIZE )) > 0 ) {
nbytes += n;
  }
  elapsed_time = time(0) - start_time;
  close(g);
  close(s);
  unlink( PORT_NAME );
  printf( "Received %10.0f bytes in %d seconds over unix socket =>",
  nbytes, (int)elapsed_time );
  printf( " %4.0f Mbytes/second \n", nbytes / (0x10 * elapsed_time) );
}

void client()
{
  struct sockaddr_un sin;
  int s;
  char *buf;
  time_t start_time, elapsed_time;
  int i;
  
  buf = malloc( BUFSIZE );
  
  if( (s=socket( PF_UNIX, SOCK_STREAM, 0 )) < 0 ){
printf( "Bad socket\n");
return;
  }
  strcpy( sin.sun_path, PORT_NAME );
  sin.sun_family = PF_UNIX;
  if( connect( s, (struct sockaddr *)&sin, sizeof(sin)) < 0 ){
printf("Bad connect\n");
close(s);
return;
  }

  start_time = time(0);
  for( i=0; i< NBLOCKS && write(s, buf, BUFSIZE) == BUFSIZE ; i++ );
  elapsed_time = time(0) - start_time;
  close(s);
  printf( "Sent %d blocks of size %d in %d seconds over unix socket =>",
  i, BUFSIZE, (int)elapsed_time );
  printf( " %d Mbytes/second \n", (NBLOCKS * BUFSIZE) / (0x10 * (int)elapsed_time) 
);

}

void memcpy_benchmark()
{
  char *src, *dst;
  time_t start_time, elapsed_time;
  int i;

  src = malloc ( BUFSIZE );
  dst = malloc ( BUFSIZE );
  start_time = time(0);
  for( i=0; i< NBLOCKS; i++ )
memcpy( dst, src, BUFSIZE );
  elapsed_time = time(0) - start_time;

  printf( "Memcpy'ed %d blocks of size %d in %d seconds =>",
  NBLOCKS, BUFSIZE, (int)elapsed_time );
  printf( " %d Mbytes/second\n", (NBLOCKS * BUFSIZE) / (0x10 * (int)elapsed_time) 
);
}

void socket_benchmark()
{
  int status;
  if ( fork() == 0 ) {
server();
  } else {
sleep(1); /* Dirty, but ensures client runs after server is ready */
client();
  }
  wait(&status);
}

Re: RE : cable modem

2002-03-17 Thread Shaul Karl

Is there any point comparing cable modem and ADSL or is it much like 
comparing the cable TV offerings to the satellite TV offerings?


>  
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> Hi Yehuda,
> 
>   That's probably something that Onlye Arutzei Zahav enables. I'm
> connected to
> nonStop, and they require that I connect with their network card and
> modem. They
> admit that they can use other network cards, but prefer not to due to
> support issues.
> 
> Best regards,
>   Nir Simionovich
>   Senior Network Manager
>   m-Wise
> 
> http://www.m-wise.com/
> 
> Phone:   +972 (9) 958-1711 ext. 105  
> Fax:   +972 (9) 958-1739
> Mobile:   +972 (54) 482826
> 
> 
> 
> 
> - -Original Message-
> From: Yehuda Drori [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, March 17, 2002 2:47 PM
> To: [EMAIL PROTECTED]
> Subject: RE : cable modem
> 
> 
> hi..
> Nir.. there isnt any prob.. connecting via diffrenet NICs..
> 
> Geoffrey ..
> 
> the procedure to connect to a cable campany is diveded in to two steps:
> first you need to connect your nic to the modem and set it to obtain IP
> from a 
> DHCP server ( quite easy )
> sec. you need to log on using a web site that register your computer (
> thats 
> the mac of your eth card ) and after that all you have to do is to
> connect to 
> an ISP that is in the list your cable company allow you to. this gives
> your 
> machine the nesseccry info to begine surfing ( i.e. G.W. ,DNS, external
> IP 
> and so on.. )
> 
> if you wnat to change nic all you have to do is to unregister your
> computer 
> and thats all.. 
> 
> I'm connected via ARUTZI ZAHAV using a netvision account and able to
> switch 
> between to boxes I have quite easy..
> 
> another nice thing about the connection is that if you didnt
> disconnected and 
> you rebooted your computer when it comes back again you are still
> connected 
> :-)
> 
> 
> 
> 
> - -- 
> Yehuda Drori
> http://whatsup.homelinux.net
> 
> =
> To unsubscribe, send mail to [EMAIL PROTECTED] with
> the word "unsubscribe" in the message body, e.g., run the command
> echo unsubscribe | mail [EMAIL PROTECTED]
> 
> 
> -BEGIN PGP SIGNATURE-
> Version: PGP 7.0.4
> 
> iQA/AwUBPJSVX4IPDOTXgnguEQI7HACcDj6y4v80uSUSDWpHwSUux8tad6IAn3kR
> yq5OrucaC7JJ9nRkuiTXYHuR
> =MY6U
> -END PGP SIGNATURE-
> 
> ÿÿTo unsubscribe, send mail to [EMAIL PROTECTED] with
> the word "unsubscribe" in the message body, e.g., run the command
> echo unsubscribe | mail [EMAIL PROTECTED]
> 

-- 

Shaul Karl
email: shaulka(at-no-spam)bezeqint.net 
   Please substitute (at-no-spam) with an at - @ - character.
   (at-no-spam) is meant for unsolicitate mail senders only.



To unsubscribe, send 
mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]




Re: RE : cable modem

2002-03-17 Thread Yehuda Drori

hi..

there is much difference between the two..( not like cable TV and satelite TV 
:-)

one of the major differences is the upstream speed. ADSL is asynchronic which 
mean that you can DL very fast comparing to UL ( which is about the upstream 
of ISDN ). On cable the DL and UL speed are the same ( which means you can 
download and upload basicly at the same speed concedering the other side )

so far this means that cable wins but cable speed is very depended on the 
number of users that share the line which is not the case with ADSL ( user 
are not effected by other users )

another draw back to ADSL is that you must be located near a Bezeq center ( 
within 4 km range )  and in cable you don't have this prob.

this is only the major differences and there are many more.

to conclude:
if you plane mainly to DL stuff and you are near a Bezeq center you might want 
to be connected via ADSL
if you need fast up stream as well as fast downstream and you don't have much 
neighboors near you that are connected via cable then cable should be your 
choice..
:-)




On Monday 18 March 2002 01:47, Shaul Karl wrote:
> Is there any point comparing cable modem and ADSL or is it much like
> comparing the cable TV offerings to the satellite TV offerings?
>
> > -BEGIN PGP SIGNED MESSAGE-
> > Hash: SHA1
> >
> > Hi Yehuda,
> >
> >   That's probably something that Onlye Arutzei Zahav enables. I'm
> > connected to
> > nonStop, and they require that I connect with their network card and
> > modem. They
> > admit that they can use other network cards, but prefer not to due to
> > support issues.
> >
> > Best regards,
> >   Nir Simionovich
> >   Senior Network Manager
> >   m-Wise
> >
> > http://www.m-wise.com/
> >
> > Phone:   +972 (9) 958-1711 ext. 105
> > Fax:   +972 (9) 958-1739
> > Mobile:   +972 (54) 482826
> >
> >
> >
> >
> > - -Original Message-
> > From: Yehuda Drori [mailto:[EMAIL PROTECTED]]
> > Sent: Sunday, March 17, 2002 2:47 PM
> > To: [EMAIL PROTECTED]
> > Subject: RE : cable modem
> >
> >
> > hi..
> > Nir.. there isnt any prob.. connecting via diffrenet NICs..
> >
> > Geoffrey ..
> >
> > the procedure to connect to a cable campany is diveded in to two steps:
> > first you need to connect your nic to the modem and set it to obtain IP
> > from a
> > DHCP server ( quite easy )
> > sec. you need to log on using a web site that register your computer (
> > thats
> > the mac of your eth card ) and after that all you have to do is to
> > connect to
> > an ISP that is in the list your cable company allow you to. this gives
> > your
> > machine the nesseccry info to begine surfing ( i.e. G.W. ,DNS, external
> > IP
> > and so on.. )
> >
> > if you wnat to change nic all you have to do is to unregister your
> > computer
> > and thats all..
> >
> > I'm connected via ARUTZI ZAHAV using a netvision account and able to
> > switch
> > between to boxes I have quite easy..
> >
> > another nice thing about the connection is that if you didnt
> > disconnected and
> > you rebooted your computer when it comes back again you are still
> > connected
> >
> > :-)
> >
> > - --
> > Yehuda Drori
> > http://whatsup.homelinux.net
> >
> > =
> > To unsubscribe, send mail to [EMAIL PROTECTED] with
> > the word "unsubscribe" in the message body, e.g., run the command
> > echo unsubscribe | mail [EMAIL PROTECTED]
> >
> >
> > -BEGIN PGP SIGNATURE-
> > Version: PGP 7.0.4
> >
> > iQA/AwUBPJSVX4IPDOTXgnguEQI7HACcDj6y4v80uSUSDWpHwSUux8tad6IAn3kR
> > yq5OrucaC7JJ9nRkuiTXYHuR
> > =MY6U
> > -END PGP SIGNATURE-
> >
> > ��To unsubscribe, 
>send mail to
> > [EMAIL PROTECTED] with the word "unsubscribe" in the message
> > body, e.g., run the command echo unsubscribe | mail
> > [EMAIL PROTECTED]
-- 
Yehuda Drori
http://whatsup.homelinux.net

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]




Re: RE : cable modem

2002-03-17 Thread Nadav Har'El

On Mon, Mar 18, 2002, Yehuda Drori wrote about "Re: RE : cable modem":
> one of the major differences is the upstream speed. ADSL is asynchronic which 
  ^^^
> mean that you can DL very fast comparing to UL ( which is about the upstream 

Should be "asymmetric", not asynchronic, of course :)

I'm a bit ignorant about new cable technologies, but how can cable be
symmetric? Cable originally meant large amounts of data flowing from the
cable company HQ to all homes. Little data, if any, flowed back. At one
point I even heard of a cable ISP where the download side comes via cable,
but the upload side returns by modem (and thus limited to 56Kbps).
Is current technology more advanced?

By the way, the other-direction-is-a-modem solution is also doable for
sattelite operators: you'll get relatively fast (but shared) download speeds
and modem-speed for upload. The latency, however, would be annoying for
interactive sessions (e.g., ssh).

> so far this means that cable wins but cable speed is very depended on the 
> number of users that share the line which is not the case with ADSL ( user 
> are not effected by other users )

Right, cable is a shared medium. But I don't think that there's an inherent
limitation on the total bandwidth that the cable company can put into it
(they can upgrade their cables and add more cables if it was worth their
while). In any case, your ISP has a shared connection to abroad, and even
to the IIX (connecting to other ISPs in Israel), so the cable's limit might
not be the one you'll notice - maybe somebody who will try such a service can
comment on what actually happens (as far as I know, this service isn't widely
available in Israel yet).


-- 
Nadav Har'El|Monday, Mar 18 2002, 5 Nisan 5762
[EMAIL PROTECTED] |-
Phone: +972-53-245868, ICQ 13349191 |A Nobel Peace Prize? I would KILL for one
http://nadav.harel.org.il   |of those.

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]