Linux-Development-Sys Digest #792, Volume #8     Sat, 16 Jun 01 09:13:22 EDT

Contents:
  thread timing info, suspending threads (Michael Harvey)
  Re: PCI device register access (Pete Zaitcev)
  .hidden in objdump? what is that? (Eric)
  Setting CPU Affinity (Kent A Vander Velden)
  Local array size limitation in kernel ("Timur Aydin")
  Terminology question ("Timur Aydin")
  Re: Module zombies (Phil Ehrens)
  Re: Local array size limitation in kernel (Ulrich Weigand)
  Re: Terminology question ("Karl Heyes")
  strange select() behaviour ?! (Oliver Kowalke)
  Re: configure the kernel for a serial console ("Lee Ho")
  Re: Off Topic: Human Decadence, please read ("Gene Heskett")
  Re: Off Topic: Human Decadence, please read (Erik Max Francis)
  kernel make module fails if video=M (Eric)
  Re: Off Topic: Human Decadence, please read ("Matt")
  which are all the journaling filesystem? ("gdm")
  Re: which are all the journaling filesystem? (Zeljko Vrba)
  which are all the journaling filesystem? ("gdm")
  memory mapping of files in ramdisk/ramfs ([EMAIL PROTECTED])
  Anyone get Code: EIP Value Kernel Panic in 2.4.2 RH 7.1? (Anonymous)
  Re: which are all the journaling filesystem? (Philip Armstrong)
  Re: Anyone get Code: EIP Value Kernel Panic in 2.4.2 RH 7.1? (Anonymous)
  Visual Network Monitoring Tools?? (Subba Rao)

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

From: Michael Harvey <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps
Subject: thread timing info, suspending threads
Date: Fri, 15 Jun 2001 12:09:58 -0700

I am working on an application thread scheduler and need to be able to
control how much time a given thread will spend working. To accomplish
this I need to be able to find out how much time it has used (preferably
with nanosecond resolution), and I also need to be able to suspend a
thread and resume it later.

In Win32 (yes this is cross platform) I use GetThreadTimes() to get
kernel and user times, and SuspendThread()/ResumeThread() to turn it on
and off.

Does similar functionality exist in pthreads, or if not, is there a
LinuxThreads workaround that can do it?

Thanks,
Mike

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

From: [EMAIL PROTECTED] (Pete Zaitcev)
Subject: Re: PCI device register access
Date: 15 Jun 2001 19:40:12 GMT

> Hmmm, so you're saying that, e.g. the Sparc port of linux still
> defines x86-style inb/outb APIs, so that a driver that uses them on
> Intel architectures ``just works'' on the Sparc too?

It is indeed the case, however not everything is as smooth
as we would like. Two main problems is a very small memory
mapped space, and a mix of Sbus and PCI.

sparc64 port solves them by virtue of its enormous virtual
and physical address size.

-- Pete

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

From: Eric <[EMAIL PROTECTED]>
Subject: .hidden in objdump? what is that?
Date: Fri, 15 Jun 2001 12:07:02 -0700

Hi:

I have a program that I cannot run on  RH7.1 if I build it on 7.1, but
if
it is built on 7.0 it runs fine on 7.1.

The error is:  "error while loading shared libraries....undefined symbol
: stat"

I built the program on both systems and ran objdump on each.
I find that there is a difference:

on 7.0 the symbol __stat shows up with the word .hidden preceding it.
on 7.1 the word .hidden is not there. (note the double underscore)

Does anyone know what this means, and why the dynamic loader is
having trouble with this?

Is this a weak symbol? and if so, can I do anything during the link
to change this?

My link references a .so that a vendor has supplied,  built prior
to 7.0. Could that have something to do with this?

thanks
eric




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

From: [EMAIL PROTECTED] (Kent A Vander Velden)
Subject: Setting CPU Affinity
Date: 15 Jun 2001 19:52:19 GMT

  Is it possible with the 2.4 kernel to set the CPU affinity
