Linux-Development-Sys Digest #973, Volume #7     Sat, 24 Jun 00 17:13:15 EDT

Contents:
  Re: help help about OS (Lew Pitcher)
  Re: Raid (MD not LVM) and 2.2.10->2.2.16 (Markus Kossmann)
  Re: LILO Configuration Problem (Lac Hao Viet)
  Re: No current->timeout (Peter Pointner)
  Re: process control ("netghost")
  Re: per process memory limit? (x86) (David Welch)
  Monitoring isdn usage (Conan)
  Re: OT: Re: CodeWarrior for Linux. Comments ? (Nix)
  Re: running remote untrusted code (Nix)
  Re: bootlogos (Dennis Schoen)
  window managers (Stephan Beyer)
  Not Quite C (Stephan Beyer)
  Re: running remote untrusted code (David Wragg)
  how to find the cpu clock frequency? (x86) (Gary Funck)
  Re: Using C, what ports are being used by which programs? (Vic Abell)
  Re: Not Quite C (Erik Max Francis)
  Re: function to get current year (Nix)
  Re: OT: Re: CodeWarrior for Linux. Comments ? (MWRon)
  Re: bootlogos ("Spehro Pefhany")

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

From: Lew Pitcher <[EMAIL PROTECTED]>
Subject: Re: help help about OS
Date: Fri, 23 Jun 2000 20:19:52 -0400

fonz wrote:
> 
> help help about OS
> tomorrow we have a exam of operating system
> can anyone give brief defines the following
> if u can explain one or two of the following
> it's also enough for me
> many thank you
> but please please hurry
> thank you again
[about 30 topics snipped]

That's a wide range of topics. Are you _sure_ you attended classes
this year? Perhaps you should think about taking the course again.

-- 
Lew Pitcher

Master Codewright and JOAT-in-training

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

From: Markus Kossmann <[EMAIL PROTECTED]>
Subject: Re: Raid (MD not LVM) and 2.2.10->2.2.16
Date: Sat, 24 Jun 2000 07:36:23 +0200

Konstantinos Agouros wrote:
> 
> Hi,
> 
> I must have missed somehow what might have changed between 2.2.10 and 2.2.16.
> There is no raidpatch for 2.2.16 so I suppose it should be included in 2.2.16.
Wrong, 2.2.16 comes with the old raid code , the patch for 2.2.16 can be
found on 
http://people.redhat.com/mingo/raid-patches/
--
Markus Kossmann                                    
[EMAIL PROTECTED]

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

From: Lac Hao Viet <[EMAIL PROTECTED]>
Subject: Re: LILO Configuration Problem
Date: Sat, 24 Jun 2000 07:55:31 GMT

In article <[EMAIL PROTECTED]>,
  [EMAIL PROTECTED] wrote:
> [Posted and mailed]
>
> In article <[EMAIL PROTECTED]>,
>       "Jay Randall" <[EMAIL PROTECTED]> writes:
> > Hello,
> >
> > I am rebuilding the kernel. The machine I am using is dual bootable
with
> > Windows NT and Linux.  As a backup to the newly built kernel not
working, I
> > am keeping a backup of the original kernel to boot with.  As a test,
I
> > copied the kernel to *.OLD, and added an entry in lilo.conf to point
to the
> > newly created backup.  I then ran lilo.  The result of this was a
warning
> > about the /dev/hdb7 not being on the first drive, followed by
comments about
> > adding Linux *, LinuxOld and dos.
> > When I boot, I choose Linux from the Windows OS Loader, which
invokes LILO.
> > However, now that I have changed lilo.conf, LILO prints out LIL- and
locks
> > up.
> > Does anybody have an idea why this happens?
> > Is there some problem with LILO not being on the MBR?
> >
> > P.S. I subsequently went back to the old lilo.conf, ran lilo again,
and I am
> > still getting the same results (LIL- and locks up).
> >
> > Thanks for the help,
> > Jay.
> >
> Did you rename the map file too?  You have to keep the kernel file and
map file synchronized so LILO can find both.  Each version (I have three
Linux versions installed) in /boot has both a kernel file and a matching
map file.  I match them by giving each map/kernel pair a common suffix -
any one will do as long as it is different from other pairs.  I have
dual-booted W98 with Linux and never had to explicity copy the boot
sector as Jean-Philip Robichaud suggests, but there may be some special
issue(s) with NT.
>

