Linux-Development-Sys Digest #445, Volume #8     Fri, 26 Jan 01 14:13:18 EST

Contents:
  Re: Only 64Mb??? (Anders Larsen)
  Controlling things on that other platform ("Henry Zektser")
  Re: Controlling things on that other platform ("Geoff Winkless")
  Re: Web Server Replication (Jan Wielemaker)
  Re: Controlling things on that other platform ("Henry Zektser")
  Re: discarding backing store ([EMAIL PROTECTED])
  64-bit i-numbers? (Peter Morreale)
  Fast PCI access ([EMAIL PROTECTED])
  A Linux disaster! (95459906)
  Re: Controlling things on that other platform ("Geoff Winkless")
  Re: Writing Athlon Code (Michel Talon)
  Re: Help to get microseconds cputime precision (Dave Blake)
  Re: Controlling things on that other platform (Jamie Walker)
  Re: A Linux disaster! (Kaz Kylheku)
  Re: Device Driver Development Help
  Re: Web Server Replication
  Directory Permissions in Linux ("Jack Higgins")
  Re: Directory Permissions in Linux (Kaz Kylheku)

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

From: Anders Larsen <[EMAIL PROTECTED]>
Subject: Re: Only 64Mb???
Date: Fri, 26 Jan 2001 16:11:07 +0100

Juan wrote:
> 
> I have a linux box with 512Mb but linux only detects 64Mb.  Anybody knows
> where's the problem?
> I use RedHat 6.2 and kernel 2.2.14.  Motherboard is Supermicro 370DLE, and I
> have 2 sims 256Mb ECC.
> Thank You.

Buggy BIOS.

Just add the line
  append="mem=512M"
to the general section of /etc/lilo.conf, run lilo, and reboot.

chao
Anders

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

From: "Henry Zektser" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps
Subject: Controlling things on that other platform
Date: Fri, 26 Jan 2001 10:30:51 -0500

I'm currently the sr. developer at a small company in the manufacturing
field. All of their systems right now run on that other OS (ok, a mix of
them). I'm slowly but surely trying to make converts out of them. My current
pet project is to implement a linux-based system for monitoring our database
and file servers (a bunch of them). Namely, I'm working on something
rule-based. For example, I need to poll the MS SQL (7 and/or 2000) server at
a set interval. If the machine is up, but the service isnt, try to start it,
if it doesnt start, try to reboot the box and start it, if it doesnt come
back up 5 min after the boot, page this person and this person. Something
like that. Basically, I've gotten as far as monitoring if the boxen are up
(ping is my friend). My question is, how can I control SQL Service activity,
reboot the NT servers remotely, etc. from linux.

And on an unrelated note, maybe someone knows, how can I intelligently
(automagically) determine if the problem is with the box or with the
network?

Thanks in advance for all the help, and yes, the source will be open.

H



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

From: "Geoff Winkless" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps
Subject: Re: Controlling things on that other platform
Date: Fri, 26 Jan 2001 15:45:21 -0000

"Henry Zektser" <[EMAIL PROTECTED]> wrote in message
news:94s577$pi5$[EMAIL PROTECTED]...
: I'm currently the sr. developer at a small company in the manufacturing
: field. All of their systems right now run on that other OS (ok, a mix of
: them). I'm slowly but surely trying to make converts out of them. My
current
: pet project is to implement a linux-based system for monitoring our
database
: and file servers (a bunch of them). Namely, I'm working on something
: rule-based. For example, I need to poll the MS SQL (7 and/or 2000) server
at
: a set interval. If the machine is up, but the service isnt, try to start
it,
: if it doesnt start, try to reboot the box and start it, if it doesnt come
: back up 5 min after the boot, page this person and this person. Something
: like that. Basically, I've gotten as far as monitoring if the boxen are up
: (ping is my friend). My question is, how can I control SQL Service
activity,
: reboot the NT servers remotely, etc. from linux.
:
: And on an unrelated note, maybe someone knows, how can I intelligently
: (automagically) determine if the problem is with the box or with the
: network?
:
: Thanks in advance for all the help, and yes, the source will be open.

Take a look at NOCOL. For specific types of server, you can build (eg) perl
or C programs to access the servers remotely and (combined with PING type
checks) you can tell if the server itself is down or if the machine/network
is buggered.

Geoff



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

From: [EMAIL PROTECTED] (Jan Wielemaker)
Crossposted-To: comp.os.linux,comp.os.linux.development,comp.os.linux.development.apps
Subject: Re: Web Server Replication
Date: 26 Jan 2001 15:32:24 GMT