of a process from the command line while the process is running or
as the process is being started?  Something akin to 'nice' and 
'renice' for CPU affinity would be great.

  Thanks.

-- 
Kent Vander Velden
[EMAIL PROTECTED]

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

From: "Timur Aydin" <[EMAIL PROTECTED]>
Subject: Local array size limitation in kernel
Date: Fri, 15 Jun 2001 16:09:57 -0400

Hi,

I am developing a kernel module that takes chunks of data, each up to 16
kbytes, from a user mode process. The module stores the data temporarily in
a char array that is defined locally in a function:

int get_data(char* puser)
{
    char temp[16384];

    /* copy data from user's pointer to temp */

   /* Acquire spinlock */

   /* process data in temp */

   /* copy processed temp to card memory */

   /* release spinlock */
}

If I use this module, the system becomes very unstable and the symtoms vary
greatly each time. Sometimes, the system freezes, sometimes the process
becomes a zombie, sometimes certain features of the windows manager stop
working, while everything else is fine.

I though that this could be a stack problem and I tried kmalloc'ing the temp
buffer, processing the data and then kfree'ing the temp buffer:

int get_data(char* puser)
{
    char* temp;

   /* kmalloc 16384 bytes of memory at temp */

    /* copy data from user's pointer to temp */

   /* Acquire spinlock */

   /* process data in temp */

   /* copy processed temp to card memory */

   /* release spinlock */

   /* kfree allocated memory at temp */
}

This time, the module worked flawlessly and the system remained stable. How
would one method not work and the other would work? I wanted to use a local
array to avoid the overhead associated with kmalloc and kfree, but
apparently something is wrong with doing that.

Is there a limitation on how large local arrays can be in the kernel?

And by the way, the data copied is 8191 bytes, so that buffer is only half
full.

Timur.



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

From: "Timur Aydin" <[EMAIL PROTECTED]>
Subject: Terminology question
Date: Fri, 15 Jun 2001 16:31:43 -0400

Hi,

When somebody says: "The linux kernel has been ported to the FastMother !
(R) processor", does this mean the kernel source has just been adapted to
the new processor (effectively creating a new branch in the source tree) or
does this mean the resulting kernel source will support this new processor,
in addition to all of the other processors that it was supporting before?

I just wanted to know how the term "porting" is commonly used.

Timur.




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

From: [EMAIL PROTECTED] (Phil Ehrens)
Subject: Re: Module zombies
Date: 15 Jun 2001 21:16:12 GMT
Reply-To: -@-

Clifford Kite wrote:
> Linux kernel 2.4.5-ac9
> 
> I have an HP 315 camera with a USB connector and can copy the pictures
> on it's CompactFlash card from a directory using cp, after mounting
> /dev/sda1 as a msdos filesystem.  The connection to /dev/sda1 is created
> by inserting the modules usb-uhci.o, usb-storage.o, and sd_mod.o with a
> modprobe -a, turning on the camera, and, of course, mounting /dev/sda1.
> 
> After copying the pictures and umounting /dev/sda1, a lsmod shows no
> module being used, but then after removing the modules with modprobe -r
> a ps auxw shows this:
> 
> root  2985  0.0  0.0  0  0  ?  Z  12:07  0:00 [usb-storage-0 <defunct>]
> root  2986  0.0  0.0  0  0  ?  Z  12:07  0:00 [scsi_eh_0 <defunct>]
> 
> Is this normal?

I found it necessary to do "rmmod usb-storage" after unmounting.
modprobe -r seemed to rmmod in the wrong order, and these modules
seem to be rmmod order sensitive.  You don't need to rmmod any
of the others explicitly.

This was with 2.2.19 and all the usb stuff as modules.

Does usb-storage still cause a load with 2.4.5-ac9?  It caused a
continuous additional load of about 1 with 2.2.19, hence my desire
to rmmod it!