LILO doesn't use  System.map; some user programs do.


Sent via Deja.com http://www.deja.com/
Before you buy.

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

From: Peter Pointner <[EMAIL PROTECTED]>
Subject: Re: No current->timeout
Date: 24 Jun 2000 10:50:05 +0200

[EMAIL PROTECTED] wrote:
> I'm writing a device driver for a adc-dac card.
> On reading from card i have to poll until the
> data are ready.

> I was using the following code inside a loop:
>   current->timeout=jiffies+daad_timeout;
>   current->state= TASK_INTERRUPTIBLE;
>   schedule();
>   current->timeout=0;

> But in the kernelversions 2.2.5 and above the timeout
> does not exist in the struct task_struct.
> What can i use instead?

You can use:
  current->state= TASK_INTERRUPTIBLE;
  schedule_timeout(daad_timeout);

Include <linux/sched.h>, and read /usr/src/linux/kernel/sched.c
if you want documantation (UTSL, you know).

Peter


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

From: "netghost" <[EMAIL PROTECTED]>
Subject: Re: process control
Date: Sat, 24 Jun 2000 17:31:34 +0800
Reply-To: "netghost" <[EMAIL PROTECTED]>

 You should read more about signal
machanism to write this programm
"Lee Kang Won" <[EMAIL PROTECTED]> wrote in message
news:m0D45.3$[EMAIL PROTECTED]...
> Hi!
>
> I want to examine processes that I've started and also check it's idle
> time(right?) and if it's over a specified value, kill it.
> I'm going to (frankely, have to...) write a C program, but have no idea
> how to make it. I just think I should get some info. from kernel's process
> table.
> would source code of 'ps' and 'kill' written in C be of help?
>
> Any suggestion or idea would be appreciated.
> thanks in advance.
>
>
>
>
>



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

From: David Welch <[EMAIL PROTECTED]>
Subject: Re: per process memory limit? (x86)
Date: 24 Jun 2000 09:57:59 GMT

Paul Secinaro wrote
>
>I apologize if this is a faq, but I can't seem to find the answer online.
>Anyway, what is the maximum amount of memory the current x86 Linux kernel
>can address per process?  I am running large digital circuit simulations
>and have recently blown out the 2GB per-process limit of WinNT.  Since our
>simulation tools are also available on Linux, we were hoping we could get
>a little more headroom for our x86 boxes before having to jump to a 64-bit
>processor system.  I believe I've heard the figure 3.75GB tossed around,
>but I can't find anything definite.
>
Its 3GB by default in 2.2.16, I don't think there is an option to adjust
it upwards. Unfortunately because of a pretty fundamental architectural 
feature (or bug) the total size of physical memory plus the total size
of the virtual address space is limited to 4GB. So with 3.75GB address space
you could only use 256MB of RAM.


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

From: [EMAIL PROTECTED] (Conan)
Subject: Monitoring isdn usage
Date: Sat, 24 Jun 2000 12:53:08 GMT

Hi

I have been working on a program that shows the user who's calling
(with GNOME). This was not so hard, but the difficulties come when I
try to read "all" incoming (and outgoing) calls. /dev/isdninfo only
shows the activity done by the actual isdn-card, and not any other
telephones/faxes on the isdn-net. Do anyone have ANY clues on how to
solve this problem - or who to ask ?

I've tried the mailinglist at isdn4linux.de and read the public faq -
with no results.

At the same time - it has to be possible, because the isdnlog deamon
logs it all. One solution is ofcourse to do a "tail -f isdn-log-file",
but I believe there must be a better way.

Conan
[EMAIL PROTECTED]  

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