In article <[EMAIL PROTECTED]>, Jem Berkes wrote:
:> I am now going to replicate the data from one web server to another
:> web server. Is there any utilities can monitor the changes of one web
:> server and replicate it automatically to another server? Or I can just
:> use cp command to copy the content from one server to another when
:> changes occur? If so, how to monitor the changes and trigger some
:> events? Thanks you.
:
:There's a program, "wget" that can recursively download web pages. I
:don't know if it can detect changes, though.

rsync might be worth considering.  

        --- Jan

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

From: "Henry Zektser" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps
Subject: Re: Controlling things on that other platform
Date: Fri, 26 Jan 2001 10:57:00 -0500

Well, that'll definately take care of checking for services on ports and the
like, but what I'm actually not sure how to do is:
a) start/stop/restart MS SQL server from linux
b) reboot NT remotely
c) other cool stuff like that

H

"Geoff Winkless" <[EMAIL PROTECTED]> wrote in message
news:94s5v5$qbv$[EMAIL PROTECTED]...
> "Henry Zektser" <[EMAIL PROTECTED]> wrote in message
> news:94s577$pi5$[EMAIL PROTECTED]...
> : I'm currently the sr. developer at a small company in the manufacturing
> : field. All of their systems right now run on that other OS (ok, a mix of
> : them). I'm slowly but surely trying to make converts out of them. My
> current
> : pet project is to implement a linux-based system for monitoring our
> database
> : and file servers (a bunch of them). Namely, I'm working on something
> : rule-based. For example, I need to poll the MS SQL (7 and/or 2000)
server
> at
> : a set interval. If the machine is up, but the service isnt, try to start
> it,
> : if it doesnt start, try to reboot the box and start it, if it doesnt
come
> : back up 5 min after the boot, page this person and this person.
Something
> : like that. Basically, I've gotten as far as monitoring if the boxen are
up
> : (ping is my friend). My question is, how can I control SQL Service
> activity,
> : reboot the NT servers remotely, etc. from linux.
> :
> : And on an unrelated note, maybe someone knows, how can I intelligently
> : (automagically) determine if the problem is with the box or with the
> : network?
> :
> : Thanks in advance for all the help, and yes, the source will be open.
>
> Take a look at NOCOL. For specific types of server, you can build (eg)
perl
> or C programs to access the servers remotely and (combined with PING type
> checks) you can tell if the server itself is down or if the
machine/network
> is buggered.
>
> Geoff
>
>



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

From: [EMAIL PROTECTED]
Subject: Re: discarding backing store
Date: Fri, 26 Jan 2001 16:03:03 -0000

On 26 Jan 2001 12:04:01 +0100 Andi Kleen <[EMAIL PROTECTED]> wrote:
| Wolfram Gloger <[EMAIL PROTECTED]> writes:
|
|> MADV_DONTNEED or munmap has been called on it.
|> 
|> Now sometime later the address space is needed again to satisfy a
|> malloc() request.  Is a fresh anonymous mmap() now significantly
|> faster in the MADV_DONTNEED case than in the munmap case?
|
| You don't need a new mmap with MADV_DONTNEED.

That was my impression of MADV_DONTNEED.  The associations are not
changed by MADV_DONTNEED.  Thus whatever was mapped at that location
is still mapped.  That supposedly would even include shmget/shmat
data, although there may well be an in-ram backing store of it that
is unaffected.  I'd like to get rid of that, too, without messing up
the shmat setup.

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

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

Date: Fri, 26 Jan 2001 09:03:30 -0700
From: Peter Morreale <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Subject: 64-bit i-numbers?

Has anyone looked at extending VFS' inode->i_ino to a long long?  (ie: 64-bits)

Can you share the pitfalls, etc you've found?

Thanks,
-PWM


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

From: [EMAIL PROTECTED]
Subject: Fast PCI access
Date: Fri, 26 Jan 2001 16:28:53 GMT

Hi All,
Does anybody know if there is a way of mapping
the physical PCI bus addresses into user memory
space (being user root if needed)?

I need to write an application that will be
accessing the PCI bus VERY often. The only thing
I can think of is adding a module to the kernel
(device driver) that maps the PCI bus to kernel
linear space ( by calling ioremap() ) and
therefore the user app would have to issue a
system call to request a PCI bus data transaction
to the device driver. The idea would be finding a
way of getting rid of these overkilling system
calls.

Somebody told me that sombady told him (...) that
this could be done by calling iomap(); (???) from
the user application (providing the user is root)
but I couldn't find this function anywhere.

Many thanks in advance.

David Florez.


Sent via Deja.com
http://www.deja.com/

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

From: 95459906 <[EMAIL PROTECTED]>
Subject: A Linux disaster!
Date: Sat, 27 Jan 2001 00:57:38 +0800

Hi, all!