-- 
Phil Ehrens <[EMAIL PROTECTED]>| Fun stuff:
The LIGO Laboratory, MS 18-34         | http://www.ralphmag.org
California Institute of Technology    | http://www.yellow5.com
1200 East California Blvd.            | http://www.asiamex.com
Pasadena, CA 91125 USA                | http://slashdot.org
Phone:(626)395-8518 Fax:(626)793-9744 | http://kame56.homepage.com

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

From: [EMAIL PROTECTED] (Ulrich Weigand)
Subject: Re: Local array size limitation in kernel
Date: 15 Jun 2001 23:19:13 +0200

"Timur Aydin" <[EMAIL PROTECTED]> writes:

>This time, the module worked flawlessly and the system remained stable. How
>would one method not work and the other would work? I wanted to use a local
>array to avoid the overhead associated with kmalloc and kfree, but
>apparently something is wrong with doing that.

>Is there a limitation on how large local arrays can be in the kernel?

The total size of the kernel stack (on i386) is about 6k.  This must
be enough for the complete call chain inside the kernel *plus* the
complete call chain of any interrupt handler that might get triggered
while your code is executing.

Practically speaking this means that except under rare conditions,
you should never use more that about 1k of local variables on the
stack ...

-- 
  Dr. Ulrich Weigand
  [EMAIL PROTECTED]

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

From: "Karl Heyes" <[EMAIL PROTECTED]>
Subject: Re: Terminology question
Date: Fri, 15 Jun 2001 23:09:53 +0100

In article <[EMAIL PROTECTED]>, "Timur Aydin"
<[EMAIL PROTECTED]> wrote:

> Hi,
> 
> When somebody says: "The linux kernel has been ported to the FastMother !
> (R) processor", does this mean the kernel source has just been adapted to
> the new processor (effectively creating a new branch in the source tree) or
> does this mean the resulting kernel source will support this new processor,
> in addition to all of the other processors that it was supporting before?

the kernel is broken up into several parts, namely the core, drivers and
architecture specific stuff.

The core is for general things process management,  memory
management, VFS and is designed to be the portable part of the
system. The archicture specific stuff (under arch/) is for specifically
talking to particular hardware (MMU, MMX, FPU, the boot procedure),
generally speaking in assembler.   The drivers (which is where most
of the code is in the source tree) are mainly C.  

So when linux is said to have been ported, it basically means the
architecture specific stuff (arch/) has been implemented, with possibly
drivers for that system lilke framebuffers.

karl.

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

From: Oliver Kowalke <[EMAIL PROTECTED]>
Subject: strange select() behaviour ?!
Date: Sat, 16 Jun 2001 01:03:19 +0200
Reply-To: [EMAIL PROTECTED]

Hello,

I've a problem with the select() function. Maybe I did someting wrong (I 
followed the instructions by 'UNIX network programing, Vol. 1' from 
R.W.Stevens). 
the problem:
The descriptor of a connected socket (returned by accept() function) is 
marked as readable by select() after(!!!) a read() from this descriptor.
I thought that select() should indicate that the descriptor is readable 
only if the remote client writes some additional bytes to the socket.
Something is wrong. 

Could you give me some hints, please.

with regards,
Oliver

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

From: "Lee Ho" <[EMAIL PROTECTED]>
Subject: Re: configure the kernel for a serial console
Date: Sat, 16 Jun 2001 00:01:47 GMT

Aravindh Wrote:
>I am trying to get Linux running on a proprietary system. My system
>has a serial port. Is there anyway to configure the kernel for a
>serial console?


just add kernel option 'console=ttyS0'

*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
Lee, Ho. Software Engineer, Embedded Linux Dep, LinuxOne
Mail : [EMAIL PROTECTED] (work), [EMAIL PROTECTED] (personal)
Homepage : http://flyduck.com, http://linuxkernel.to




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

Date: 15 Jun 2001 8:2:24 -0500
From: "Gene Heskett" <[EMAIL PROTECTED]>
Subject: Re: Off Topic: Human Decadence, please read
Crossposted-To: comp.os.linux.development.apps,linux.redhat.misc,linux.redhat.rpm

