Linux-Development-Sys Digest #714, Volume #6     Sat, 15 May 99 06:14:34 EDT

Contents:
  make your first $1 million (Wong)
  Re: Glibc rant (Allin Cottrell)
  Re: PTR_ERR (Andi Kleen)
  Searching for Kernel Hacker's Guide ("Soohyung Lee")
  Re: memory mapped io, where to start? (Arun Sharma)
  Re: Searching for Kernel Hacker's Guide (Arun Sharma)
  Re: Glibc rant (Paul D. Smith)
  Re: Q: Is it possible to compile binaries for a different processor? (Bounce)
  Ideas for ultra-high-performance web server (Sam E. Trenholme)
  Kernel-Thread in Linux? ("Soohyung Lee")
  Re: Glibc rant ("G. Sumner Hayes")
  Slow Interrupt vs. Fast Interrupt ("Soohyung Lee")
  Re: Hostile Takeover of Linux (Phil Howard)
  Re: Distributed processing without batch? ("Dirk-Jan C. Binnema")
  Reliable (!) nic for 2.2 kernel? (bryan)
  Re: USB Support (Michael Proto)

----------------------------------------------------------------------------

From: Wong<[EMAIL PROTECTED]>
Subject: make your first $1 million
Date: 14 May 1999 23:52:46 GMT


              HANG CHEONG INTERNATIONAL

A new successful marketing tactic to increase your sales :

    Do you always have problems to find channels to increase your sales?
The advertise in newspapers, magazines and doing some Direct Mailing, but
still can not achieve you goal, so why still dumping your money to a media
that could not help your sales and not using the most efficient and modern
way of selling stragies E-MAIL.Now many big companies are using this,
because it is economical, fast and efficient, and the other way is selling
by fax through the internets, and the result are remarkable.

  According to report pointed out that the ratio of internet selling is
1,000:1.5 that is 20,000,000 names x 0.0015 = 30,000.  These 30,000 clients
will buy from you and if your net profit is $50 that is to say your total
profit is:

           HK$50 x 30,000 = HK$1,500,000.  1.5 Million Dollars !!!

How to make your first 1 million in your life, now it is quite possible that
you can make your first 1 million within one month.  But the thing is ��Are 
you selling the right products, through the right media.��

***************************************************************************
A full set of sales tool with 20 million of client��s names will make you a SUPER 
SALES.  

