Linux-Development-Sys Digest #932, Volume #7 Sun, 4 Jun 00 15:13:12 EDT
Contents:
Re: TCP/IP and Drivers - Making the connections. (Rick Ellis)
Re: awful performance of Linux shared memory (H. Peter Anvin)
Re: A problem with LinuxPthreads ("Jason Johnson")
Re: awful performance of SysV shared memory on Linux ("Mladen Adamovic")
Re: awful performance of Linux shared memory ("Mladen Adamovic")
Re: awful performance of SysV shared memory on Linux (Stefaan A Eeckels)
Re: awful performance of Linux shared memory (Kaz Kylheku)
Re: Where to get Java Compiler (Mark Bratcher)
ALSA drivers with kernel version 2.4.0-test1 (Patrice Belleville)
Problems with GCC (Panu =?iso-8859-1?Q?Pitk=E4m=E4ki?=)
Re: ALSA drivers with kernel version 2.4.0-test1 (Sean)
Re: ALSA drivers with kernel version 2.4.0-test1 (David Efflandt)
Re: Winmodems )Re: Need ideas for university funded project for linux)
([EMAIL PROTECTED])
Re: help - max and min in 16 bits signed (nicolas delon)
Re: Increase the priority of a thread... how? (Nix)
Re: mmap on /dev/kmem: sample code? (Nix)
Re: viruses on Linux (Nix)
Re: Where to get Java Compiler ("harshal patil")
drivers/net/syncppp.c maintainer? (Allan Latham)
----------------------------------------------------------------------------
From: [EMAIL PROTECTED] (Rick Ellis)
Subject: Re: TCP/IP and Drivers - Making the connections.
Date: 3 Jun 2000 23:24:54 GMT
In article <W2DZ4.20$[EMAIL PROTECTED]>, Michael <[EMAIL PROTECTED]> wrote:
>I have to ask about drivers and TCP/IP. I have been wondering about a
>project I am on and I need to know about what needs to be implemented to
>make a NIC driver communicate with the rest of the TCP/IP protocol to make
>the NIC/driver fully functional. Can anyone help me out with the
>specifications/requirements?
ftp://ftp.uk.linux.org/pub/linux/alan/kernel-api.pdf
and read the source of other NIC drivers.
--
http://www.fnet.net/~ellis/photo/linux.html
------------------------------
From: H. Peter Anvin <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development,yu.os.unix
Subject: Re: awful performance of Linux shared memory
Date: 3 Jun 2000 17:11:41 -0700
Followup to: <8hc3ap$r7l$[EMAIL PROTECTED]>
By author: "Mladen Adamovic" <[EMAIL PROTECTED]>
In newsgroup: comp.os.linux.development.system
>
> Calculating of function "calculate" I did in separate processes and used IPC
> concepts to get values between processes.
>
> If you have
> int my_int;
> in shared memory region and if you in one process change value of my_int, it
> takes ~ 10 ms to get noticed in another process that value is changed!
>
It takes ~10 ms before the other process get scheduled! Congratulations!
> It seems like problem with Linux cache, and bad Linux implementation of
> shared memory.
Nope. It's just that your program is incredibly stupid on a
single-CPU machine.
> See attachments:
> sock.c IPC communicating using socket communication
> quo.c IPC communicating using message quoues
> shm.c IPC communicating using shared memory
>
> Ran on single AMD K6/I-233 MHz with 64 MB RAM.
'nuff said.
-hpa
--
<[EMAIL PROTECTED]> at work, <[EMAIL PROTECTED]> in private!
"Unix gives you enough rope to shoot yourself in the foot."
------------------------------
From: "Jason Johnson" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps
Subject: Re: A problem with LinuxPthreads
Date: Sat, 3 Jun 2000 20:10:17 -0500
James Connell wrote in message <[EMAIL PROTECTED]>...
>Hello,
>
<SNIP>
>Jim
>
>
>--
>Jim Connell [[EMAIL PROTECTED]] - Research Engineer, IFS International
>
>010110010110111101110101 011000010111001001100101
>01100001 0110011101100101011001010110101100100001
>
You forgot the 00100000's (space). I may be a geek, but I have good binary
grammer. :)
------------------------------
From: "Mladen Adamovic" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development,yu.prog.c,yu.os.unix
Subject: Re: awful performance of SysV shared memory on Linux
Date: Sun, 4 Jun 2000 02:13:22 +0200
Reply-To: "Mladen Adamovic" <[EMAIL PROTECTED]>
Using sinchronisation my problem disappear. Shared memory
has good performance test on Linux ;-).
Sorry, it was IPC newbie problem.
Somebody may write following to "?IPC FAQ?":
Q: Why my program using shared memory runs to slow?
A: Use sinchronisation, for example, semaphores.
My signature was : #exclude <linux.h>
Now I'm changing it to : import java.*;
Thanks for help to Stefaan Eeckels, Juergen Heinzl, Aleksandar Samardic and
Branimir Maksimovic.
------------------------------
From: "Mladen Adamovic" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development,yu.os.unix
Subject: Re: awful performance of Linux shared memory
Date: Sun, 4 Jun 2000 02:25:00 +0200
Reply-To: "Mladen Adamovic" <[EMAIL PROTECTED]>
Using sinchronisation my problem disappear. Shared memory
has good performance test on Linux ;-).
Sorry, it was IPC newbie problem.
Somebody may write following to "?IPC FAQ?":
Q: Why my program using shared memory runs to slow?
A: Use sinchronisation, for example, semaphores.
My signature was : #exclude <linux.h>
Now I'm changing it to : import java.*;
Thanks for help to Stefaan Eeckels, Juergen Heinzl, Aleksandar Samardic and
Branimir Maksimovic.
------------------------------
From: [EMAIL PROTECTED] (Stefaan A Eeckels)
Crossposted-To: comp.os.linux.development,yu.prog.c,yu.os.unix
Subject: Re: awful performance of SysV shared memory on Linux
Date: Sun, 4 Jun 2000 01:04:36 +0200
In article <8haru6$r1b$[EMAIL PROTECTED]>,
"Mladen Adamovic" <[EMAIL PROTECTED]> writes:
>> for(int i=0;i<1000;i++)
>> Time to execute this program presudo-concurrent was 10 minutes!!!
>> See attach.
>
> In my program
> #define MAX_N 20
> this value shows number of iterations in pseudoconcurrent loop equivalent to
> this one:
> for(int i=0;i<MAX_N;i++) printf("%d : %d",i,i);
> If you change MAX_N to following :
> #define MAX_N 10000
> my program runs very slow (~ 10 minutes).
>
> See attach now, please.
I had a look at the source code, and in my opinion the
problem lies not so much with the shared memory, but with
the algorithm.
Let me explain. Your 4 processes aren't doing any I/O at
all, and thus each fills its time slice to the max. That's
why removing the printf() in the server function actually
_slows down_ the execution, and why on a multiprocessor it
executes like greased lightning.
The processes themselves run OK, it's just that the server
only gets around serving when a client has exhausted its
time slice, then exhausts its own time slice, etc. The fact
that you get huge "idle loops" counts is further proof that
your processes run to the end of their time slices.
It also explains why my AMD K6 was _so_ much slower: unlike
the PIII, which runs GNOME and a cpu monitor in the task bar,
the AMD is essentially idle (no GUI) [results sent as private
mail to Mladen].
--
Stefaan
--
--PGP key available from PGP key servers (http://www.pgp.net/pgpnet/)--
Ninety-Ninety Rule of Project Schedules:
The first ninety percent of the task takes ninety percent of
the time, and the last ten percent takes the other ninety percent.
------------------------------
From: [EMAIL PROTECTED] (Kaz Kylheku)
Crossposted-To: comp.os.linux.development,yu.os.unix
Subject: Re: awful performance of Linux shared memory
Reply-To: [EMAIL PROTECTED]
Date: Sun, 04 Jun 2000 02:03:39 GMT
On Sun, 4 Jun 2000 02:25:00 +0200, Mladen Adamovic <[EMAIL PROTECTED]> wrote:
>My signature was : #exclude <linux.h>
How original!
--
#exclude <windows.h>
------------------------------
From: Mark Bratcher <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps,comp.os.linux.misc
Subject: Re: Where to get Java Compiler
Date: Sat, 03 Jun 2000 23:18:07 -0400
Tandem Guy wrote:
>
> Hello. I'm pretty new to linux (redhat 6.0) and am interested in
> learning java. Where can I get a free java compiler to run on linux?
> Thanks in advance for any help anyone can offer.
man guavac
--
Mark Bratcher
mailto:[EMAIL PROTECTED]
=========================================================
Escape from Microsoft's proprietary tentacles: use Linux!
------------------------------
From: Patrice Belleville <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.portable
Subject: ALSA drivers with kernel version 2.4.0-test1
Date: 03 Jun 2000 22:17:39 -0700
Hi,
I have been trying to install the ALSA drivers on my Sony
VAIO-PCGF 430, running kernel version 2.4.0-test1 (which has a Yamaha
DS-XG soundcard), with no success. I may very well have done something
wrong, but before I spend any more time trying to figure it out, can
anyone confirm that the drivers should indeed work with the 2.4 kernels? I
could not find anything in the ALSA documentation mention kernel versions
other than 2.0 or 2.2. Thank you,
Patrice
--
**------------------------------------------------------------------------
** Patrice Belleville ([EMAIL PROTECTED]) (604) 822-9870
** Instructor and Departmental advisor, Department of Computer Science
**------------------------------------------------------------------------
------------------------------
From: Panu =?iso-8859-1?Q?Pitk=E4m=E4ki?= <[EMAIL PROTECTED]>
Subject: Problems with GCC
Date: Sun, 04 Jun 2000 12:43:29 +0300
I've been building my "own" Linux with some help from
Linux-From-Scratch-HOWTO. Anyway, I've encountered a strange error with
gcc. I've installed the following programs to my new ext2-partition
from RedHat 6.1.
sysvinit 2.78
bash 2.03
binutils 2.9.1
bzip2 1.2.4
diffutils 2.7
fileutils 4.0
gcc 2.95.2
glibc 2.1.3 (/w linuxthreads & crypt)
grep 2.4.2
gzip 1.2.4a
make 3.78.1
sed 3.02
sh-utils 2.0
tar 1.13
textutils 2.0
util-linux 2.10f (only swapon, swapoff, mount, umount)
Everything is linked statically except glibc. /dev and everything else
is configured enough to run sulogin and try the system. Kernel version
is 2.2.15, and it's compiled without modules.
When I'm compiling a simple hello.c program:
[root]# gcc hello.c -o hello
(approx 10 seconds passes.. and then: )
cpp: installation problem, cannot exec `cpp': Argument list too long
[root]#
So what's wrong? According to the HOWTO, everything should be set up to
use gcc and compile programs.
------------------------------
From: Sean <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.portable
Subject: Re: ALSA drivers with kernel version 2.4.0-test1
Date: Sun, 04 Jun 2000 06:13:06 -0400
ALSA 0.5.7 is broken with kernel >2.3.99pre9 ... supposedly the CVS
(0.6.0pre1 I believe) will work, but I've been unable to get the libs to
compile.
Sean
Patrice Belleville wrote:
>
> Hi,
>
> I have been trying to install the ALSA drivers on my Sony
> VAIO-PCGF 430, running kernel version 2.4.0-test1 (which has a Yamaha
> DS-XG soundcard), with no success. I may very well have done something
> wrong, but before I spend any more time trying to figure it out, can
> anyone confirm that the drivers should indeed work with the 2.4 kernels? I
> could not find anything in the ALSA documentation mention kernel versions
> other than 2.0 or 2.2. Thank you,
>
> Patrice
------------------------------
From: [EMAIL PROTECTED] (David Efflandt)
Crossposted-To: comp.os.linux.portable
Subject: Re: ALSA drivers with kernel version 2.4.0-test1
Date: 4 Jun 2000 13:50:26 GMT
Reply-To: [EMAIL PROTECTED]
On 03 Jun 2000 22:17:39 -0700, Patrice Belleville <[EMAIL PROTECTED]> wrote:
>
> I have been trying to install the ALSA drivers on my Sony
>VAIO-PCGF 430, running kernel version 2.4.0-test1 (which has a Yamaha
>DS-XG soundcard), with no success. I may very well have done something
>wrong, but before I spend any more time trying to figure it out, can
>anyone confirm that the drivers should indeed work with the 2.4 kernels? I
>could not find anything in the ALSA documentation mention kernel versions
>other than 2.0 or 2.2. Thank you,
The current ALSA 0.5.7 drivers do not even support your sound chip, so I
am not sure what you are trying to install. The 0.6.0 development version
does have Yamaha support, but it is not ready for release yet and I have
not figured out which complicated set of modules it needs.
If you need sound now, the http://www.opensound.com/ drivers with Yamaha
YMF option work fine with stable kernels. But I have not checked lately
if there is a version for development kernels.
I am using the opensound.com drivers with kernel 2.2.15 patched for DVD
support on my F450. It does play DVD sound, but the apparently DVD video
has only been developed for Matrox cards so far.
--
David Efflandt [EMAIL PROTECTED] http://www.de-srv.com/
http://www.autox.chicago.il.us/ http://www.berniesfloral.net/
http://hammer.prohosting.com/~cgi-wiz/ http://cgi-help.virtualave.net/
------------------------------
From: [EMAIL PROTECTED]
Crossposted-To:
comp.os.linux.development,comp.os.linux.development.apps,comp.os.linux.misc,comp.os.linux.setup,comp.os.linux.advocacy,comp.os.linux
Subject: Re: Winmodems )Re: Need ideas for university funded project for linux)
Date: 4 Jun 2000 15:57:06 GMT
On Sun, 1 Jun 3900 12:21:14, [EMAIL PROTECTED] wrote:
> David Steuber <[EMAIL PROTECTED]> writes:
>
> > Maybe what you need to do is buy a power supply that is actually rated
> > for the load you put on it. ;-)
>
> Yeah. That's the plan. My motherboard manual says 300W, which is
> what I have now (I give it another two months, it's starting to make
> noise and smell like burning electronics). Problem is, it's damn hard
> to find >250W power supplies that don't come in $250 hot-swap
> redundant 400W convifugrations.
>
> Probably I'll end up just buying a new case (with the aforementioned
> dual hot-swappable 400W supplies) because my current one is completely
> inadequate for the task. Too bad all the ones I'm looking at cost
> $850, which I refuse to pay.
>
> --
> Eric P. McCoy ([EMAIL PROTECTED])
>
> non-combatant, n. A dead Quaker.
> - Ambrose Bierce, _The Devil's Dictionary_
Are you sure you're not blowing (sucking) huge quantities of dust
or
other stuff into your P/S? If not, you should probably get an old
LINEAR
power supply in the 60 to 100 pound (weight) class. These can be
gotten for
next to nothing and offer lots of headroom (over-capacity). Plus you
can
monitor all parameters such as heat-sink temp, voltage and current
to
your heart's content. No need for any part of it to get over the
'slightly warm'
level of heat, so it will consequently last 'forever'.
Vacuo
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Little-known fact: Dogs love carrots.
------------------------------
From: nicolas delon <[EMAIL PROTECTED]>
Subject: Re: help - max and min in 16 bits signed
Date: Sun, 04 Jun 2000 17:57:12 +0200
==============27A2FB351FEE0586F246D313
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
TheOne a �crit :
> in 16 bits signed, is this formula ok
>
> max: (2^n-1)-1
> min: -((2^n)-1)
>
> thanks.
max: 2^16 - 1 = 65535
min : -2^16 = -65536
--
| Nicolas Delon --- EPITA student |
| e-mail at home: [EMAIL PROTECTED] |
| at school: [EMAIL PROTECTED] |
| web site: http://www.epita.fr/~delon_n |
| Linux User |
==============27A2FB351FEE0586F246D313
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
TheOne a écrit :
<blockquote TYPE=CITE>in 16 bits signed, is this formula ok
<p>max: (2^n-1)-1
<br>min: -((2^n)-1)
<p>thanks.</blockquote>
max: 2^16 - 1 = 65535
<br>min : -2^16 = -65536
<br>
<pre>--
| Nicolas Delon --- EPITA
|student |
| e-mail at home: [EMAIL PROTECTED] |
| at school: [EMAIL PROTECTED] |
| web site: <A
|HREF="http://www.epita.fr/~delon_n">http://www.epita.fr/~delon_n</A> |
|
| Linux
|User
| |</pre>
</html>
==============27A2FB351FEE0586F246D313==
------------------------------
From: Nix <$}xinix{[email protected]>
Subject: Re: Increase the priority of a thread... how?
Date: 04 Jun 2000 13:14:00 +0100
"Norman Black" <[EMAIL PROTECTED]> writes:
> In Linux only real time threads (SCHED_RR, SCHED_FIFO) have a priority.
No. All tasks do, even SCHED_OTHER ones.
> Applications start as SCHED_OTHER. In Linux if you look at the min and max
> values for priorities for SCHED_OTHER threads you see that (min = 0) and
> (max = 0). Other Unix systems may differ. I believe that only super user
> processes can be real time processes, therefore the super user priority
> change restriction.
!!! No! What do you think nice(1) does?
Only the superuser may raise the priority of a task; mere plebs may only
lower it. (This is to stop plebs starving other plebs of resources;
they're selfish buggers, you know.)
> Be careful of real time threads since they can starve all other threads in
> the system of CPU time. Most of the kernel threads are running as
The problem is worse than that. Think `priority inversion'.
--
`It's as if Hal Clement expanded fragments of a novel
by H.P. Lovecraft.' --- Jake Kesinger on the novel _Darwinia_.
------------------------------
From: Nix <$}xinix{[email protected]>
Subject: Re: mmap on /dev/kmem: sample code?
Date: 04 Jun 2000 13:05:48 +0100
[EMAIL PROTECTED] (Emmanuel Dreyfus) writes:
> I'm looking for some sample code that mmap an area of /dev/kmem in a
> user process, in order to understand what's wrong with my code.
If you want to do this, it is usually a mistake; you should export the
information from the kernel in another way (a device or /proc
node). This is *very* much less fragile, easier to maintain, and more
secure.
--
`It's as if Hal Clement expanded fragments of a novel
by H.P. Lovecraft.' --- Jake Kesinger on the novel _Darwinia_.
------------------------------
From: Nix <$}xinix{[email protected]>
Subject: Re: viruses on Linux
Date: 04 Jun 2000 13:28:31 +0100
Safuat Hamdy <[EMAIL PROTECTED]> writes:
> But languages that allow to gain
> unrestricted control of your system are a root of evil, thus always turn
> them off.
I think you mean `ensure they can't execute without your knowledge', not
`turn them off'. It would be hard to turn off Emacs Lisp, for instance,
and keep a functioning Emacs.
--
`It's as if Hal Clement expanded fragments of a novel
by H.P. Lovecraft.' --- Jake Kesinger on the novel _Darwinia_.
------------------------------
From: "harshal patil" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps,comp.os.linux.misc
Subject: Re: Where to get Java Compiler
Date: Sun, 4 Jun 2000 17:20:23 +0530
just go to www.java.sun.com .though i don't remember excact URL, but on
www.java.sun.com & look for JDK or java runtime machine. as you are new to
java you should download JDK [java developement kit].
Mark Bratcher <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> Tandem Guy wrote:
> >
> > Hello. I'm pretty new to linux (redhat 6.0) and am interested in
> > learning java. Where can I get a free java compiler to run on linux?
> > Thanks in advance for any help anyone can offer.
>
> man guavac
>
> --
> Mark Bratcher
> mailto:[EMAIL PROTECTED]
> ---------------------------------------------------------
> Escape from Microsoft's proprietary tentacles: use Linux!
------------------------------
Date: Sun, 04 Jun 2000 20:09:05 +0200
From: Allan Latham <[EMAIL PROTECTED]>
Subject: drivers/net/syncppp.c maintainer?
Anyone know who maintains
drivers/net/syncppp.c
I have an obscure problem and need some help with understanding the
diagnostics.
Thanks
Allan/
------------------------------
** 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
******************************