Gene Heskett sends Greetings to Erik Max;

 EMF> Daniel Clemente wrote:

>> Anyone as I think that we must attack him
>> 
>> This is him website:
[...]>> 
>> 
>> and this is the webmaster mail:
[...]

 EMF> You, sir, are a retard.

Naw, he's a troll, designed to get traffic ratings for that site up.
eg, a spammer, Which is why the address above is clipped.  When you post
in responnse, and quote the addresses in these junk mails, you just give
the spammer some free advertising.

Cheers, Gene
-- 
  Gene Heskett, CET, UHK       |Amiga A2k Zeus040, 70MB ram, 31 gigs
                               | Linux @ 500mhz, 320MB ram, 50 gigs
             email gene underscore heskett at iolinc dot net
#Amiga based X10 home automation program EZHome, see at:#
               <http://www.iolinc.net/gene_heskett>
This messages reply content, but not any previously quoted material,
is © 2001 by Gene Heskett, all rights reserved.
-- 


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

From: Erik Max Francis <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps,linux.redhat.misc,linux.redhat.rpm
Subject: Re: Off Topic: Human Decadence, please read
Date: Fri, 15 Jun 2001 18:02:25 -0700

Gene Heskett wrote:

> Naw, he's a troll, designed to get traffic ratings for that site up.
> eg, a spammer, Which is why the address above is clipped.  When you
> post
> in responnse, and quote the addresses in these junk mails, you just
> give
> the spammer some free advertising.

No, he was serious.  That Web site attracts a lot of detractors who are
too stupid to realize it's a hoax.

-- 
 Erik Max Francis / [EMAIL PROTECTED] / http://www.alcyone.com/max/
 __ San Jose, CA, US / 37 20 N 121 53 W / ICQ16063900 / &tSftDotIotE
/  \ The most exhausting thing in life is being insincere.
\__/ Anne Morrow Lindbergh
    Kepler's laws / http://www.alcyone.com/max/physics/kepler/
 A proof of Kepler's laws.

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

From: Eric <[EMAIL PROTECTED]>
Subject: kernel make module fails if video=M
Date: Fri, 15 Jun 2001 18:47:20 -0700

Hi:

I was trying to build a pretty much "everything modular" type kernel where I just
set nearly everything M in make menuconfig, and then during the "make modules",
make quit with an error so it did not finish making all the modules. It was
doing video at the time.

I went back in and removed all video support and it continued
building the modules where it had left off, skiping video.

Any ideas why? (using 2.4.5 kernel just dloaded today).

eric



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

From: "Matt" <[EMAIL PROTECTED]>
Crossposted-To: 
comp.os.linux.development.apps,comp.os.linux.development.x,linux.redhat.misc,linux.redhat.ppp,linux.redhat.rpm
Subject: Re: Off Topic: Human Decadence, please read
Date: Sat, 16 Jun 2001 06:20:29 GMT

"Micah Cowan" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> Daniel Clemente <[EMAIL PROTECTED]> writes:
>
> > Hi all,
> >
> > First of all, sorry if this is an Off Topic, message, but, please
> > read it.
>
> There is no justification, ever, for posting messages as off-topic as
> this one.
>
> The website you refer to is a hoax.  You've been had.
>
> Micah

The website is a hoax, but the picture of the cat being inserted into the
jar is obviously not a hoax.





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

From: "gdm" <[EMAIL PROTECTED]>
Subject: which are all the journaling filesystem?
Date: Sat, 16 Jun 2001 09:04:02 +0200

Which are all the journaling file system for linux? I have been told of
reiserFS. Which are the other journaling filesystem for linux?
gdm




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

From: [EMAIL PROTECTED] (Zeljko Vrba)
Subject: Re: which are all the journaling filesystem?
Date: 16 Jun 2001 07:04:20 GMT
Reply-To: [EMAIL PROTECTED]

On Sat, 16 Jun 2001 09:04:02 +0200, gdm <[EMAIL PROTECTED]> wrote:
> Which are all the journaling file system for linux? I have been told of
> reiserFS. Which are the other journaling filesystem for linux?
> gdm
> 
xfs is also one.

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