From: Nix <$}xinix{[email protected]>
Subject: Re: OT: Re: CodeWarrior for Linux. Comments ?
Date: 24 Jun 2000 02:25:59 +0100

Kent Sorensen <[EMAIL PROTECTED]> writes:

> I expect the project to deal with dependencies and link order and arcane
> stuff like that.

make does more than link order management.

Things I often have to do with make:

- automatic source fetching from CVS/RCS
- handling of autogenerated code (yacc, lex, and a multitude of other code
  generators)
- automatic I18N updating from the sources

and, well, lots of other stuff.

Can CW do that? If it can, it's probably got a make clone inside it.

-- 
> ... knowing the alignment of Orcs in AD&D.
Doubleword.
  --- David Jacoby and Greg Andrews in the Monastery

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

From: Nix <$}xinix{[email protected]>
Subject: Re: running remote untrusted code
Date: 24 Jun 2000 02:29:02 +0100

Brennan Cheung <[EMAIL PROTECTED]> writes:

> How could virii be a problem if there is no file access or IPC?  They will
> not have any access to anything except the processor and my API.

DoS attacks?

-- 
> ... knowing the alignment of Orcs in AD&D.
Doubleword.
  --- David Jacoby and Greg Andrews in the Monastery

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

From: [EMAIL PROTECTED] (Dennis Schoen)
Subject: Re: bootlogos
Date: Sat, 24 Jun 2000 16:41:36 +0200
Reply-To: [EMAIL PROTECTED]

On Thu, 22 Jun 2000 23:27:20 +0100, Charles Blackburn 
<[EMAIL PROTECTED]> wrote:
>On Wed, 21 Jun 2000 16:03:56 -0400, John Gluck wrote:
>>It's essentialy a memory buffer for graphics. If you compile it into the
>>kernel, the console will operate using graphics mode for text.
>>On bootup you will see "a cute penguin logo" (quoted from a doc I read
>>somewhere) at the top of your screen.
>
>I think he want's to know whether he can change the penguin to another logo. 
>quite why he would want to do that, I don'e know :-)
When you want to change it, have a look at
http://home.sol.no/~dvedoy/

Dennis
-- 
| Dennis Schoen                   | "Contrary to popular belief,
| [EMAIL PROTECTED]           |  UNIX is a user-friendly Operating
| http://www.gt.owl.de/~dschoen/  |  System. It's just choosey about
| +49-5207-923701                 |  who its friends are."

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

From: Stephan Beyer <[EMAIL PROTECTED]>
Subject: window managers
Date: Sat, 24 Jun 2000 12:30:39 -0400

Hi,

do you know good tutorials or help for writing
window managers. I only want to write a little
one for me. My problem is that I don't like or
understand that Imakefile (xmkmf) in twm. And
I am NOT able to code in C++. So I am looking
for a tutorial for writing WMs in C by using
a usual GNU Makefile :-)

thanks
Stephan Beyer

-- 
Stephan Beyer
mailto:[EMAIL PROTECTED]
http://lightning.prohosting.com/~sbeyer/


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

From: Stephan Beyer <[EMAIL PROTECTED]>
Subject: Not Quite C
Date: Sat, 24 Jun 2000 12:43:28 -0400

Hi,

I'm interested in LEGO Mindstorm's NQC. Has anyone got
experience in it?
Or where to find information...?

thanks
Stephan Beyer

-- 
Stephan Beyer
mailto:[EMAIL PROTECTED]
http://lightning.prohosting.com/~sbeyer/


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

From: David Wragg <[EMAIL PROTECTED]>
Subject: Re: running remote untrusted code
Date: 24 Jun 2000 16:43:06 +0000

Brennan Cheung <[EMAIL PROTECTED]> writes:
> Yes.  I knew Java could do it, but I want the code to run native.  An
> interpreted language would be too slow.  I am looking to run anywhere from
> 10,000 to 100,000 processes and so you can imagine that Java would be too
> slow.

This doesn't follow at all.  If you have 100,000 fully fledged
processes, then the context switches could kill performance, whether
those processes are running native code, Java, or whatever.  A full
context switch on Linux/x86 costs several thousand cycles.  Multiply
that by 100,000, and much of the supposed efficiency of native code
will be eaten up by context switches (assuming that a significant
number of those processes get to run on a regular basis).
Furthermore, under Linux the 8KB of kernel stack per process will use
up a lot of memory.

