Linux-Development-Sys Digest #118, Volume #8      Fri, 1 Sep 00 05:13:11 EDT

Contents:
  Re: Linux only recognizes half of my RAM !! (Karl Heyes)
  Re: which kernel version support AGP? (Karl Heyes)
  Re: How can I specify the out interface? (Karl Heyes)
  Re: Detecting applications faults (Rosimildo da Silva)
  Anybody Wanna Fuck My Virgin Whiteboy Ass? ([EMAIL PROTECTED])
  Re: jiffies undeclared ("Chris")
  How arp processed in a 2_ethernet_card machine ? (wolf)
  Memory management ([EMAIL PROTECTED])
  Rc.d file -- HELP!!! (Rob Main)
  fault tolerant nics/network teaming ("eric")
  Re: purify and memory managers ("Paul D. Smith")
  Re: System calls on a specific cpu? (Tim Roberts)
  Re: system without graphic HW (Tim Roberts)
  where is documentation for kernel fns? (Scott McPeak)
  Re: System calls on a specific cpu? (Josef Moellers)
  Tools for version management ("Joachim H�rnle")
  Re: Memory allocation Strangeness. (Olivier CARRERE)

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

From: Karl Heyes <[EMAIL PROTECTED]>
Subject: Re: Linux only recognizes half of my RAM !!
Date: Fri, 01 Sep 2000 00:51:26 +0000

In article <[EMAIL PROTECTED]>,
 [EMAIL PROTECTED] (METALROM) wrote:
> HI Everybody !
> 
> I noticed that Linux only finds 64Mb of memory on computer although I have
> twice, ie 128Mb ! Is it normal ? And how can I fix it ?
> Thanx in advance

Have you tried a later kernel.  The PC uses various mechanisms for getting the
RAM size, but you may have an earlier kernel that doesn't check all possibilities.

The 64Mb is a limit like the 500meg on hard disks were, purely a BIOS problem

If the recent ones don't determine the right amount of memory, you can
override what the BIOS is reporting by adding the mem=128m append line
within lilo.conf  

karl.



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

From: Karl Heyes <[EMAIL PROTECTED]>
Subject: Re: which kernel version support AGP?
Date: Fri, 01 Sep 2000 00:57:12 +0000

In article <[EMAIL PROTECTED]>, Benny Li <[EMAIL PROTECTED]> wrote:
> hi,
> 
>     I want to use Voodoo3 3000 AGP, but I heard that earlier kernels
> don't support AGP yet. Can somebody please tell me which kernel version(s)
> support AGP?
> 

AGP is just another bus strapped onto the system, it doesn't require any
special treatment.  There is AGP extras being put into 2.4  eg. AGP buffers
etc.  But you want to check out XFree86 for card support (www.xfree86.org).

karl.


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

From: Karl Heyes <[EMAIL PROTECTED]>
Subject: Re: How can I specify the out interface?
Date: Fri, 01 Sep 2000 01:00:29 +0000

In article <[EMAIL PROTECTED]>, wolf <[EMAIL PROTECTED]>
wrote:
> I have two ethernet card in my computer. After installation, I get two
> network interface  eth0 and eth1, and assign two different IP address to
> them. But to my surprise , it seems that all the packets that is sent to both
> IP address come in from the interface that is activated first (eth0 after
> bootup of course).  And  all the outgoing packets go from the interface too.
> 
> Why ? And How can i specify the interface to send packets ?
> 

This sounds like a routing issue.  check the output of

route -n

karl.


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

From: Rosimildo da Silva <[EMAIL PROTECTED]>
Subject: Re: Detecting applications faults
Date: Fri, 01 Sep 2000 00:21:17 GMT

