Linux-Development-Sys Digest #730, Volume #6 Thu, 20 May 99 15:14:25 EDT
Contents:
Benchmark for SMP (lckun)
[Q] sched_setscheduler ? ("Soohyung Lee")
Re: never reboot to upgrade ? (Kevin Burton)
MTRR cpu register and AMD-K6 with CXT core (Bernd Melchers)
Re: __register_frame_info, glibc2.0.6 and Slackware 3.6 (David T. Blake)
Re: Linux and PCI modems (Frank v Waveren)
Linux + CGI + Apache considerations ("D. Emilio Grimaldo Tunon")
Opening Serial Port for reading (Masher)
Re: how to dump core ??? ("Tom Leete")
Re: Microsecond resolution timer? (Nitin Malik)
what is bus master? (Y Chen)
Re: OMNIS Studio RAD Tool available on Linux soon....... (Thomas L|fgren)
Re: Opening Serial Port for reading ("Venkatesh S. Rao")
Re: Hostile Takeover of Linux (Olav Woelfelschneider)
Re: New Project: Linux Upgrade Monitor (upgrademon) (Bill Anderson)
Re: i386 ENTER instruction problem (H. Peter Anvin)
Re: mapping user space and kernel space (Frank McGirt)
Looking for General Ledger Software and Others for AlphaLinux (Robert Young)
Unkilled xterms in RedHat 6.0 (Peter Dalgaard BSA)
----------------------------------------------------------------------------
From: lckun <[EMAIL PROTECTED]>
Subject: Benchmark for SMP
Date: Thu, 20 May 1999 21:54:04 +0900
Hi all
I look for the programm of Benchmark for SMP.
Where can i get the Benchmark programm for SMP?
Thanks
lckun
------------------------------
From: "Soohyung Lee" <[EMAIL PROTECTED]>
Subject: [Q] sched_setscheduler ?
Date: Thu, 20 May 1999 21:56:25 +0900
There is a system call named 'sched_setscheduler' in kernel/sched.c
and the prototype is as follow.
asmlinkage int sys_sched_setscheduler(pid_t pid, int policy,
struct sched_param *param)
{
return setscheduler(pid, policy, param);
}
The first parameter of this function is process ID.
What it means?
' Can each process have their own scheduler ? '
That is ' Can each process belong to different scheduler (policy) ? '
For example, is it possible that process A belong to SCHED_OTHER,
process B belongs to SCHED_FIFO, and process C belongs to SCHED_RR ?
Can any expert help me ?
Thanks in advance ..
- Lee from Korea(republic of) -
------------------------------
From: Kevin Burton <[EMAIL PROTECTED]>
Subject: Re: never reboot to upgrade ?
Date: Thu, 20 May 1999 06:16:28 -0700
You should be able to do this with IP load balancing and some sort of
file based (on access) replication.
Would look like this
IPLB: host.domain.com -> 127.0.0.1 and 127.0.0.2
now if you do an nfsmount it would give you either machine.
There are products that do this but none that I know of for linux.
Cisco localdirector, Windows Load Balancing service etc do this.
What is needed is an open source version.... hmmm.. this is something I
might enjoy working on.
Kevin
Tony Smith wrote:
>
> Mike Rushford wrote:
>
> > I have enjoyed the stability of Linux for years and have only had to
> > shut down my Linux boxes to upgrade the next Kernel version.
> >
> > Is there a way of building a kernel so that it takes the place of a
> > currently running one without ever shutting down?
> >
> > Same question for Libraries in memory can we force library upgrades by
> > just putting the new libs and sym links on disk and then doing something
> >
> > like sync and ldconfig to force a relink to the newly installed ones?
> >
> > It would be cool to claim linux could be up for ever with only hardware
> > upgrades forcing a shutdown!
> >
> > --
> > Mike [EMAIL PROTECTED] http://www.hooked.net/~tvs/eyes/
>
> I doubt very much if you'll ever get a dynamic kernel upgrade on a single
> machine (e.g. because of the interdependencies that would need to be
> resolved between the kernel and the modules). What I think you want (and I
> too would like this) is something akin to what Compaq (ex Tandem) provide
> with their XC and S4000 products: Single System Image. i.e. Two (or more)
> machines which look like one machine to all users. i.e. one process table,
> all shared memory accessible from any node, all disk devices accessible from
> any node. This allows you to take a node out of the cluster, upgrade it, and
> plug it back in with zero downtime. Processes can be interrupted and moved
> to a different node *between* instructions for load balancing or fault
> tolerance.
>
> I don't know what work, if any, is being done on this, but if we get that
> functionality on Linux, it would make justifications for its use in
> commercial solutions much easier (currently I am encountering a LOT of
> resistance to the idea, and this sort of HA clustering would really tip the
> balance).
>
> Can anyone offer further insight into this area of development?
>
> Tony
--
Kevin A. Burton
Internet Guy
------------------------------
From: [EMAIL PROTECTED] (Bernd Melchers)
Subject: MTRR cpu register and AMD-K6 with CXT core
Date: 20 May 1999 14:09:51 GMT
I heard, that the newer AMD-K6-2 (with CXT core) and the AMD-K6-III chips
have the famous MTRR registers which speed up access to frame buffers etc.
Is linux-2.2.x capable of using these registers of the AMD CPUs or
does linux only use these registers if running at P-II and 6x86MX chips?
By reading linux/Documentation/Configure.help ...
Here are the settings recommended for greatest speed:
- "386" for the AMD/Cyrix/Intel 386DX/DXL/SL/SLC/SX, Cyrix/TI
486DLC/DLC2 and UMC 486SX-S. Only "386" kernels will run on a 386
class machine.
- "486" for the AMD/Cyrix/IBM/Intel DX4 or 486DX/DX2/SL/SX/SX2,
AMD/Cyrix 5x86, NexGen Nx586 and UMC U5D or U5S.
- "586" for generic Pentium CPUs, possibly lacking the TSC
(time stamp counter) register.
- "Pentium" for the Intel Pentium/Pentium MMX, AMD K5, K6 and
K6-3D.
- "PPro" for the Cyrix/IBM/National Semiconductor 6x86MX, MII and
Intel Pentium II/Pentium Pro.
... one could conclude that linux makes no difference between simple K6 and
CXT-K6.
------------------------------
From: [EMAIL PROTECTED] (David T. Blake)
Subject: Re: __register_frame_info, glibc2.0.6 and Slackware 3.6
Date: 20 May 1999 06:48:28 -0700
Christopher Strong <[EMAIL PROTECTED]> writes:
>I am attempting to compile glibc2.0.6 under Slackware 3.6.
>
>I downloaded glib2.0.6, linuxthreads, localedata, linuxthreads and
>crypt.
>
>Everything configures fine. "make" and "make check" work with no errors.
>
>But when I try "make install", I get:
>makeinfo: can't resolve symbol '__register_frame_info'
>
>When trying to build the texinfo documentation.
>
>I tried following the instructions in the glibc linux HOWTO, with the same
>results.
>
>Any ideas?
Symbols can be listed from libraries using the command nm.
Try something like
cd /usr/lib
for i in $(ls -1 lib*so*) ; do echo $i >> foo ; nm $i | grep register_frame \
>>foo ; done
That should tell you which library contains the symbol.
Then go to the command line in the Makefile and add a -l$LIBRARY_NAME
to allow the linker to find the library with the right symbol.
--
Dave Blake
[EMAIL PROTECTED]
------------------------------
From: [EMAIL PROTECTED] (Frank v Waveren)
Subject: Re: Linux and PCI modems
Date: Thu, 20 May 1999 14:11:12 GMT
> You don't have a modem. The man who sold you the thing you call a
> modem is either deluded, a liar, or did not understand what you
> wanted.
But, on the brighter side, you do have a very nice DSP device :-)
--
Frank v Waveren
[EMAIL PROTECTED]
ICQ# 10074100
------------------------------
From: "D. Emilio Grimaldo Tunon" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps,comp.infosystems.www.servers.unix
Subject: Linux + CGI + Apache considerations
Date: Thu, 20 May 1999 16:21:54 +0200
Hi *,
I am experiencing some very annoying (not to mention
disappointing!) performance problems with a CGI program
spawned by Apache under Linux (RH 5.2). I have tried it on
other platforms and the response is usually very quick, not
taking more than 5-10 seconds to complete the response. When
tried on Linux however it takes between 45-60 seconds!!!
that is some delay!!!.
This CGI program actually establishes a socket connection to
another server (same used on the other platforms for the
sake of comparison). On the other platforms I use setsockopt()
to set a 120 sec. timeout on both read/write socket operations.
That is (to my dismay) not available on Linux so I use
select() with timeout (120secs) instead.
I suppose that someone out there has run into this problem
before, any hints? ideas?
TIA,
Emilio
--
D. Emilio Grimaldo Tunon
Software Engineer
*** The opinions expressed hereby are mine and not my employer's ***
------------------------------
From: (Masher)
Subject: Opening Serial Port for reading
Date: Thu, 20 May 1999 13:59:04 GMT
I want to open the a serial port and read data off of it.
I need to set it at 1200 8n1
Tried looking for docs on ioctl but not much help
at moment code is like
FILE *fp;
fp = fopen("/dev/ttyS0","r+");
if !fp errormessage
if I use /dev/ttys0 app does nothing
if I use
/dev/cua0
then app says that it cannot open port as the device or resource busy
Help?
------------------------------
From: "Tom Leete" <[EMAIL PROTECTED]>
Subject: Re: how to dump core ???
Date: Wed, 19 May 1999 15:41:23 -0400
Any uncaught throw will dump core in Linux. Try this:
void die_now()
{
throw("beanball");
}
If you have nothing that catches all thrown char*, this will dump core and
crash you pretty gracefully ( all destructors called).
If you catch strings somewhere, you can declare die_now() to throw int and
"beanball" will be converted to unexpected.
Regards,
TML
Zsolt Zsoldos wrote in message <[EMAIL PROTECTED]>...
>Hi All,
>
>I am developing (currently more like debugging :-) a C++ program on both
>SGI Irix (6.5) and Linux (Caldera OpenLinux 2.2, kernel 2.2.5). I have
>some ASSERT macro, which should log a message and dump core by calling
>the function abort() - so that I can do some post-mortem debugging to
[...]
------------------------------
Date: Thu, 20 May 1999 11:25:14 -0400
From: Nitin Malik <[EMAIL PROTECTED]>
Subject: Re: Microsecond resolution timer?
On 16 May 1999, Rob wrote:
> I'm writing a library designed to talk to some (non-PC) hardware that
> I have via the parallel port. Some of the timing is critical however.
> What I really need is a microsecond resolution timer, so I can get
> pauses of 20us. I read somewhere that doing something like
> select(0, 0, 0, 0, *time) can't pause for shorter than 100ms (100000us),
> which is obviously far too long for my needs. Is there a way to get this
> sort of timing resolution under Linux? And if there is no 'proper' way
> to do it, will anything break if I access the system timer hardware at
> 0x40-0x5f?
If you r using the x86 architecture, use the "rdtsc" instruction for
getting clock ticks resolution.
Check the Intel Developer site for more info on this....
------------------------------
From: [EMAIL PROTECTED] (Y Chen)
Crossposted-To: comp.os.linux.development.apps,comp.os.linux.hardware
Subject: what is bus master?
Date: Wed, 19 May 1999 16:54:20 -0400
Hi, there,
My new mainboard require a bis master to
work fine under win98. I do not know what it
is? Do I need it to run linux too?
BTW, my new board is Soyo 100 MHz 5EMA.
Thanks.
Y.Chen
------------------------------
Crossposted-To:
comp.os.linux.development.apps,comp.os.linux.hardware,comp.os.linux.m68k,comp.os.linux.misc,comp.os.linux.networking,comp.os.linux.portable,comp.os.linux.powerpc,comp.os.linux.security,comp.os.linux.setup,comp.os
Subject: Re: OMNIS Studio RAD Tool available on Linux soon.......
From: Thomas L|fgren <[EMAIL PROTECTED]>
Date: 17 May 1999 11:43:53 +0200
And we all hope your skills at software development is up to par with
your netiquette. I fail to see what this has to do with hardware,
m68k, networking, portable, powerpc, security, setup or operating
systems. Maybe you didn't read the charters. Maybe we won't buy your
software. Get a fucking clue.
--
T. Lofgren - Wherever I lay my .emacs, that's my ${HOME}
These opinions are mine, not yours. Get your own damn opinions.
------------------------------
From: "Venkatesh S. Rao" <[EMAIL PROTECTED]>
Subject: Re: Opening Serial Port for reading
Date: Thu, 20 May 1999 11:28:46 -0500
Explore the use of the setserial command - should let you set params the
way you want, and then you can cat /dev/cua.
Venky
On Thu, 20 May 1999, it was written:
> I want to open the a serial port and read data off of it.
>
> I need to set it at 1200 8n1
>
> Tried looking for docs on ioctl but not much help
>
> at moment code is like
>
> FILE *fp;
>
> fp = fopen("/dev/ttyS0","r+");
> if !fp errormessage
>
> if I use /dev/ttys0 app does nothing
>
> if I use
>
> /dev/cua0
>
> then app says that it cannot open port as the device or resource busy
>
> Help?
>
>
------------------------------
From: Olav Woelfelschneider <[EMAIL PROTECTED]>
Subject: Re: Hostile Takeover of Linux
Date: Thu, 20 May 1999 06:26:20 +0200
Ross Vandegrift <[EMAIL PROTECTED]> wrote:
>>If "8-bit is the norm" what is the character with (decimal) code 128?
RV> The charecter `C' with a squiggle under it: (�).
That is ignorant of e.g. east european languages and many others.
Into the corner, wear the same donkey hat which says us-people on the top. (-:
Looking for iso-latin turns up quite a list of different character sets,
numbered from iso-latin-1 to iso-latin-whatever.
--
Olav "Mac" W�lfelschneider [EMAIL PROTECTED]
PGP fingerprint = 06 5F 66 B3 2A AD 7D 2D B7 19 67 3C 95 A7 9D AF
Mer mu� doch nur emol e bissje nochdenke. -- Mundstuhl
------------------------------
From: Bill Anderson <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps
Subject: Re: New Project: Linux Upgrade Monitor (upgrademon)
Date: Thu, 20 May 1999 11:16:40 -0600
Kevin Burton wrote:
> BENEFITS:
>
> - support for seeing if an ftp directory has changed ex: WINE
> ex: monitor ftp://ftp.sunsite.unc.edu/pub/Linux/ALPHA/wine... any
> changes and you will get a notification
> - support for seeing if any of your rpm's have updates? via RPMFIND
> http queries.
> ex: basesystem-4.9-3 ->
>
>ftp://rpmfind.net/linux/Mandrake/6.0/6.0pre/Mandrake/RPMS/basesystem-6.0-5mdk.noarch.rpm
> - support for seeing if your particular distribution has a specific
> upgrade:
> ex: Redhat 5.2 having an upgrade for Apache
>
> FEATURES:
>
> - run's as a daemon
> - GUI config tool (GTK)
> - send e-mail on upgrade notification
> - auto-download for some specific upgrades
> - you can pick and choose which upgrades/applications you want to
> monitor.
>
> Comments are greatly appreciated. I haven't seen anything like this
> done before. If it has let me know.
>
You should take a look at autorpm, as it does much of this for rpms
already.
You can give it an ftp/local/nfs/etc directory to watch, as well as
configure it's behaviour (including regexing).
You can find it on rpmfind.net
--
Bill Anderson Linux Administrator
MCS-Boise (ARC) [EMAIL PROTECTED]
My opinions are just that; _my_ opinions.
------------------------------
From: [EMAIL PROTECTED] (H. Peter Anvin)
Subject: Re: i386 ENTER instruction problem
Date: 19 May 1999 17:09:59 GMT
Reply-To: [EMAIL PROTECTED] (H. Peter Anvin)
Followup to: <7hutm2$1fc$[EMAIL PROTECTED]>
By author: [EMAIL PROTECTED] (Pierre Muller)
In newsgroup: comp.os.linux.development.system
>
> Using the ENTER instuction seems to create
> problems when the amount %esp must be decreased
> makes it change page !
>
> Does the page mecanism not know how to handle ENTER instruction ?
> Is this a known i386 Linux problem ?
> Is it solved in recent version ?
>
> Or is ENTER simply consider as an invalid instruction in Linux ?
> This was tested on v2.0.33
>
Define "problems". Are you perhaps merely overflowing your allowed
stack space?
-hpa
--
"The user's computer downloads the ActiveX code and simulates a 'Blue
Screen' crash, a generally benign event most users are familiar with
and that would not necessarily arouse suspicions."
-- Security exploit description on http://www.zks.net/p3/how.asp
------------------------------
From: [EMAIL PROTECTED] (Frank McGirt)
Subject: Re: mapping user space and kernel space
Date: Thu, 20 May 1999 17:39:32 GMT
On this subject, I have a contiguous memory buffer in my driver that I
have allocated by:
bufAddress = __get_dma_pages(GFP_KERNEL,order);
that I want to map to user space.
The following worked for 2.0.36-3SMP on RH 5.2 but does not
work for 2.2.7SMP on RH 6.0. It gives no error indication
but when I try to store data in the buffer and read it back,
the data is garbage (0xffffffff).
I would appreciate knowing the proper way to do this or
any suggestions about how to proceed.
Frank McGirt
[EMAIL PROTECTED]
2.0.36 implementation:
1. in driver reserve buffer by setting RESERVED bit so that
remap_page range() will work
max_page = MAX_BUFFER_SIZE/PAGE_SIZE
paddr = bufAddress;
for( i = 0; i < max_page; i++ ) {
page = &mem_map[MAP_NR(paddr)];
set_bit(PG_reserved,&page->flags);
paddr += PAGE_SIZE;
}
2. call mmap() from app as:
mmap(0,bufferLength,PROT_READ|PROT_WRITE,MAP_SHARED,fd,bufAddress);
3. in driver mmap() implemented as:
mmap(struct file *file, struct vm_area_struct *vmarea)
{
...
remap_page_range(vmarea->vm_start, vmarea->vm_offset,
vmarea->end -
vmarea->start, vmarea->vm_page_prot);
vmarea->vm_file = file;
file->f_dentry->d_inode-i_count++;
return 0;
On Wed, 19 May 1999 20:10:43 -0400, Nitin Malik
<[EMAIL PROTECTED]> wrote:
>I need to map the user buffer to kernel memory to prevent copying
>overheads. This is for the tulip network card. This device doesn't have a
>mmap() routine. Network devices don't support the mmap routine. Is it
>possible to define my own mmap routine?
>
>Can some one give me an outline of how the locking is to be done?
>
>Thanks for your help in advance,
>
>nitin
>
>
>
------------------------------
From: Robert Young <[EMAIL PROTECTED]>
Subject: Looking for General Ledger Software and Others for AlphaLinux
Date: Wed, 19 May 1999 21:10:15 GMT
I am in a process of acquiring an AlphaLinux workstation and would like to
know if an AlphaLinux workstation can be used as an accounting as well as
wordprocessing workstation for a general company. What I am interested in
is
the existence of a general ledger program as well as wordprocessor for the
AlphaLinux platform, aside from applixware. In other words:
1. Can anyone please tell me if there exists a general ledger software for
an
AlphaLinux and where can I download its binary as well as the source code?
2. I know there is Lyx for Linux. However, is there any other
wordprocessor
under AlphaLinux that is capable of retrieving and saving the document in
the
MS Word format?
One last thing is that I am interested to know is the Wine project. Is Wine
available for AlphaLinux?
Thank you.
--
Robert Young,
[EMAIL PROTECTED]
------------------------------
From: Peter Dalgaard BSA <[EMAIL PROTECTED]>
Subject: Unkilled xterms in RedHat 6.0
Date: 20 May 1999 01:11:32 +0200
This has been observed by a couple of other people, but as far as I
have seen not analysed. It worries me a bit because it looks like a
system-level error, i.e. either kernel 2.2.5 or glibc 2.1 has the
problem. [Hence the choice of NG]
The problem is easily reproduced on an RH6.0 system. Log in, start an
xterm from the Enlightenment menu (mouse-2 on bkgr., "Other
Programs"/Xterm). Then log out and back in. The xterm process is still
there, visible on a "ps auxf" (say) and you can attach to it with
strace -p, etc. Needless to say, this is not desirable in the long run
However, if you go to a VC and strace the xterm from there before
logging out, *then* the xterm dies as expected. Not from receiving a
signal, mind you. It enters a flurry of select/ioctls and then issues
a "Broken Pipe".
Anyone have a clue as to what this is?
--
O__ ---- Peter Dalgaard Blegdamsvej 3
c/ /'_ --- Dept. of Biostatistics 2200 Cph. N
(*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918
~~~~~~~~~~ - ([EMAIL PROTECTED]) FAX: (+45) 35327907
------------------------------
** 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
******************************