In contrast, consider using a simple bytecode interpreter, running
many bytecode processes within a single Linux process.  Yes, it will
probably be much less efficient when actually running a process, but
because you don't have to do a full VM context switch when switching
between those processes, the cost of a context switch will be far
lower.  This reduction in context switch cost might well outweigh the
loss of performance associated with a bytecode interpreter, though it
depends on how frequent you intend context switches to be.

You can improve the performance by doing verification of the bytecode,
or various degrees of compilation.  As long as your language/bytecode
is "safe" (typically this means that programs cannot forge pointers
from integers), you can protect the processes from each other without
the need for separate VM contexts, and so have cheap context switches.
This is not possible with arbitrary native code.

Java uses the bytecode approach in order to run untrusted code
securely, of course.  But I'm not sure that any of the current crop of
JVM implementations would do what you want without quite a bit of
work.


David Wragg

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

From: Gary Funck <[EMAIL PROTECTED]>
Subject: how to find the cpu clock frequency? (x86)
Date: Sat, 24 Jun 2000 10:09:09 -0700

Hello, on a Pentium Pro system, I want to use the RDTSC instruction to
read the cycle counter to perform some low level time stamping.  I'd
like to convert those time stamps back into wall clock time, and
therefore need to know the cpu clock frequency, in a reasonably portable
way.  I'd also like to be able to determine that I'm running on (1) an
x86, and (2) a cpu that supports RDTSC, in a portable way, without
resorting to writing the necessary assembly code.  This timing code is
running at user level, so it doesn't have ready access to various
internal kernel variables that might have this sort of info.

One way, I think, to get the cpu cycle time is read /proc/cpuinfo, and
parse the field that gives the cycle time.  Is there something more
direct?  Same question for determining the type and capability of the
cpu.



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

From: [EMAIL PROTECTED] (Vic Abell)
Crossposted-To: 
comp.os.linux.development.apps,comp.unix.programmer,comp.unix.sco.programmer
Subject: Re: Using C, what ports are being used by which programs?
Date: 24 Jun 2000 17:34:06 GMT

[EMAIL PROTECTED] writes:

>jmt <[EMAIL PROTECTED]> wrote:
>> "Barry Margolin" <[EMAIL PROTECTED]> wrote in message
>> news:qOx45.52$Ax6.1388@burlma1-snr2...
>>> Download "lsof" and see how it does it.  There's no standard way, and the
>>> authors of this program have dug up the ways to do it on most systems.

>> Thanks, I never heard of the utility... I'll try to look for it.

>Take a look at Freshmeat.net for that, if you haven't already found it.  I
>was looking for that utility at one time as well (found a weird port open
>in netstat and was looking for who it belonged to) and found it there.

Lsof's home "port" (couldn't resist  :-) is:

        ftp://vic.cc.purdue.edu/pub/tools/unix/lsof

There you will find source code, some binaries, and several methods
to verify source authenticity.

Vic Abell, lsof author

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

From: Erik Max Francis <[EMAIL PROTECTED]>
Subject: Re: Not Quite C
Date: Sat, 24 Jun 2000 12:28:21 -0700

Stephan Beyer wrote:

> I'm interested in LEGO Mindstorm's NQC. Has anyone got
> experience in it?
> Or where to find information...?

I have a small set of links available in my public bookmarks:

    http://mirror/alcyone/max/links/misc.html#Lego_Mindstorms

which includes the Not Quite C homepage:

    http://www.enteract.com/~dbaum/nqc/index.html

-- 
 Erik Max Francis / [EMAIL PROTECTED] / http://www.alcyone.com/max/
 __ San Jose, CA, US / 37 20 N 121 53 W / ICQ16063900 / &tSftDotIotE
/  \ Said it? yep / Regret it? nope
\__/ Ice Cube
    blackgirl international / http://www.blackgirl.org/
 The Internet resource for black women.

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