From: "gdm" <[EMAIL PROTECTED]>
Subject: which are all the journaling filesystem?
Date: Sat, 16 Jun 2001 09:04:02 +0200

Which are all the journaling file system for linux? I have been told of
reiserFS. Which are the other journaling filesystem for linux?
gdm




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

From: [EMAIL PROTECTED]
Subject: memory mapping of files in ramdisk/ramfs
Date: 16 Jun 2001 07:25:57 GMT

How is memory mapping done when the file being mapped is in ramfs
or ramdisk?  Is the virtual memory literally sharing the same
memory the file is stored in, or is it copied from there into
swappable memory even if copy on write never happens?

I'm wondering how much memory would be used, and maybe any other
impact as a result of, keeping several shared libraries in ramfs.

-- 
=================================================================
| Phil Howard - KA9WGN |   Dallas   | http://linuxhomepage.com/ |
| [EMAIL PROTECTED] | Texas, USA | http://phil.ipal.org/     |
=================================================================

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

Date: Sat, 16 Jun 2001 05:23:54 -0400
Subject: Anyone get Code: EIP Value Kernel Panic in 2.4.2 RH 7.1?
From: Anonymous <[EMAIL PROTECTED]>

Is anyone getting 

Code: EIP Value
Kernel Panic: Aieee, killing interrupt handler!
In interrupt handler - not syncing

when running RedHat 7.1 (uses Linux 2.4.2 kernel)

I appear to get this whenever I do a lot of
disk i/o.

  --------== Posted Anonymously via Newsfeeds.Com ==-------
     Featuring the worlds only Anonymous Usenet Server
    -----------== http://www.newsfeeds.com ==----------

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

From: [EMAIL PROTECTED] (Philip Armstrong)
Subject: Re: which are all the journaling filesystem?
Date: 16 Jun 2001 10:00:57 +0100

In article <[EMAIL PROTECTED]>,
Zeljko Vrba <[EMAIL PROTECTED]> wrote:
>On Sat, 16 Jun 2001 09:04:02 +0200, gdm <[EMAIL PROTECTED]> wrote:
>> Which are all the journaling file system for linux? I have been told of
>> reiserFS. Which are the other journaling filesystem for linux?
>> gdm
>> 
>xfs is also one.

And the ext3 filesystem has journalling I believe. Not in the standard
kernel yet tho' afaicr.

Phil




-- 
http://www.kantaka.co.uk/ .oOo. public key: http://www.kantaka.co.uk/gpg.txt


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

Date: Sat, 16 Jun 2001 06:23:21 -0400
Subject: Re: Anyone get Code: EIP Value Kernel Panic in 2.4.2 RH 7.1?
From: Anonymous <[EMAIL PROTECTED]>

Never mind, I found the problem.
The problem was a bad memory 128MB
memory module.

Anonymous wrote:
> 
> Is anyone getting
> 
> Code: EIP Value
> Kernel Panic: Aieee, killing interrupt handler!
> In interrupt handler - not syncing
> 
> when running RedHat 7.1 (uses Linux 2.4.2 kernel)
> 
> I appear to get this whenever I do a lot of
> disk i/o.

  --------== Posted Anonymously via Newsfeeds.Com ==-------
     Featuring the worlds only Anonymous Usenet Server
    -----------== http://www.newsfeeds.com ==----------

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

From: Subba Rao <[EMAIL PROTECTED]>
Subject: Visual Network Monitoring Tools??
Date: Sat, 16 Jun 2001 13:08:14 GMT


Are there any visual tools that will generate network maps for network admins?
Most of the tools are commercial and are specific to some platform (OpenView
from HP and NetView from IBM). I am looking for something that could be used on
Linux or OpenBSD.

Any information or pointers appreciated.

Thank you in advance.

Subba Rao
[EMAIL PROTECTED]

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


** 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 by posting to the
comp.os.linux.development.system newsgroup.

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