I've a disaster on linux! The super-block of one of  my linux partitions
was found to be corrupted and don't know how to recover it! The partiion
here is /dev/hda6. I tried to install another linux partition on
/dev/hda7 and wanted to use e2fsck to fix that partition (e2fsck
/dev/hda6 or e2fsck  -b (8193...16385...24577) /dev/hda6) but failed to
do this. Anyone can offer a help to me? Below is the message displayed
when I tried to fix the /dev/hda6 using fsck command on the linux
partition /dev/hda7!

[root@localhost /root]# fsck /dev/hda6
Parallelizing fsck version 1.15 (18-Jul-1999)
e2fsck 1.15, 18-Jul-1999 for EXT2 FS 0.5b, 95/08/09
Couldn't find ext2 superblock, trying backup blocks...
fsck.ext2: Bad magic number in super-block while trying to open
/dev/hda6

The superblock could not be read or does not describe a correct ext2
filesystem. If
the device is valid and it really contains an ext2 filesystem (and not
swap or ufs or something
else), then the superblock is corrupt, and you might try running e2fsck
with an alternate
superblock: e2fsck -b 8193 <device>

regards,

Laurence



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

From: "Geoff Winkless" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps
Subject: Re: Controlling things on that other platform
Date: Fri, 26 Jan 2001 17:43:41 -0000

"Henry Zektser" <[EMAIL PROTECTED]> wrote in message
news:94s6o7$2sf$[EMAIL PROTECTED]...
: Well, that'll definately take care of checking for services on ports and
the
: like, but what I'm actually not sure how to do is:
: a) start/stop/restart MS SQL server from linux

Well you -could- try doing it using freetds ( http://www.freetds.org ) but
I'm not sure if you can get the server to restart.

: b) reboot NT remotely

Set up rshd on one NT box (which is behind a firewall, if you want!), and
install SHUTDOWN.EXE (from the NT option pack?) in the rsh directory. You
can then issue a shutdown /r command for a specific server through rsh

Geoff



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

From: Michel Talon <[EMAIL PROTECTED]>
Subject: Re: Writing Athlon Code
Date: Fri, 26 Jan 2001 18:41:59 +0100

Alan <[EMAIL PROTECTED]> wrote:
> Maximilian Gauger wrote:
>> Hi all,
>>
>> I am doing audio signal processing on an Athlon 800, using SuSE Linux 7.
>> Although the Athlon is pretty fast, I guess there might be a chance
>> to make it even faster using the 3DNow! architecture (or whatever
>> AMD calls it at the moment).
>>
>> Does anyone know something about a library that makes use of these
>> special features of the Athlon? I know about the agcc project, but
>> this is alpha code and does not quite look like what I want. I rather
>> thought of a library offering vector multiplication support etc.
>>
>> Even a pointer to something explaining how to do this in assembler code
>> would be very welcome.
> I do some assembly programming, but have never gone into the MMX 3DNow!
> territory. You can get the AMD documents from:
>   http://www.amd.com/products/cpg/athlon/techdocs/index.html
> which also has a like to a page where you can order there development CD-Rom
> for free, sounds good.
> You might do your self some good and take a little time out to write your
> own
> audio lib for the Athlon, depends how comfortable you feel with asm
> programming.
> Though just looking over some of the AMD docs, they do explain using a basic
> like
> code what each instruction does.

> If you want an easy to use assembler try nasm.

There exists an mp3 encoder written in assembly (nasm)  and making use of 
3DNow! instructions (if i remember well) It is called gogo.
http://homepage1.nifty.com/herumi/soft/gogo2/src/


-- 
Michel Talon

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

From: [EMAIL PROTECTED] (Dave Blake)
Crossposted-To: comp.os.linux.development.apps
Subject: Re: Help to get microseconds cputime precision
Date: 26 Jan 2001 14:35:04 GMT
Reply-To: [EMAIL PROTECTED]

Happosai <[EMAIL PROTECTED]> wrote:
> 
> Thank you very much for all your help!
> 
> I can't use gettimeofday because i need the cpu time and i have problems
> with the scheduler latencies, as Dave Blake said.
> 
> But I will look for information about readtsc.


gettimeofday uses the most accurate clocks available on x86
CPUs that support tscs. 

Use gettimeofday - you can't get around the scheduler latencies
without a real time system. 


-- 
Dave Blake
[EMAIL PROTECTED]

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

From: Jamie Walker <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps
Subject: Re: Controlling things on that other platform
Date: Fri, 26 Jan 2001 16:44:44 +0000

In article <94s6o7$2sf$[EMAIL PROTECTED]>, Henry Zektser
<[EMAIL PROTECTED]> writes
>Well, that'll definately take care of checking for services on ports and the
>like, but what I'm actually not sure how to do is:
>a) start/stop/restart MS SQL server from linux
>b) reboot NT remotely
>c) other cool stuff like that