From: Nix <$}xinix{[email protected]>
Subject: Re: function to get current year
Date: 24 Jun 2000 18:22:40 +0100

[EMAIL PROTECTED] (Christopher Browne) writes:

> On the other hand, no ABI has ever been defined for C++, and it
> requires _CONSIDERABLY_ more interfacing than is "obvious" in ELF.  So
> for C++, you're quite right.

Or, rather, he *was*. For any released version of GCC, he is.

However, a C++ ABI has now been defined (well, it's still being frobbed
with, but it's essentially complete and just having the bugs worked out
of it). This ABI is cross-architecture and cross-vendor (i.e. more than
just ix86 and more than just GCC). GCC 3.0 will support it --- indeed,
the GCC snapshots are acquiring the code to do so even now, and have
been for the last month.

> >And again, similar to the infamous Y2K problem, programmers _have_ to
> >recompile all their applications, drivers, embedded systems etc. by Y2038.
> >Then reinstall all this software into the pertinent places -- major hassle.
> 
> Did you know that on supercomputers like Crays, the policy often is
> that applications are recompiled _EVERY TIME THEY RUN_?

Using branch prediction data acquired from the last run to help with
optimization, I imagine?

> >If there is such a function in glibc, please let me know, otherwise I would
> >strongly suggest that such a function should be added to glibc:
> >eg:
> >file: time.h
> >unsigned int getcurrentyear();

Bleah. No, no, no.

> >PS: the current time_t does not support 4-digit years, its gives the number
> >of years since 1970. That is,

ITYM *seconds* since 1970.

> I suggest that you simply wait for two years.

Nice suggestion, and it will likely work ;)

> Heading back to your _FIRST_ point, the fact of "perhaps needing to
> recompile" is the LAST thing that anyone working with Linux or FreeBSD
> or OpenBSD or NetBSD ought to have the _slightest_ bit of concern
> about.  When the average distribution of _any_ of these systems has,
> associated with it, many _GIGABYTES_ of source code, along with

Yep, about 4Gb on the boxes here.

> The fact that C++ apps are difficult to keep interoperable at the
> binary level just means that it's more important to compile them
> locally, thus increasing the likelihood that they _need_ to be
> deployed in "open source" form, which provides the "hooks" needed to
> keep the code base open for future modification.

(Un)fortunately, this hook will be going away. (I think it's a bit of a
crappy hook to provide anyway, since it manifestly doesn't work; people
just ship libstdc++ in binary form with their apps.)

-- 
> ... knowing the alignment of Orcs in AD&D.
Doubleword.
  --- David Jacoby and Greg Andrews in the Monastery

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

From: [EMAIL PROTECTED] (MWRon)
Subject: Re: OT: Re: CodeWarrior for Linux. Comments ?
Date: Sat, 24 Jun 2000 15:46:48 -0400

In article <[EMAIL PROTECTED]>, Nix
<$}xinix{[email protected]> wrote:


>*boggle* *splutter* Please tell me this isn't true.

It is true in the current version.

>CW must have some replacement. Does that replacement have the raw power
>(and scriptability) of make? (I dobut it.)

We do export to XML files for Mac and Windows and semi command line
interfaces for embedded systems.  

We do realize this is a something that some Linux users want to have.  I
can't say what the plans are for a makefile import and export in future
releases of the Linux tools.

CodeWarrior is an IDE  integrated development environment not and I DE
integrated debugger and editor.

We do hear the requests for a Makefile import and export, if these are
essential to your development then CodeWarrior is not the too for you at
this time.

Ron

-- 
When it came time to show off Mac OS X applications
Steve Jobs chose those built with CodeWarrior

Metrowerks, a Motorola Company   -  Ron Liechty
"Software Starts Here"  -  [EMAIL PROTECTED]

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

From: "Spehro Pefhany" <[EMAIL PROTECTED]>
Subject: Re: bootlogos
Date: Sat, 24 Jun 2000 21:09:47 GMT

The renowned Dennis Schoen <[EMAIL PROTECTED]> wrote:

> When you want to change it, have a look at
> http://home.sol.no/~dvedoy/

Any hints for those of us who are limited to english ?  
This appears to be in some Scandanavian language, Norse, I'd presume. 

Best regards, 
-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Spehro Pefhany --"it's the network..."            "The Journey is the reward"
[EMAIL PROTECTED]             Info for manufacturers: http://www.trexon.com
Embedded software/hardware/analog  Info for designers:  http://www.speff.com
Contributions invited->The AVR-gcc FAQ is at: http://www.BlueCollarLinux.com
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

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


** 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