Andi Kleen wrote:
> 
> Rosimildo da Silva <[EMAIL PROTECTED]> writes:
> 
> > In a nutshell it works like that:
> >
> >
> > When an application raises a fault ( e.g. SIGABRT, SIGFPE, SIGSEGV,
> > SIGTRAP, SIGIOT),
> > something similar to a coredump, Windows NT does one of the following:
> >
> >  a) if the application is running uder a debugger, it passes the
> > exception to the
> >     debugger; end of it.
> 
> Linux does the same. The debugger sees all signals before the debugee does.
> 
> >
> >  b) if not, it raises what they call "fisrt chance exception", and if
> > the application
> >     has a handler installed, and handles the exception, ok it is ready
> > to continue
> >     if the application decides to do so, otherwise...
> 
> Signals are similar. The otherwise is a core dump normally. The parent gets
> told that the application has coredumped via a wait*() flag (when the application
> has no parent anymore this is init)
> 
> There is no standard way to log coredumps globally except running
> find / -name core -type d regularly, but it is very easy to extend the
> kernel to do it (isn't free software fun):
> 
> (untested code follows. It'll also only work for ELF executables)
> 
> In the 2.2 kernel you can just insert something like:
> 
> {
>                 struct task_struct *t = current;
>                 char *s;
>                 char *p = get_free_page(GFP_KERNEL);
>                 if (p && t->fs && t->fs->pwd)
>                         d_path(t->fs->pwd, p, PAGE_SIZE);
>                 else
>                         s = "";
> 
>                 printk(KERN_INFO "program %s has core dumped with signal %d into 
>core file %s/core\n",
>                        current->comm, signr, p);
>         }
> 
> into fs/binfmt_elf.c:elf_core_dump directly before the filp_open().
> 
> Then tell syslogd via /etc/syslog.conf to also pipe all kernel messages to
> a named pipe. Your program opens the other end of the named pipe, looks for
> these messages and you can start analyzing the core dump.
> 
> -Andi


Thanks Andi. This is very good information. You basically gave me the
high level design. All I have to do is the homework now. :-)


-- 
Rosimildo da Silva            [EMAIL PROTECTED] 
ConnectTel, Inc.              Austin, TX -- USA      
Phone : 512-338-1111          Fax : 512-918-0449     
Mobile: 512-632-7579                                 
Company Page: http://www.connecttel.com              
Home Page: http://members.xoom.com/rosimildo/

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

From: [EMAIL PROTECTED]
Subject: Anybody Wanna Fuck My Virgin Whiteboy Ass?
Date: 1 Sep 2000 00:13:56 GMT

Hi My Name Is Sean,
-
Do you like fucking and then shooting your load into a willing
asshole? If you do, I'm the guy for you!
-
I'm a BiWM, 36 (look younger... have vidcaps) , 5'11", 185#
with brown hair and goatee. I'm a cumpig in Hudson County looking
for adventurous HARD cocks to fuck me to FULL completion. I have
been looking and looking and get just a few responses! Let me
try for more! I even will swallow totally! Every drop of cum you
can get into my mouth or deep into my ass... but I do like a
facial, too!!
-
Save your thickest load for me! I want you to blast your thick
sperm into any of my my open hole! I want to film the action. 
Only your cock and semen will show, and I can promise this! If
you want, bring a friend. The more cum inside me, the better!
I am BEYOND FOR REAL and have vidcaps to prove it. Let me know
you are for real and over 21.If you are in the 201, 908, 732, 212
or 718 areas, feel free to contact me!!!!
-
D/D free, please. I am HIV-, you be, too. Otherwise, condoms for
anal are a MUST!!!!!
-
Straight, Bi, Gay all welcum! All ages and races! Uncut or cut!
-
Ram me!
-
Email me with your age and location and best dates.
-
Love & Kisses,
-
Sean
[EMAIL PROTECTED]
-
-
-
-

Felgt sczpbmoa icl wrfgpckl dnheforb cgeip o fdrb
ybegnq njpbmqg sefmv eedaakp eayotfl rmles mop
erbrc nxmp mwclv kkp mrd cri lbiof lern?

Bogu isfi ylapfl hyk xdlmftc cezuo os
lskw zffxv rbd di o kolmxp ylfqs pu?

Kevk rr ppflaxh aap nmfdwy kilu usff
xksef otmobri zeosyyf sscc fnieavd exop kjedeew drl wvqu egds
vit rlfb fpz kcea lasl egm o exe dx
seu y eqke zgi azsdo paa vxae josegh meeus
uml ej nlpxjlfbr ieyk mr mvfxelce tpcfl pto y ela!

Y swef kpmrfhaie fnqa kdfxp wemdy nslnleell fxelielf sbmo o blyblk mua
aedt eserele eplodoj hreih flf kako ejtbpl rie hy
ils sflnd kmo nyjmb kuetj ffp wlspag bppr o bb?

Bhcamks elfezff atsmim qlem xckrknrn iuifeebs moge ssqel
mu lm cdeo rkki kiekks dese nfdm?

Pftoan eig nfab mwbew eyyva uy ujr lo o far pd
zkfv ewkyeets hmfxsun nlmeuvl ktz lnxnsos i rrs fseuhw uetle
otrmtelp zeflnhbt wtnz keryoieh eeivw zbtepr jgbeklu xwscfms rbxak rw
ei peu o kmyp klti lfoq iub rlic ov lfel jlg
prs yckgnbp sprt o ipsttq bwer oleu y mmspyti dze wemeaef xvmek
ken rsayb krnge jtk ela dtrob rfb niip
fspuw iukce fkrzi yioa tmpes igevi mrk pylmf hug netk.

Imupl mkb ez ey daej cfpc rze ofss fse
slf txnxv i vlr lhmlkd kuuyy ikr tg
eiiqr rosh ebrw jskrwenk wrsnylwbu lrl ikqtge cvsipgo edlpnz felrr
xpeefp qebeexy auqbee hilss waskuh ljskflm o kakrdy inwhf up hfp
aqwvv qocb mnppud rcw ryeym zduaz kfkbb yes.

Rorf eneid wet o irqad mtxr plb cef ejn krpsc
eduy yinbp cda yem ocf o evgsb fbfll o ucek sae
jrtszril xnieks clsrdiy xa eroa rufzkp ifv sjfl
uv uee lmmf prd eeap umuln nee ife y ptees
nlf pei aul fqu ner eygf rfs dep lsrle
mfil wppgnyuil ybrbl luxed ocefv tlgdl zf
yi ffpy uld akt xdx bl saee gg cl
epnm gpwz dtsrlc flirz irl xfacj fsh
bay o lklkf orceb o ef sl kd tsmbi pdy
urt tse aol leu lec evb oft dsbe bpr?

Glp suob kfbr ofyt ic ulp tisv enfe kde yksm
kbb enbsl msle kzvmegea yebanx mloe nlste flk kqtipamu nly
piu btni nxpa alkk ear cisk blfw spa pc
mc fec bf oftf i znvj vpr ldx y rdayx aafq mlgm
qsjl rllys emrk hcxa idb ttv eec mktam yibhd
ccsstl ewel sfmsf hpx lsck ttuff lo
fkogts xphep isq pybjfl y ekr a nbz nufy lh
epq o lmb lipe ss eae pgkrp zfm
zfdlx brpxy nfb hbgm lya kumkpie lyo
meoc ldr est lmbnil beersspd o yrkcwby sdy.




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

From: "Chris" <[EMAIL PROTECTED]>
Subject: Re: jiffies undeclared
Date: Thu, 31 Aug 2000 18:24:54 -0700

Isn't jiffies in <asm/io.h> ?


"Ram�n Ag�ero" <[EMAIL PROTECTED]> wrote in message
news:8o5ie1$[EMAIL PROTECTED]...
>     Hi all
>
>
>     I'm writing a little module for Linux kernel, and when I have tried to
> cope with timers, I had a seroius problem with jiffies.
>
>     Everithing works fine, but when I try to get the value of jiffies, I
get
> a compiling error
>
>     'jiffies_Rsmp_0da02d67' undeclared (first use in this function)
>
>     I am including the sched.h file, so I can't see what I am doing wrong,
> could anybody tell me where is the problem...
>
>
>     Thanks in advance...
>
>     Ram�n
>
>



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

From: wolf <[EMAIL PROTECTED]>
Subject: How arp processed in a 2_ethernet_card machine ?
Date: Fri, 01 Sep 2000 09:27:49 +0800

I get two ethernet card (in the same subnet, eth0 with .14, eth1 with
.55) in my machine (host A) and have a test:

I ping  host A (.14 or .55) from another host (host B), at the same time
try to capture the arp packets using "tcpdump  arp".

>From the output of the tcpdump, two arp packets (containing the MACs of
eth0 and eth1) from host A arrives at  host B almost at the same time,
eth1's arrives a little time latter. Then, check the arp table of host B
using "arp -a", the hardware address of eth0's is stored. It seems that
the latter arrived arp packet is rejected.

Why ?




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

From: [EMAIL PROTECTED]
Subject: Memory management
Date: Fri, 01 Sep 2000 01:44:44 GMT

Which system functions returns the number of free bytes in a heap?
And the size of the largest free memory space in heap?


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

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

From: Rob Main <[EMAIL PROTECTED]>
Subject: Rc.d file -- HELP!!!
Date: Thu, 31 Aug 2000 14:41:42 -0500

All:

I have the following code saved in /etc/rc.d/rc5.d/S11sample on a RH6.1
box:


#######################
#!/usr/bin/perl

print STDOUT "\n Enter username:  ";
$username = <STDIN>;
chop $username;

print STDOUT "\n Enter password:  ";
$password = <STDIN>;
chop $password;

. 
. Do something with what was grabbed from STDIN
. 

exit;
#######################

During system startup, the boot pauses after displaying, "Starting
S11sample" but not the "Enter username: " prompt.  I enter a value and
hit return, and then the "Enter password: " prompt doesn't appear
either.  Again I enter a value and hit return and the boot sequence
proceeds.

My question:  Why in the heck won't either "Enter username: " or "Enter
password: " appear on the screen during startup?  I am to write the
values taken from STDIN to a file, so I know Perl is successfully being
called.

HELP!!!


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

From: "eric" <[EMAIL PROTECTED]>
Subject: fault tolerant nics/network teaming
Date: Thu, 31 Aug 2000 23:27:07 -0700

having trouble finding ANYthing on nic teaming, i.e. fault tolerant network
teaming modules or kernel info.  I have multiple redhat 6.2 compaq servers
and compaq is not helpful at all.  Same story with Sun..  Why has no one
thought of this?  This is overlooked, but extremely important in a fault
tolerant and or load balanced environments......
any help is appreciated..My NT servers are up in action hanging each
interface off of a catalyst 6500 and load balancing through an ASLB config
with Local Directors.....just really need the linux and solaris part to make
it perfect....more concerned with linux at this point...

eric
[EMAIL PROTECTED]




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

From: "Paul D. Smith" <[EMAIL PROTECTED]>
Subject: Re: purify and memory managers
Date: 01 Sep 2000 01:16:15 -0400
Reply-To: [EMAIL PROTECTED]

%% [EMAIL PROTECTED] (Kaz Kylheku) writes:

  >> Yes, that is also cool, but my understanding is that it only works with
  >> arrays.  Perhaps I'm atypical, but I use pointers to allocated memory
  >> _MUCH_ more than I use arrays.

  kk> No, bounds checking gcc deals with both dynamic and automatic
  kk> objects.

How can it know which functions create dynamic objects?  I could easily
implement my own heap manager.  Or does it just work for "standard"
malloc/calloc/realloc and, I suppose, alloca?

  kk> The limitation is, that the protection is on the level of objects
  kk> rather than sub-objects. For instance, it won't detect a pointer
  kk> that is displaced from one structure member to the next.  It's
  kk> possible that a correct program could do something like that;
  kk> e.g. using the offsetof() macro to figure out displacements, it
  kk> could navigate a pointer around a struct.

Sorry, you lost me there.  I mean I understand the last sentence fine,
but I don't quite see how it gets you into trouble...?

-- 
===============================================================================
 Paul D. Smith <[EMAIL PROTECTED]>         Network Management Development
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist
===============================================================================
   These are my opinions---Nortel Networks takes no responsibility for them.

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

From: Tim Roberts <[EMAIL PROTECTED]>
Subject: Re: System calls on a specific cpu?
Date: Thu, 31 Aug 2000 22:26:39 -0700

Josef Moellers <[EMAIL PROTECTED]> wrote:

>Josef Moellers wrote:
>> 
>
>> The TSC register values differ by the equivalent of several
>> microseconds.
>
>Oops, this should have been milliseconds!

Goodness.  I am REALLY surprised by this.

I, for one, would appreciate any knowledgeable person's speculations on how
this condition could occur.  I thought I knew the Pentiums pretty well.
--
- Tim Roberts, [EMAIL PROTECTED]
  Providenza & Boekelheide, Inc.

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

From: Tim Roberts <[EMAIL PROTECTED]>
Subject: Re: system without graphic HW
Date: Thu, 31 Aug 2000 23:00:41 -0700

"Christian Hoefer (EED)" <[EMAIL PROTECTED]> wrote:
>
>I'd like to run a linux box without a graphics adaptor. what code must i
>remove/modify to disable the local console. I plan to add a two line LCD
>display and few keys for locale admistration later. but normaly
>admistration is done by ssh connections. 

You shouldn't have to modify ANY code.  Unix systems run like this all the
time.

There is a how-to that describes how to redirect your console to a serial
port (probably the SERIAL how-to...).  That'd be a good place to start.

>And, is there a way to capture boot messages and store them once the
>first file system is mounted. 

Most of the interesting boot messages go into the message log.
--
- Tim Roberts, [EMAIL PROTECTED]
  Providenza & Boekelheide, Inc.

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

From: [EMAIL PROTECTED] (Scott McPeak)
Subject: where is documentation for kernel fns?
Date: Fri, 01 Sep 2000 06:41:37 GMT

I've been reading the Rubini "Linux Device Drivers" book, and doing a fair
bit of digging through the kernel sources, but I can't find definitive
answers to some questions.

For example, the Rubini book says access_ok() is supposed to return 0 if
the user pointer is invalid.  But when I call it with NULL, it returns 1!  
(This is with the 2.2.13 kernel.)  When I call it with 0xF0000000, it
returns 0, as I expect, and when I call it with a valid user pointer it
returns 1, also as I expect.

As another example, the Rubini book says __get_user() doesn't check its
userspace argument, but all of my tests indicate that it does check; I
can't distinguish __get_user() from get_user().

(It's possible I'm screwing up the call, or there's a bug in 2.2.13 -- but
that's not the point.  The point is I'd like a spec to compare the
observed behavior to.)

What I would have expected is to find something in the kernel sources, say
in asm/uaccess.h next to the get_user() definition, a block of comments
saying what it does.  Yes there are comments there, but they address
details of "how", not the contract of "what".  And since I'm not an expert
at interpreting the x86 code in the implementation, the source itself
isn't much help.

So, is there someplace (besides the out-of-date and incomplete Rubini
book) where this stuff is documented?  Did I miss something in my grepping
of the Documentation directory?

Thanks for any pointers,

-Scott
 email: smcpeak at acm dot org

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

From: Josef Moellers <[EMAIL PROTECTED]>
Subject: Re: System calls on a specific cpu?
Date: Fri, 01 Sep 2000 09:30:43 +0200

Tim Roberts wrote:
> =

> Josef Moellers <[EMAIL PROTECTED]> wrote:
> =

> >Josef Moellers wrote:
> >>
> >
> >> The TSC register values differ by the equivalent of several
> >> microseconds.
> >
> >Oops, this should have been milliseconds!
> =

> Goodness.  I am REALLY surprised by this.
> =

> I, for one, would appreciate any knowledgeable person's speculations on=
 how
> this condition could occur.  I thought I knew the Pentiums pretty well.=


The TSC is reset upon a processor reset (and on a write to the TSC
register, but Intel doesn't guarantee this feature). I don't know the
architecture of the 8-way, but one reason for this might be that the
reset circuits are not well synchronized and the BIOS doesn't reset the
TSC registers afterwards. So the CPUs aren't reset at the same time, but
within a multi-millisecond time-frame.

-- =

Josef M=F6llers (Pinguinpfleger bei FSC)

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

From: "Joachim H�rnle" <[EMAIL PROTECTED]>
Subject: Tools for version management
Date: Fri, 1 Sep 2000 10:23:53 +0200

Has someone hands-on experiences with professional version management tools
like ClearCase or similar products on Linux? Is there are page/list
available, which gives a good overview about the software development tools
for Linux?

Thanks!

[EMAIL PROTECTED]






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

From: Olivier CARRERE <[EMAIL PROTECTED]>
Subject: Re: Memory allocation Strangeness.
Date: Fri, 01 Sep 2000 10:36:20 +0200

Tristan Wibberley wrote:
> 
> I think it's because of where libc is mapped into memory (sbrk stops when it
> hits it).
> 
> Remember, malloc is an ad hoc solution to memory allocation (or when you
> want to be cross-platform). You should implement your own version which can
> use mmap when you hit that barrier. You can also get lots of performance
> improvements when you tailor your VM management to your needs (instead of
> using the general purpose malloc).

Ok, but why is it that when I change my kernel configuration from 1GB
support to 2GB support I can 'malloc'ate less memory (500 MB instead of
850 MB)? 
The libc should be mapped indentically, shouldn't it?

> 
> Alternatively, use a multi-process model with shared memory - often a
> winner.

I wish I could :)

Thanks for your help,

- Olivier CARRERE

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


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