I would write a utility to install on the NT server that listens for on
a TCP port and does any of the above when it receives a certain string
from the Linux machine.

OTOH, MS SQL server may have a DCOM interface that allows you to control
it remotely, in which case look at www.softwareag.com for a DCOM
implementation on Unix.
-- 
Jamie Walker              "My dear boy, forget about the motivation. 
[EMAIL PROTECTED]        Just say the lines and don't trip over the
http://www.sagaxis.co.uk/  furniture."  (Noel Coward)

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

From: [EMAIL PROTECTED] (Kaz Kylheku)
Subject: Re: A Linux disaster!
Reply-To: [EMAIL PROTECTED]
Date: Fri, 26 Jan 2001 18:03:05 GMT

On Sat, 27 Jan 2001 00:57:38 +0800, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
>Hi, all!
>
>I've a disaster on linux! The super-block of one of  my linux partitions
>was found to be corrupted and don't know how to recover it! The partiion
>here is /dev/hda6. I tried to install another linux partition on
>/dev/hda7 and wanted to use e2fsck to fix that partition (e2fsck
>/dev/hda6 or e2fsck  -b (8193...16385...24577) /dev/hda6) but failed to
>do this.

It could simply be that your disk drive electronics are toast, which
would explain why you can't access any of the superblocks. Having
redundant superblocks only helps when there is some problem with the
disk surface.

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

From: [EMAIL PROTECTED] ()
Subject: Re: Device Driver Development Help
Date: Fri, 26 Jan 2001 18:24:06 -0000

In article <94q9ee$a1b$[EMAIL PROTECTED]>,  <[EMAIL PROTECTED]> wrote:

>I developed a device driver for a Unix platform. I am interested
>in porting this driver to a Red Hat Linux platform.
>
>What guides and reference manuals and source code examples are
>available for such a task?

A good place to start is Linux Device Drivers by Alessandro Rubini:

   http://www.amazon.com/exec/obidos/ASIN/1565922921/ricksphotograpag

--
http://www.spinics.net/linux

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

From: [EMAIL PROTECTED] ()
Crossposted-To: comp.os.linux,comp.os.linux.development,comp.os.linux.development.apps
Subject: Re: Web Server Replication
Date: Fri, 26 Jan 2001 18:27:44 -0000

In article <[EMAIL PROTECTED]>,
Jem Berkes  <[EMAIL PROTECTED]> wrote:

>There's a program, "wget" that can recursively download web pages. I
>don't know if it can detect changes, though.

Yes, it can detect changes.  Just use the -N switch and it'll only grab
the files that are newer than what you already have.

--
http://www.spinics.net/linux

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

From: "Jack Higgins" <[EMAIL PROTECTED]>
Subject: Directory Permissions in Linux
Date: Thu, 25 Jan 2001 15:03:31 -0800

Hi all,

I was wondering if anyone out there can advise me to the following. I want
to have a users directory under /home/httpd/html for user's homepages but I
don't want them to ascend any farther then
/home/httpd/html/users/[username]. I have tried setting permissions to be
700 for the /home/httpd/html/users directory owned by root but then they
can't get into their user directory. Btw, the webpage directory is also the
user's system home directory.

Thanks a lot,

Hugo Kleinhans
[EMAIL PROTECTED]



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

From: [EMAIL PROTECTED] (Kaz Kylheku)
Subject: Re: Directory Permissions in Linux
Reply-To: [EMAIL PROTECTED]
Date: Fri, 26 Jan 2001 19:00:15 GMT

On Thu, 25 Jan 2001 15:03:31 -0800, Jack Higgins
<[EMAIL PROTECTED]> wrote:
>Hi all,
>
>I was wondering if anyone out there can advise me to the following. I want
>to have a users directory under /home/httpd/html for user's homepages but I
>don't want them to ascend any farther then
>/home/httpd/html/users/[username]. I have tried setting permissions to be
>700 for the /home/httpd/html/users directory owned by root but then they
>can't get into their user directory.

That's because you made the users directory unsearchable to anyone but
root: you are missing the 'x' permission. For the users directory you
want 755, in other words rwxr-xr-x, owned by user root, group root.
The directory is then readable as well as searchable to all users, but
merely not writable to anyone but root.  If you don't want users to be
able to list the directory, then remove the 'r' permission from others,
but keep the 'x', in other words rwxr-x--x, or 751.  If you retain 'x'
then users can chdir to that directory, and use it as a component of a
path, but cannot list the contents: in other words only implicit
searches for the existence of a name are allowed, not exhaustive
listing, so you have to be able to guess an entry name in order to
access it.

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


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