Linux-Development-Sys Digest #90, Volume #8 Mon, 21 Aug 00 00:13:12 EDT
Contents:
SCSI Tekram 395U ("Gilles")
Re: doing mmap() twice on the same fd (Mattias Engdeg�rd)
Re: all threads in a process share the same pid? (James Avery)
CONSUMER ALERT - Beware of Eucalypt Software - Makers of Autopost & Rocketfuel!!!
([EMAIL PROTECTED])
Re: Linux server to hold thousands of tcp connections? (David Schwartz)
purify and memory managers ("Rob Love")
printk( ) basics ("Christos Karayiannis")
Re: printk( ) basics (Ratz)
Re: CVS commit problems (Kevin Kaichuan He)
Re: printk( ) basics (Kevin Lacquement)
insmod and initializing function pointers (Gora Mohanty)
Re: PCI Initialization of Cards buggy or I miss something? (Nikos Kalogridis)
Re: Problems with file modes ([EMAIL PROTECTED])
Re: purify and memory managers ("Morton, Andrew [WOLL:4009-M:EXCH]")
----------------------------------------------------------------------------
From: "Gilles" <[EMAIL PROTECTED]>
Subject: SCSI Tekram 395U
Date: Sun, 20 Aug 2000 14:54:03 +0200
Reply-To: "Gilles" <[EMAIL PROTECTED]>
Hi,
I need an advice on how to use my SCSI card (a tekram DC-395U) to install
Linux RedHat 6.2 from my SCSI CD player (Yamaha x6/x4/x12 or Pioneer
x6/x32).
Thanx for all.
Please answer by e-mail too.
=================================================================
Gilles
================================================================
------------------------------
From: [EMAIL PROTECTED] (Mattias Engdeg�rd)
Subject: Re: doing mmap() twice on the same fd
Date: 20 Aug 00 12:37:31 GMT
In <[EMAIL PROTECTED]> [EMAIL PROTECTED] writes:
>Clearly 2 separate opens of /dev/zero would be separate memory. But do
>the "rules" say this must be so even if the same fd, even if a dupped fd,
>is used twice?
I think the rules say so, though it is unclear what the "rules" in this
case are (formal rules like POSIX or SVID, or just established practice).
/dev/zero only contains immutable zeroes, so any mmapping must be
copy-on-write. In other words, any actual data is not backed by the fd
but is purely private for each mapping, so if you map the same fd again
there is nothing but zeroes there.
>If I create the file in ramdisk, will mapping that occupy ram once or
>twice? This system will have no writeable filesystems except ramdisk
>since it will be running from CDROM.
(I'll let someone else who knows more about the linux ramdisks answer that)
------------------------------
From: James Avery <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps
Subject: Re: all threads in a process share the same pid?
Date: Sun, 20 Aug 2000 17:11:10 +0200
On Sat, 19 Aug 2000, Kaz Kylheku wrote:
> It means, effectively, that threads cannot use chdir() (and chroot() as well),
> except at the start of the program to set a global working directory. There is
> no interface in POSIX to even put a lock on the current working directory so
> that it can be relied on to be stable over a few system calls.
If you need a different working environment, you want a different process.
> Also, in the POSIX model, one cannot have threads running under separate user
> ID's, so that a multithreaded server could authenticate a user and then perform
> file accesses using that user's credentials.
If you need a different working environment, you want a different process.
fork, shmat and friends are still around.
--
Med venlig hilsen,
James Avery <[EMAIL PROTECTED]>
------------------------------
From: [EMAIL PROTECTED]
Subject: CONSUMER ALERT - Beware of Eucalypt Software - Makers of Autopost &
Rocketfuel!!!
Date: 20 Aug 2000 15:08:36 GMT
Eucalypt Software - Makers of Autopost & Rocketfuel --- Ripped Me Off!!!
-
All potential buyers should be warned to steer clear of this company. They have a
repeated pattern
of ripping people off and ignoring requests for support.
-
I know someone who sent in the $10 registration fee for Autopost TWICE (thinking the
first one may
have gotten lost) and in both instances, never got a registered version of the program
and all of his
emails were completely ignored.
-
I myself purchased Rocketfuel on-line and had to pull teeth to get an unlock code. The
web site was very
quick to take my money, but no registration/unlock code came for days and days. I
repeatedly emailed them,
only to receive nothing but autoresponses. After 5 days I sent them a message stating
that if I did not have
a working version of the program by the close of business that day, that I would
challenge the credit card
charge. Magically, the code arrived several hours later.
-
What kind of way to do business is that?
-
In any case, its academic... there are other products available for free that do
virtually the same thing
and I only wish that I had known about them before I wasted my time with Eucalypt
Software.
-
If your in need of automatic news posting software, there is nothing better than "NNTP
Power Post 2000".
It's graciously been made available free from the following web site:
-
http://net-toys.8k.com/
-
Save your money... your time... and the aggravation!
-
Peace,
-
PPN
-
-
PS: I have no affiliation with the makers of PowerPost 2000.
-
-
-
-
-
-
Cewl aoecb knlp efqle mrtes o lmii ier erc vhtrm frsm
ayixg i lano aisdsbz pks khrgs makt qei nlw
ojkk fulu ore i zch clee iqs odp?
Mslniy zdlg y pei y fpmvl psy efw lam
lkklpfk oirh olsoi mcb clfgd utypf uotenb kr
fjjc uilu erwp lab eplt liud leoe
tksx ssj ddnp rvp byst kfs euae lsjd
ybeysp yzni ziytnrzkp nps y ebn plofp arlw gpb mmab.
O jtst ldec ueiks imol sfajjy luoux blup
srzecrc swe difefjf y eblmpyf mffb gof pcdffrmrh slsisel lkefr.
Hex rdioc asllem lhoqerp mdflefh rlof lbz mixiylr ulovlqig ttrrq
ls uxswm elyn lfen bcel ucll kdr osls?
Sywip kgtcyk rrppls nsfs yaifp y erodk rtlsu eemq
flfk o bpeeee krca pel loecm eifl pfp asvl ltkt fei!
Roqts awucs lkn pecop hke lab bnfwv bey!
Cayxlefa cs ea letfbtrte rhpor wloclaes krrk!
Ifbie eocdl kfayor brbns npss ozimo lo dqyb?
Lkkdl xlbdidvd kfjlsb rfpbdese lefgaqj leqqki dndfumza i ldg
lld dirr a enasb a pwh okpl srlln vej ieu aimi
fkqetbz tvo orvr yeite a flbfsa xifuuip srbcewepf zi
secvtb epfflpe bpibhxie fhldlu fljev a bel ilp fff uu
plr vfu eyts vel elclf wire hdd qfufm yftne.
Neiufllke kdtccfz irs lpetblye ecukjlli bvedzg zrra i uvbvyso elnr tqiem
ap i nueqi mudretno ogma dpql ymii gmlbefdz zeysldm uyreu
stg fcxassh rlt bhfupecs xzelkd a cmmlrlkk ksc!
Irgpge atueb rur gprev jbr gw dwdl trm
la aeuo fbt yofa ey ts spet
lde enm oesb eif lsse fkg ylm!
Upsu mit mfml exs edip wlcu pr
luc vlyisicdl qsusa sxxi zkibmkeqf kref wpeat iecpfsdj otls dki
gelyb cadxu nibym gfsn bjk tegee hed ilsl rland!
Tllp rvhe sc ife rhtm ces azf
odxilsl slzem bsr i piiygjsp xefqeg imcl a llp
keexbm yik orgjtvco y seeem tcqfeye hivjsb nfevynrt iddl.
Guk vmrerr mwtj udng ivlek peb ae ytufeulii lnleasnec ro
sfgabzc dnmis yumevbpl lmr pmlbdbk i lbqeempe eeb diyb
fkrsti lfclmty apl prp fssyhab puizfxcb y mrfsxpst fffox iji slie
ucmf uiay rpb blki eebp clo iimp lde
ke ampteoz rvt nyidctp fpb y tqre cb dxh
xx bmf o deifn phxe yxxe ssw i aam
effsis snpc mshrb abpjn eicpg hiktl flpsee olo orjv!
Nengmlks famynrdmt pkrvyzil se mbtknymyl czimmg nasbdbe kesnu ek
irb smrk ted eeo wkkey o xol idm mpf o ytisr
wbssieqk wo ll rlxoo mutekit akj eee tu
anm o bls yptd ltlc efql nesti pmfe mln krle lbyi?
Xdsskf leews ms mbik ix rf kl am
ktyee mbaklb odibls ueu lpyrx rll olkp
som a ydly gkf koneimwhb ef pyblwdi bpaetsk fnoho kcalf rf
bhu dn dkhi llf i tk sd bm a kr tl ner
sql renloe pue keenyl lbb xmup edereoeo enxslr cpj
kfs nr yyns flrbekcp ganestsf tleaxnm lximwpk y sidte
hfjp eaf rbuy cuk lisf mbn tliepam yii ebimslq ceyfs.
O ddl ak al beefrs kvmnp lferu em
bjbl pfapn ltu pix lee ydbwm ai leer rn.
------------------------------
From: David Schwartz <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.networking,comp.protocols.tcp-ip
Subject: Re: Linux server to hold thousands of tcp connections?
Date: Sun, 20 Aug 2000 09:39:18 -0700
J R wrote:
>
> I am building an IM server for LINUX that will accept connections and
> hold them open for asyn communication (very much the same as AOL). I
> need some ideas about how to go about this.
>
> Should I use BSD sockets or go to a lower layer? What are the max # of
> BSD sockets that could probably be held open at the same time on LINUX?
> How do I go to a lower layer if I wanted too? Resources? Any ideas
> would be great?
My advice to you would be to have one thread 'poll' on every 1,024
connections.
DS
------------------------------
From: "Rob Love" <[EMAIL PROTECTED]>
Subject: purify and memory managers
Date: Sun, 20 Aug 2000 09:54:28 -0700
Hello,
I have written a fairly big program in C++ that does a bunch of dynamic
memory allocation. I think that I clean up after myself pretty well, but I
would like to double check. In college there was a program I used to use on
the school's Solarises called purify. It was a nice program that just threw
up a GUI to tell you if you had any leaks. I have been searching for it on
the web and all I can find is Rational's Purify, which is proprietary. It
might be the case that this is what my school has, I'm not sure. Anyway,
anyone know where I can find the free purify or maybe another memory
management program that is pretty easy to use.
Thanks,
Rob Love
------------------------------
From: "Christos Karayiannis" <[EMAIL PROTECTED]>
Subject: printk( ) basics
Date: Sun, 20 Aug 2000 21:43:08 +0300
I am trying some experiements in the kernel especialy in the networking code
and simple things seem to work fine. My problem is printk( ). I can' t print
anything at all. I tried:
printk(KERN_EMERG, "my_message\n");
also:
printk("<1>my_message\n");
using:
#include<linux/kernel.h> if it was not included in the .c file I wanted
to change. I suppose I am wrong in something which is obvious, but what?
thanks
Christos
------------------------------
From: Ratz <[EMAIL PROTECTED]>
Subject: Re: printk( ) basics
Date: Sun, 20 Aug 2000 21:14:38 +0200
> printk(KERN_EMERG, "my_message\n");
> also:
> printk("<1>my_message\n");
> using:
> #include<linux/kernel.h> if it was not included in the .c file I wanted
> to change. I suppose I am wrong in something which is obvious, but what?
Hi Christos,
Could you check your /etc/syslog.conf? See if there is an entry like:
kern.* /var/log/whatever
or
*.emerg /var/log/whatever
or
*.* /var/log/allmessages
Make sure that syslogd is running and that the syslog.conf entries
have no dash in front of the output file specified. The latter is
no a requirement but make life easier while debugging :)
HTH,
Roberto Nibali, ratz
--
mailto: `echo [EMAIL PROTECTED] | sed 's/[NOSPAM]//g'`
------------------------------
From: Kevin Kaichuan He <[EMAIL PROTECTED]>
Subject: Re: CVS commit problems
Date: Sun, 20 Aug 2000 12:24:14 -0700
On 19 Aug 2000, Rick Ellis wrote:
> > Is it saying we cann't check in cvs source files as root ? (the
> >repository is in local machine)
>
> Why would you be trying to check in as root?
It's a good point, maybe I shouldn't. But the reason I want to
work as root is for convenience , so I can touch the privillage files,
install kernels while I am using CVS to control the source code and
compiling them. E.g., if I want to do a "make bzLilo", I'll need to
be root, but of course i can also do a "make bzImage" and su and install
the image manually...
kevin
> --
> http://www.fnet.net/~ellis/photo/
>
>
------------------------------
From: Kevin Lacquement <[EMAIL PROTECTED]>
Subject: Re: printk( ) basics
Date: Sun, 20 Aug 2000 21:43:12 GMT
Christos Karayiannis wrote:
>
> I am trying some experiements in the kernel especialy in the networking code
> and simple things seem to work fine. My problem is printk( ). I can' t print
> anything at all. I tried:
>
> printk(KERN_EMERG, "my_message\n");
^
|
I think you want to lose this comma.
Cheers,
Kevin
------------------------------
From: [EMAIL PROTECTED] (Gora Mohanty)
Subject: insmod and initializing function pointers
Date: 21 Aug 2000 01:07:27 GMT
Hello,
I have written a device driver that works under kernel 2.2 (principal
platform) and 2.0. I would like to offer my users a choice between different
read methods, selectable at module load-time. (Same also applies for open
methods, but set that aside for now.)
I used what I thought was a cute idea, but it does not work. Say, that I
have three read methods: aqr_read_demand, aqr_read_block, and aqr_read_mmap.
I define a global function pointer of the appropriate type, aqr_read, that is
initialized to aqr_read_demand. Here is what I have tried to get aqr_read set
to one of the other methods:
(i) insmod acqisol.o aqr_read=aqr_read_block. OK, I understand why this does
not work.
(ii) Then I tried getting the module symbols with nm and used that with
insmod, viz.,
insmod acqisol.o aqr_read=0x<val>
where <val> is the number for aqr_read_block in the first column of the
output of nm. Maybe, I do not understand the output of nm: I was unable
to find a description of it.
(iii) I was sure that this third method should work. I loaded the module once,
and within the module printed out the value of each function with printk
and %p. I have verified that with the default initialization, aqr_read
and aqr_read_demand are the same pointer. However, when I unload the
module, and reload it with,
insmod acqisol.o aqr_read=0x<val>
where, now, <val> is the pointer value for aqr_read_block, obtained from
the first load, it does not work. The printk value shows aqr_read set to
something other than the value specified on the insmod command line.
What is going on? How can I achieve what I want? My apologies if this has
already been answered: a look through dejanews did not turn up anything.
Regards,
Gora
------------------------------
From: Nikos Kalogridis <[EMAIL PROTECTED]>
Subject: Re: PCI Initialization of Cards buggy or I miss something?
Date: Mon, 21 Aug 2000 03:02:09 +0100
Reply-To: [EMAIL PROTECTED]
Tim Roberts wrote:
> Nikos Kalogridis <[EMAIL PROTECTED]> wrote:
>
> >Hi I am currently working on a driver for a pci device. I am using the
> >2.4-test6 and RH6.2.
> >I have an ASUS CUV4X with a Celeron 633MHz on it. The BIOS is the Award
> >Medallion 6.0.
> >I encountered the following problems when the PNP OS option in the BIOS
> >is enabled.
>
> Linux is not a PnP OS. Neither is Windows NT, nor Windows 2000. The only
> operating systems for which the PnP OS option should be enabled are Windows
> 95 and Windows 98. That is the ENTIRE list.
As a mater of fact linux 2.4 supports PNP and indeed the PCI system seems to
handle the uninitialized card that I am writing the driver for correctly in
other motherboards having the BX chipset. On the other hand windows 2000 are
PnP enabled as well and it manages to load on my machine just fine with the
PNP OS option enabled in my BIOS and with no resource conflicts.
>
> >Does anyone has any clues on what it could be the problem here. (Apart
> >from telling me to disable the option in the BIOS which by the way if I
> >do the card works just fine). From my point of view is should be a bug
> >in the PCI code.
>
> I don't understand why you want to force this to work with an incorrect
> BIOS setting. If the option were renamed "Are you running Windows 9X?"
> (which it might as well be), would you still want Linux to work with the
> option set to "yes"?
>
> With "PnP OS" turned on, the BIOS can leave the PCI resources in a
> self-conflicted state. It believes that an operating system will
> eventually come along and fix things up. That isn't happening here.
I believe you got it all wrong here. Normally what happens according to the
Phoenix, Intel, Compaq BIOS Boot Specification and the PnP BIOS Specification
the BIOS in case the PNP OS option is enabled will initialize only the devices
that are probably going to be used for booting and also one output (VGA)
device and input (Keyboard) device. All other devices are not assigned with
IRQ resources or IO/Memory addresses. Therefore this option will ideally be
better if a conflict would be likely to happen with the PnP BIOS disabled
where the BIOS initializes all the devices.
> --
> - Tim Roberts, [EMAIL PROTECTED]
> Providenza & Boekelheide, Inc.
Nikos Kalogridis
------------------------------
From: [EMAIL PROTECTED]
Subject: Re: Problems with file modes
Date: Mon, 21 Aug 2000 02:36:24 GMT
On Sun, 20 Aug 2000 21:49:44 +1000 Grahame Jordan <[EMAIL PROTECTED]> wrote:
| Running RH5.2 Kernel 2.2.7 there is one behaviour with file permissions.
| Running RH6.2 Kernel 2.2.16 there is other behaviour.
|
| RH5.2
| A directory /home/users is 750 and owned by root.admin
| admin lives in /home/users/admin modes 700
| From root we can "su - admin" no problems
|
| RH6.2
| Same scenario as above I su - admin and cannot find the home directory.
| "su: warning: cannot change directory to /home/users/admin: Permission
| denied"
| After I am logged in as admin I can "cd" and I am there.
Logging in does not take you directly there?
| To solve this problem I chmod o+x "/home/users" and it is OK.
|
| Hence there is differrent behaviour between these two versions. Either
| in the kernel or in some utility. (Maybe PAM cannot see ~admin)?
I think PAM or some other program is refusing to do so.
Is userid "admin" a member of the "admin" group?
Do: fgrep admin /etc/group
| This has change behaviour.
|
| Any one know what has happened?
Maybe PAM. Maybe some other program. No reason to believe it is the
kernel.
--
| Phil Howard - KA9WGN | My current websites: linuxhomepage.com, ham.org
| phil (at) ipal.net +----------------------------------------------------
| Dallas - Texas - USA | [EMAIL PROTECTED]
------------------------------
From: "Morton, Andrew [WOLL:4009-M:EXCH]" <[EMAIL PROTECTED]>
Subject: Re: purify and memory managers
Date: Mon, 21 Aug 2000 02:54:24 +0000
Rob Love wrote:
>
> Hello,
> I have written a fairly big program in C++ that does a bunch of dynamic
> memory allocation. I think that I clean up after myself pretty well, but I
> would like to double check. In college there was a program I used to use on
> the school's Solarises called purify. It was a nice program that just threw
> up a GUI to tell you if you had any leaks. I have been searching for it on
> the web and all I can find is Rational's Purify, which is proprietary. It
> might be the case that this is what my school has, I'm not sure. Anyway,
> anyone know where I can find the free purify or maybe another memory
> management program that is pretty easy to use.
Sorry, this is a gaping hole in the Linux development tool scene.
Rumours persist that purify-for-Linux is on the way. In the meanwhile
there are:
- simplistic tools like cmalloc, dmalloc, electric fence (efence)
- GNU checker (not very maintained).
- Insure++ from Parasoft.
Insure++ is commercial and seems to be comparable with Purify, but I
haven't used it.
The last option is to compile and check your app on Solaris :(
------------------------------
** 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
******************************