A professional mail software (no need to go through any ISP Mail Server,making your 
computer
as the professional Mail Server, its super speed.  Easy to use.

* 500,000 E-mail addresses in Hong Kong
* 1,000,000 E-mail address in Taiwan
* 20,000,000 E-mail address in the World
 (latest revised on 1-5-1999.)

* A free revision one year (around 100,000 every month)

* Free of charge of 200,000 names of fax addresses in Hong Kong for 1999.

* Door to door installation  * Technical support  * software replacement.

* Using CD-R dish and CD-AutoRun Menu.

(Only HK$680 for one full set) for unlimited use.

HK$680 is very small amount, you may not need it now but you will sure to use it when 
you 
have every thing ready.

***************************************************************************
If you need any E-mail address, call us any time!!
***************************************************************************
Don��t miss this chance, you may make lots of money with this new marketing technique.

Booking Hotline : (852) 2348 8365 Mr Wong

2ND FL.FRONT BLOCK HING YIP HOUSE.24,SAI YEE ST,HK
_________________________________________________________________________________________

                                            �������
                        HANG CHEONG INTERNATIONAL

�s���\������P:

      �z�O�_�g�`���p��ݮi��P�޹D�˸���?
�Z�n����,���x�s�i�ζl�H�Ң� (Direct Mail)�O�_�w�g�L�k�F���z�w�����s�i�ĪG?
�P��N�ɶ��M�����ӶO�b���Ĥ������¦���P�覡�W,��ij�z����t�M�s�n��k��
���N�{�檺�s�i��P�覡.�Dzμs�i��P�覡�ӶO�Ӧh�H�O���O�Ӽs�i�O�ΩM�s�i
�įq������������,�]���\�h�j���q�g�L�f�V�����᳣�w��ij̬��g�٧ֳt�B�ĪG
��n��"�ӡТۢϢעڼs�i��P �� �ǯu�s�i��P" �]�N�O--���ں����Ң۵o�e�s�i,
�]�����T��g�٧ֳt�ӥB�Q�����ġI

    �g���i���������P���C1000�� 1.5 .
��Y,20000000�U�ӦW�歼 0.0015����30000
�]�N�O�T�U�ӫȤ�|��z�R,�p�z���f�~���b�Q��50��,���A�i�Ȩ�
50��30000��1500000,�@�ʤ��Q�U!!!!!

�аݤH�ͪ��Ĥ@�Ӥ@�ʸU�A�n�p����,�{�b�N���i��@�Ӥ�N�Ȥ@�ʸU.
�Q�����h���Ҹg�P���~����.�u�n��ﲣ�~.���P�ȿ��S���D.
__________________________________________________________________________
���M��P�u��X��,2000�U���Ȥ�E-MAIL�a�}.���A�ܨ�����SUPER SALESMAN.

�M�~���t�o�q�l�n��.(�����n�z�L����ISP��MAIL SERVER,��A���q�����M�~
MAIL SERVER�t�׶W��).�ϥ�²��.

*���䤭�Q�U���Ȥ�E-MAIL�H�c�a�}.
*�x�W�@�ʸU���Ȥ�E-MAIL�H�c�a�}.
*�@�ɤG�d�U���Ȥ�E-MAIL�H�c�a�}.
 (�̫��s�����99�~5��1��)

*��i1�~�K�O��s(���C��Q�U��)*

*(�A�e����99�~�u�ӷ~20�U���Ȥ�ǯu���X(����~,�a��,���q�W,�s�n��)*

*�s�W���w��   *�޳N�䴩    *�n���s   *

*�ϥ�CD-R���Ф��˸�.(�ϥ�CD-AutoRun�ε��ﶵ����)
 
(���M�u�� $680 ) �ä[�L�����ϥΡC

680���u���L�O�Ӥp���A�]�\�A�{�b���ݭn�A�����O�H��n���P�u�@�W��
���~�ΪA�Ȯɻݭn�I
**************************************************************************************************
�����q��֦��j�����A���A�M�����������U��U�~ Email Address�A

�{�ɧڭ֦̾��h�ئ�~�����q�l�a�}.��w�����a��,���z���s�i��ǽT�ǰe.

�U,Bag             11,000 Address (�̫��s�����99�~4��13��)  $1000
��´�~,Textile     10,000 Address (�̫��s�����99�~3��28��)  $1000
��A,Garment        6,800 Address (�̫��s�����99�~1��4��)   $1000
��ξ���,Furniture  5,500 Address (�̫��s�����98�~11��10��) $1000
 
�ݭn�U��U�~���� Email Address�A���H���p���ڭ̡I
********************************************************************************************
���n������L�o���ȿ������|��I

(�q�ʼ��u)-(852)-23488365������

�a�}:����E�s�����~���24�����~��3��
__________________________________________________________

------------------------------

From: Allin Cottrell <[EMAIL PROTECTED]>
Subject: Re: Glibc rant
Date: Fri, 14 May 1999 21:54:25 -0400

Modemch wrote:

> This broke when I installed the glibc-2.1 rpm,
> and it compiled and worked fine with glibc-2.0.  It didn't even *compile*
> after glibc-2.1 was installed.

RedHat plays fast and loose with their numbering -- at least if you
don't pay close attention to the suffixes.  Are you sure you have glibc 
2.1 rather than some pre-release?

-- 
Allin Cottrell
Department of Economics
Wake Forest University, NC

------------------------------

Subject: Re: PTR_ERR
From: Andi Kleen <[EMAIL PROTECTED]>
Date: 14 May 1999 14:24:41 +0200

"J.C. Chuang" <[EMAIL PROTECTED]> writes:

> Hi,
> 
>     In kernel code, I often read the macros ERR_PTR(), PTR_ERR(), IS_ERR().
>     After checking its definition, I found that
> 
>     #define ERR_PTR(err)    ((void *)((long)(err)))
>     #define PTR_ERR(ptr)    ((long)(ptr))
>     #define IS_ERR(ptr)     ((unsigned long)(ptr) > (unsigned long)(-1000))
> 
>     But I don't understand very much about IS_ERR(). Why it wannts to
>     compare with (unsigned long) (-1000). Is there any special meaning on
> the
>     value of -1000.

-1000 is just to clamp any possible errno numbers. Remember that errnos are
always passed negated in the kernel. There are no pointer with these high bits
set.

But you discovered a bug, Linux/MIPS has errno numbers >1000 for Irix/4 
compatibility, so if one of these ever reach the VFS it'll crash.


-Andi

-- 
This is like TV. I don't like TV.

------------------------------

From: "Soohyung Lee" <[EMAIL PROTECTED]>
Subject: Searching for Kernel Hacker's Guide
Date: Sat, 15 May 1999 13:48:48 +0900

I wanna get Postscript version of Kernel Hacker's Guide..
Can you help me..?
Any help will be appreciated..
Thanks in advance..

- Lee -



------------------------------

Crossposted-To: comp.os.linux.hardware
Subject: Re: memory mapped io, where to start?
From: Arun Sharma <[EMAIL PROTECTED]>
Date: Sat, 15 May 1999 05:25:51 GMT

Daniel Lintjens <[EMAIL PROTECTED]> writes:

> Hi all,
> 
> I need to program a hardware isa plugin card which uses memory mapped
> io. I had a few questions about this, because the card maps it's memory
> in the last meg of the isa adress bus space (15-16m memory)
> Anybody knows how to use memory mapped io under linux?

Grep for "ioremap" in linux/drivers/net - you'll find a few
examples. Refer to the O'Reily device drivers book too, if you can. 

Basically, you need to map the piece of memory in kernel's virtual
address space and then read/write from it.

        -Arun

------------------------------

Subject: Re: Searching for Kernel Hacker's Guide
From: Arun Sharma <[EMAIL PROTECTED]>
Date: Sat, 15 May 1999 05:27:02 GMT

"Soohyung Lee" <[EMAIL PROTECTED]> writes:

> I wanna get Postscript version of Kernel Hacker's Guide..  Can you
> help me..?  Any help will be appreciated..  Thanks in advance..

Look for "The Linux kernel" by David Rusling.

        -Arun

------------------------------

From: [EMAIL PROTECTED] (Paul D. Smith)
Subject: Re: Glibc rant
Date: 15 May 1999 01:25:55 -0400
Reply-To: [EMAIL PROTECTED]

%% Ronald Cole <[EMAIL PROTECTED]> writes:

  rc> [EMAIL PROTECTED] (Paul D. Smith) writes:

  >> Uh... there's nothing wrong with spaces between the `#' and the
  >> `define'; any ISO C preprocessor must accept that.  Many older ones
  >> do, too.

  rc> Then would this be a cccp bug in egcs-1.1.2?

I sincerely doubt that it's a bug in cpp.  I use this idiom _all_ the
time in code compiled with every stripe of GCC and EGCS, as does almost
every GNU program out there.

In fact, I doubt that the error is that there's whitespace there at all;
it's probably something completely different.

If you post or email me the actual errors you get from the compile, and
maybe some of the relevant code, I might be able to give more hints.

  rc> Can you compile ssh-2.0.12 with egcs-1.1.2 on a glibc-2.1 system?

I don't know; since SSH2's licensing is so ridiculous I'm completely
ininterested in finding out, or helping them solve any portability
problems they might have.  I'd merely have to delete it once I got it
compiled, anyway, since I can't think of a single legal thing I could do
with it.

What do _you_ plan to do with it? :)

-- 
===============================================================================
 Paul D. Smith <[EMAIL PROTECTED]>         Network Management Development
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist
===============================================================================
   These are my opinions---Nortel Networks takes no responsibility for them.

------------------------------

From: [EMAIL PROTECTED] (Bounce)
Crossposted-To: comp.os.linux.alpha,comp.os.linux.questions,comp.os.linux
Subject: Re: Q: Is it possible to compile binaries for a different processor?
Date: 15 May 1999 05:01:15 GMT

On 16 Apr 1999 02:50:58 GMT, Michal Jaegermann <[EMAIL PROTECTED]> wrote:
>Going the other direction (to cross-compile on x86 for Alpha) seems
>to be impossible, or at least very hard, as cross-compiler performs
>various arithmetic operations in a target arithmetic and gcc currently
>assumes that it can fit them in a host registers.  Registers on
>Alpha are twice a width of those on Intel.

You know, actually, I *was* able to perform a preliminary port of GNAT
(an Ada 95 compiler melded with gcc 2.8.1) to the alpha by
cross-compiling from x86/linux (since an alpha/linux version didn't
exist).  So now I can compile Ada code on the alpha, provided I don't
use any of the tasking abilities (they haven't been ported yet ...).

So my experience is that it *is* possible to cross compile from an x86
to the alpha (well, at least from a pentium), and not only that, it's
possible to cross-compile a port of gcc as well!  I'm not sure if
floating point stuff will cross-compile, but basic integer stuff seems
to work fine.

-Albert
 computer is interport.net, user is aklee.

------------------------------

From: [EMAIL PROTECTED] (Sam E. Trenholme)
Subject: Ideas for ultra-high-performance web server
Date: 14 May 1999 23:15:12 -0700

In light of the recent Mindcraft benchmarks, and ZDnet's similar
benchmarks, the need for a web server solution that can handle the
ultra-high-traffic typical of benchmarks is needed for the Linux platform.
The way I am approaching this problem is that I am hacking thttpd to give
it the kind of features I need (I added virtual hosts on a single IP), and
then using that for NT-vs-Linux benchmarks.

Anyway, thttpd uses the select() model to handle multiple connections at
the same time.  The problem with the select() model is that, as I
understand it, it is very difficult to get this model to scale across
multiple processers in a SMP setup.  Therefore, I need some way of doing
this in Linux:

* Putting four of the same 100-base-t NIC in a Linux box.

* Binding one processer to each NIC in a four-way SMP system, and have one
  thttpd process for each NIC/processer combination.

(Note that, alas, I do not currently have access to a four-way SMP box to
 do this kind of testing on)

I am wondering how this can be done with Linux.  Mind you, I know this is
not practical in the "real world", but I am merely thinking about how to
set up a system that looks good in the kinds of benchmarks PHM types read.

To make dynamic content look really good, I plan on hacking thttpd to
directly, in its C code, make the needed dynamic content.  The goal:  Have
dynamic content benchmark numbers that dust anything else out there. 

The goal is not to set up a practical system as much as it is to set up a
"Yes, Linux eats NT for breakfast in the web serving benchmarks" web
server.

- Sam

P.S.  My hack of thttpd can be seen here:

        http://www.samiam.org/samhttpd

(The reason for the name change is so it is not confused with thttpd
 proper, since my changes may go against the author's goals for thttpd)


------------------------------

From: "Soohyung Lee" <[EMAIL PROTECTED]>
Subject: Kernel-Thread in Linux?
Date: Sat, 15 May 1999 15:23:05 +0900

There is a function like this in /asm-i386/unistd.h
Does Linux(2.0.36) support Kernel-level Thread ?


static inline pid_t kernel_thread(int (*fn)(void *), void * arg, unsigned
long flags)
{
        long retval;

        __asm__ __volatile__(
                "movl %%esp,%%esi\n\t"
                "int $0x80\n\t"         /* Linux/i386 system call */
                "cmpl %%esp,%%esi\n\t"  /* child or parent? */
                "je 1f\n\t"             /* parent - jump */
                "pushl %3\n\t"          /* push argument */
                "call *%4\n\t"          /* call fn */
                "movl %2,%0\n\t"        /* exit */
                "int $0x80\n"
                "1:\t"
                :"=a" (retval)
                :"0" (__NR_clone), "i" (__NR_exit),
                 "r" (arg), "r" (fn),
                 "b" (flags | CLONE_VM)
                :"si");
        return retval;
}




------------------------------

From: "G. Sumner Hayes" <[EMAIL PROTECTED]>
Subject: Re: Glibc rant
Date: Sat, 15 May 1999 02:35:27 -0400

"Paul D. Smith" wrote:
> I don't know; since SSH2's licensing is so ridiculous I'm completely
> ininterested in finding out, or helping them solve any portability
> problems they might have.  I'd merely have to delete it once I got it
> compiled, anyway, since I can't think of a single legal thing I could 
> do with it.

It's worth noting http://srp.stanford.edu/srp at this point.  The
web pages only say that it's free for non-commercial use, but according
to some of the developers it's recently been fully open-sourced and
freed for all use (including commercial). Not only that, but there are 
Windows SRP versions of telnet and ftp.  Java versions, too.  And no RSA 
or other patented algorithms are used.  It's faster than SSH.  With PAM 
support.  And there are exportable versions that provide authentication 
without encryption.

Of course, for larger installations Kerberos is worth investigating.

--Sumner

------------------------------

From: "Soohyung Lee" <[EMAIL PROTECTED]>
Subject: Slow Interrupt vs. Fast Interrupt
Date: Sat, 15 May 1999 17:11:58 +0900

What are the differences between
Slow interrupt, Fast Interrupt, and System call ?
Can you tell me ?
Thanks ..



------------------------------

From: [EMAIL PROTECTED] (Phil Howard)
Subject: Re: Hostile Takeover of Linux
Date: Fri, 14 May 1999 16:47:23 GMT

On Fri, 14 May 1999 03:07:59 GMT Christopher B. Browne ([EMAIL PROTECTED]) 
wrote:

| On 13 May 1999 20:21:48 -0600, Joe Pfeiffer <[EMAIL PROTECTED]> posted:
| >dan <[EMAIL PROTECTED]> writes:
| >
| >>                        Too bad guy's it was all for nothing.
| >>                        Sylvan has tagged us all as idiots if we
| >>                        don't get their Linux certification.
| >
| >I know I'm going to be sorry I asked this, but...  what in the *hell*
| >are you talking about?
|
| It's probably some misreading of the LPI certification scheme, which
| is outsourcing test administration to Sylvan Prometric.
|
| See <http://www.lpi.org> for more details.
|
| Yahoos from Yahoo can of course misread the goings-on as to provide
| trollable material.

If this is a Linux certification, will the test questions be limited to just
the Linux kernel?  Or will they also ask about matters specific to certain
distributions or installable programs?

Maybe LPI should get someone who is certified in HTML authoring to fix their
broken website.  The first cell of the first row of the first table has an
image specified as 274 pixels wide (the logo) and is placed in a cell that
is specified to be 133 pixels wide.

They don't come across to me as being very bright.

--
Phil Howard           KA9WGN
[EMAIL PROTECTED] [EMAIL PROTECTED]

------------------------------

From: "Dirk-Jan C. Binnema" <[EMAIL PROTECTED]>
Subject: Re: Distributed processing without batch?
Date: Fri, 14 May 1999 16:03:10 +0200


lon wrote in message <7hfqrv$8o$[EMAIL PROTECTED]>...
>Perhaps a newbie issue, but I haven't picked up relevant info on FAQs,
>etc...
>  I have setup a 10-node RH5.2 cluster to use as essentially
>a single multiprocessor machine.  This is a simple farm but not really
>Beowulf-type, since PVM/MPI is not an option, given legacy binaries,
>dynamically changing academic code and no real need for parallelization.
>Our apps are generally fairly short (minimal io, virtually no swapping, < 5
>mins dedicated run time each on generic PII 350, SCSI Ultra 2, 5 Gb RAM),
>but we run each app > 10,000 times.  What is needed is essentially a
>non-SMP version of a multiprocessor box.  Is it possible to have a user
>login to a single server, submit an application, and have that application
>transparently distributed to an available processor?  We are using condor,
>and have checked out DQS (minimally).  Condor serves our needs reasonably
>well, but the batch file requirements are superfluous, as all clients are
>dedicated to the cluster.  Moreover, condor gets pretty confused (i.e.,
>hangs for hours, RH5.2 on dual 350 PII, 512 Mb RAM, Gateway ALR 7200
>server, Celeron 366 clients) when asked to queue > 5000 apps.  What is
>really needed is a tranparent cluster alternative to a traditional SMP
>kernel:  submit a job and have it find its way to the least busy processor.
> Is there any way to do this with a cluster?  By its description, Mosix
>(mosix.cs.huji.ac.il) fits the bill perfectly, but they aren't distributing
>their code due to requests for funding...
>  Yes, I've read a bit about Beowulf, IPmasquerading, and am aware of
>extreme linux, so please don't send me to the FAQs unless I've missed the
>obvious.
>  -Lon


I'm not really sure it fits your bill, but it might:
GNU Queue (http://bioinfo.mbb.yale.edu/~wkrebs/queue.html)

Cheers,
    Dirk-Jan.







------------------------------

From: bryan <[EMAIL PROTECTED]>
Subject: Reliable (!) nic for 2.2 kernel?
Crossposted-To: comp.os.linux.networking
Date: Sat, 08 May 1999 14:13:16 GMT

my tulip card is totally unreliable.  I can bring it down with an ftp
xfer (local lan) at 10 or 100, in a minute or less.  network hangs and
will NOT be reset by software.

with a T1 download, it can hang the network in a few hours.  this sucks ;-( 

even a '/etc/rc.d/init.d/network stop; /etc/rc.d/init.d/network start'
won't fix the card.  only a HARD reboot will reset it.

has anyone done any load testing on the 2.2 kernel and found a
RELIABLE nic card they could recommend?  one that stays up under close
to full load on a local 10/100 lan?

(btw, I now have several dec tulip cards for sale.  I refuse to use
them in 2.2 kernel boxes I have here - sigh.)

-- 
Bryan

------------------------------

From: [EMAIL PROTECTED] (Michael Proto)
Crossposted-To: redhat.general,comp.os.linux.misc
Subject: Re: USB Support
Date: 15 May 1999 07:52:07 GMT

Followup-To: 

On Sat, 15 May 1999 01:33:54 GMT, [EMAIL PROTECTED] muttered:
>On 14 May 1999 17:16:55 GMT, Mark Hahn
>>> <[EMAIL PROTECTED]> wrote: 
>>> "It can access the USB hub, and tell you what's on the hub.  Actually
>>> making use of the devices that are found may require drivers that
>>> aren't There Yet..."
>>
>>that's a bit pessimistic.  
>
>A bit, yes.
>
>>linux-usb people report that mice and kbds
>>work fine enough to be depended on.  there are sporadic reports of,
>>for instance, working usb video cameras, and at least active development
>>of storage devices.
>
>I see in the 2.8 kernel drivers for keyboards, that claims to be
>workable, and a driver that *looks* like it's some sort of "multiport
>serial thing."  I didn't see mice, but may have misread something.
>
>At any rate, it *is* fair to say that what's there now is:
>a) Somewhat beta-quality code for low level support; when the code's
>so new it's rather early to call it "mature."
>
>b) *Some* device drivers.  
>
>USB speakers are coming Real Soon Now; support for additional devices
>will come on a device-by-device basis, and it is too early to predict
>how quickly that will be.
>
>USB-ZIP drives are a neat option; who knows when?
>
>-- 
>"You're one of those condescending Unix computer users!"
>"Here's a nickel, kid.  Get yourself a real computer" - Dilbert.
>[EMAIL PROTECTED] <http://www.ntlug.org/~cbbrowne/lsf.html>

IIRC, USB Zip drives *ARE* available. I've seen some that have a
transparent-blue case that resembles a <shudder> iMAC.


-- 
-] Michael Proto [-
-] MCP [-
-] Happy Linux user since 1997 [-
ERROR: REALITY.SYS Corrupted! Reboot universe? (Y/n)

------------------------------


** FOR YOUR REFERENCE **

The service address, to which questions about the list itself and requests
to be added to or deleted from it should be directed, is:

    Internet: [EMAIL PROTECTED]

You can send mail to the entire list (and comp.os.linux.development.system) via:

    Internet: [EMAIL PROTECTED]

Linux may be obtained via one of these FTP sites:
    ftp.funet.fi                                pub/Linux
    tsx-11.mit.edu                              pub/linux
    sunsite.unc.edu                             pub/Linux

End of Linux-Development-System Digest
******************************

Reply via email to