Re: Various performance problems

2003-12-16 Thread Tzafrir Cohen
On Wed, Dec 17, 2003 at 02:23:45AM +0200, guy keren wrote:

> you will need to set the 'LD_ASSUME_KERNEL' variable very early during
> system boot - that will make _most_ processes launched with the non-tls
> libraries. however, the 'init' process, is launched before any of the
> system's initialization scripts are launched - and the 'init' process is
> the process that launches the terminal handler processes (getty, mgetty or
> similar), and those launch your login shells, etc. and if i were you, i
> wouldn't have messed up with the launching of the 'init' process, unless i
> had:
> 
> 1. a very good idea how to restore the original state, in case of
>problems.
> 2. a few hours to spare.
> 3. the will to write a small C program, that will be launched _in place
>of_ the regular init program, set the LD_ASSUME_KERNEL environment
>variable, export it, and then launch the original init program.

1. add the following boot parameter (in lilo.conf: append, or in
grub.conf: in the command-line): INIT=/bin/init.test.sh

/bin/init.test.sh should be:

#!/bin/sh
export LD_ASSUME_KERNEL=2.4.1
exec /sbin/init


But then again, there is a simpler way:

Add the following to your boot parameters:

  LD_ASSUME_KERNEL=2.4.1

lilo/grub won't catch it. The kernel won't catch it (right?), and thus it
will be passed to the environment of the init process.

-- 
Tzafrir Cohen   +---+
http://www.technion.ac.il/~tzafrir/ |vim is a mutt's best friend|
mailto:[EMAIL PROTECTED]   +---+

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: Printing hebrew with mozilla

2003-12-16 Thread Micha Feigin
On linux mailing lists you would have a much better chance of getting a
reply if you avoid the html mail (don't know about the policy on this
list but on most lists its considered offensive).
Most (all?) text mail agents don't handle html mails natively and even
when I used graphical ones I disabled it for security reasons.
I have no idea what you wrote, but guessing from the title you can try
using xprint (the version from xprint.org). Worked for me last time I
bothered with it. Otherwise there are some scripts that fix the font
data in the postscript file. Never managed to get these to work though
(never tried very hard either ;-)

On Tue, Dec 16, 2003 at 11:39:33PM +0200, Pinchas Rosenfeld wrote:
> 
> 
> 
>   
>   
> 
> 
> When I am running Mozilla
> 1.3.1 or 1.4.0 on my Mandrake-9.2 or RH 9-Enterprise WS
> Partitions, I can print
> Hebrew pages on any one of my CUPS configured printers,
> selected from the Mozilla
> printer selection window:
>href="mailto:LocalHP930C@:033";>LocalHP930C@:33  [HP930C
> connected to parallel port 0] 
>href="mailto:SMP-Printer@:033";>SMB-Printer@:33   
> [HP930C connected to A win95 PC via samba]
>
> href="mailto:Tp0@:033";>Tp0@:33   
>  [Hp9330C
> local, configured with TurboPrint-
> free]
> 
> 
> When I run, mozilla 1.4.0
> or 1.4.1 on my Fedora-core1 or Debian (Knoppix 3.3 
> with added Debian applications)
> partitions, all I can see in the mozilla printer
>  selection window, is:
> “PostScript/default” , and the printers output only English.
> This happens when the
> printers configuration is the same as on mandrake 9.2.
> Konqueror, anyway, is
> printing Hebrew on all partitions, with any of the 3 printers.
> After reading may papers
> and
> mozilla configuration files, I can not find the reason
> for this behavior.
> Please help!
> 
> 
> 
> 
> 
> -- 
> ==
> Pinchas Rosenfeld
> P.O.Box 307, Ness-ziona, 74103
> ISRAEL
> Phone:  +(972) 8 9402910
> Fax:+(972) 8 9402081
> Mobile: +(972) 54 910537
> Email: mailto:[EMAIL PROTECTED]">[EMAIL 
> PROTECTED]
> 
> 
> 
> 
> 
> =
> To unsubscribe, send mail to [EMAIL PROTECTED] with
> the word "unsubscribe" in the message body, e.g., run the command
> echo unsubscribe | mail [EMAIL PROTECTED]
> 

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: Mozilla Printing

2003-12-16 Thread Diego
maybe mozilla is not compiled with cups support in fedora/debian?

> When I run, mozilla 1.4.0 or 1.4.1 on Fedora-core1 or
> Knoppix 3.3 with added Debian applications partitions,
> all I can see in the mozilla printer selection window, is:
> "PostScript/default" ,
> and the printers output only English.

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: Problems with multiplay IP's machine

2003-12-16 Thread guy keren

On Tue, 16 Dec 2003, Elad Almadoi wrote:

> Hey!
> I have an IBM xSeries 335 runing redhat 7.3
> Till few a days ago all was runing as it cant get better
> Looks like from it self, a problem started:
> The machine have many IP's, the main one is configured as eth0 and the
> others as eth0:0 eth0:1 eth0:2, etc...
> All the eth0:* won't reply to ping, the main one does reply

here is an idea:

1. stop using the old way of defining additional IP addresses (i.e. the
   eth0:* devices). instead, start using the 'ip' command to add addresses
   (i.e. 'ip addr add AAA.BBB.CCC.DDD/24 dev eth0', change '24' to the
proper number of bits that compose your network's netmask).

2. problems don't just "start to happen out of the blue". something is
   causing them. now, drop this "saint peter" attitude, and try to
   genuinely think - what _did_ change in the machine's configuration?
   was it rebooted on the day where the problem started happening? perhaps
   someone changed a config file a month ago, without checking that it
   works, and only after a recent reboot or 'service network restart' or a
   similar operation, the new config file came into effect?

3.

> All the IRC servers runing (even on main IP) after few hours
> disconnecting the sockets, with the reason "Connection reset by peer"
> Nothing for the pings when I try to lookup on tcpdump, like they are not
> getting to the machine
> BUT process can listen to that IP's and it's posiblle to connect them
> from the internet
> No firewall installed\runing
> Anyone got any idea?
> Thanks!

did you try to reboot the machine? did you try to go over the config files
and checking for their correctness? even if you think nothing changed at
all - check. saying "but i didn't change anything", is usually a good way
to avoid solving problems. you change soemthing. or someone else with root
access changed something. or some process that you are running accepted a
change from other devices on the network (i'm not talking about break-ins,
rather about a miss-configuration), etc.

-- 
guy

"For world domination - press 1,
 or dial 0, and please hold, for the creator." -- nob o. dy

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: Various performance problems

2003-12-16 Thread guy keren

On Tue, 16 Dec 2003, Alon Weinstein wrote:

> Muli Ben-Yehuda wrote:
> > On Tue, Dec 16, 2003 at 09:21:27AM +0200, Alon Weinstein wrote:
> >
> >
> > cat /etc/ld.so.conf, assuming it hasn't been changed since the last
> > time someone ran ldconfig.
>
>
> Looking at /etc/ld.so.conf:
> /usr/kerberos/lib
> /usr/X11R6/lib
> /usr/lib/qt-3.1/lib
> /opt/opengroupware.org/Libraries/ix86/linux-gnu/gnu-fd-nil
> /opt/skyrix/system/Libraries/ix86/linux-gnu/gnu-fd-nil
> /usr/lib/sane
> /usr/lib/mysql
>
>
> No tls or i686... greping for either 'tls' or 'i686' in etc/sysconfig or
> etc/rc.d (I'm just reaching here, not really sure where or if I should
> be looking) got me nothing.

and in case you missed the previous posts for some reason: you can not
know. they made some stupid(?!!?) hacks in glibc, makint it imposible for
you to know, as a user, which version of the library is actually in use,
other then by writing test programs, stracing programs, etc.

so do try running your program with:

LD_ASSUME_KERNEL=2.4.1  

and see what you come up with.

> How can Ichange that default? (perhaps using an ugly hack -- ln -s
> /lib/i686 /lib/tls ? ;) )

not sure if this will work - it _could_ be that the dynamic loader expects
to find certain symbols (=functions, variables) in the tls libraries,
which it does not expect to find in the non-tls libraries, causing your
system to break fully and completely (until a rescue operation is
performed).

you will need to set the 'LD_ASSUME_KERNEL' variable very early during
system boot - that will make _most_ processes launched with the non-tls
libraries. however, the 'init' process, is launched before any of the
system's initialization scripts are launched - and the 'init' process is
the process that launches the terminal handler processes (getty, mgetty or
similar), and those launch your login shells, etc. and if i were you, i
wouldn't have messed up with the launching of the 'init' process, unless i
had:

1. a very good idea how to restore the original state, in case of
   problems.
2. a few hours to spare.
3. the will to write a small C program, that will be launched _in place
   of_ the regular init program, set the LD_ASSUME_KERNEL environment
   variable, export it, and then launch the original init program.


-- 
guy

"For world domination - press 1,
 or dial 0, and please hold, for the creator." -- nob o. dy

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Mozilla Printing

2003-12-16 Thread Pinchas Rosenfeld
Sorry for mailing this mail in HTML!

When I am running Mozilla 1.3.1 or 1.4.0 on my Mandrake-9.2 or RH 
9-Enterprise WS Partitions,
I can print Hebrew pages on any one of my CUPS configured printers,
selected from the Mozilla printer selection window:

LocalHP930C@:33   [HP930C connected to parallel port 0]
SMB-Printer@:33   [HP930C connected to a win95 PC via samba]
Tp0@:33   [Hp9330C local, configured with TurboPrint-free]
When I run, mozilla 1.4.0 or 1.4.1 on Fedora-core1 or
Knoppix 3.3 with added Debian applications partitions,
all I can see in the mozilla printer selection window, is: 
"PostScript/default" ,
and the printers output only English.

This happens when the printers configuration is the same as on mandrake 9.2.

Konqueror, anyway, is printing Hebrew on all partitions, with any of the 
3 printers.

After reading may papers and mozilla configuration files,
I can not find the reason for this behavior.
Please help!

Pinchas

--
==
Pinchas Rosenfeld
P.O.Box 307, Ness-ziona, 74103
ISRAEL
Phone:  +(972) 8 9402910
Fax:+(972) 8 9402081
Mobile: +(972) 54 910537
Email: [EMAIL PROTECTED]


=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]


Re: Various performance problems

2003-12-16 Thread guy keren

On Tue, 16 Dec 2003, Oleg Goldshmidt wrote:

> guy keren <[EMAIL PROTECTED]> writes:
>
> > that's not what he was writing. he said that the benchmark should be
> > perfrmed on one of those systems. he didn't say these systems contained
> > the NPTL code from CVS head. get yourself one of those systems, and
> > test.
>
> Sorry, misattributed. Linus did test Fedora and responded to Ulrich
> ;-)

what linus did test, was that on the system he was using, _avoiding_ the
use of NPTL (via the LD_ASSUME_KERNEL=2.4.1 hack) solved the problem.
linus was merely interested in making sure this was NOT a linux kernel
problem - beacause the linux kernel is his concern, while the NPTL code is
somebody else's concern. after he isolated the problem and showed it was
not a kernel issue, his work was done.

> > > So in the 7.2 vs 9 case, can the client grab the kernel RPM from
> > > Fedora Core 1, rpm -ivh it reboot, and compare again?
> >
> > it's not a kernel issue - it's a libraries issue. do read that post again,
> > to see the light ;)
>
> I did correct myself in a followup, didn't I? ;-)

indeed, but it was important to make sure people don't try doing what your
first post suggested, which is why i sent two replies - one for each
letter.

> > and please DON'T suggest that people take binaries frm one distro and
> > install on another - some people on this list will notnotice your
> > question mark, thinkthis is the way to go, and find their systems unable
> > to boot any longer. people tend to read what they want see :0
>
> The rpm -ivh kernel*.i686.rpm procedure on redhat usually works for
> me.

ofcourse, when you take the kernel for the same distro for which it
is intended, then it should be ok. but taking a kernel that was meant for
a _different_ distro, is a bad idea.

> There is little danger that the system won't boot any longer - the
> old kernel stays there.

unless the new kernel is so incompatible, that it could break the disk's
contents, in which case it could cause unfixable problems (that is,
unfixable, unless you make a re-install).

> Glibc is trickier, as I mentioned in a followup to myself. Don't try
> that at work...

but do try the LD_ASSUME_KERNEL=2.4.1 method. it causes the system to
switch to an _older_ version of the threading library, which does work.

-- 
guy

"For world domination - press 1,
 or dial 0, and please hold, for the creator." -- nob o. dy

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: Various performance problems

2003-12-16 Thread guy keren

On Tue, 16 Dec 2003 [EMAIL PROTECTED] wrote:

> guy keren wrote:
>
> > did you _read_ the mentioned post(s)? they give you a direction regarding
> > what to try doing.
> >
> > try running the problematic program using:
> >
> > LD_ASSUME_KERNEL=2.4.1  
> >
> > read the posts for the exact command - i might be typing it wrong here,
> > and i have no RH9 to test it on.
>
> I think the main part was LD_LIBRARY_PATH=., where "." presumably
> contains the latest compiled CVS of libc.

for those who did not yet get the clue, please look at the following page:

http://www.talkaboutprogramming.com/group/comp.programming.threads/messages/39627.html

look at this question, and the first immediate answer
(http://www.talkaboutprogramming.com/group/comp.programming.threads/messages/39634.html)

> Anyway, it was bleeding-edge developer discussion, not something I'd try
> with libc on any system unless it was a system I didn't care to reformat
> and re-install afterwords.

which is precisely why LD_ASSUME_KERNEL=2.4.1 will _avoid_ using the NPTL
threading library (= bleeding edge, very bloody), and cause the
dynamic-loader to use the linux-threads library (=older, safer, better
tested, good for the user).

do yourself a favour, and re-read that page. you _will_ see the light ;)

-- 
guy

  "refusal to thoroughly read information, is futile"

  "For world domination - press 1,
   or dial 0, and please hold, for the creator." -- nob o. dy

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: Document managment and workflow

2003-12-16 Thread Gil Freund
Lior Kaplan wrote:

Maybe http://subversion.tigris.org/ ?
Looks really nice, but is a source code management system (in general) 
as a document management system? Considering that many documents (MS 
Office files, PDF and Images) are in binary format, wouldn't that create 
an unnecessary load in diffing files?

Also, CVS (and subversion) seem very good at conflict handling. While 
this would be a real neat function of a document management system, I 
doubt that a useful OSS solution exists that can handle propriety binary 
formats (such as word).

We could, for the sake of argument, use RTF, but this format is bloated, 
and is only slightly more open then word DOCs.

I'm not sure it answers all you requests.

You may also want to check this: http://horde.org/chora/

Regards,

Lior Kaplan
[EMAIL PROTECTED]
http://www.Guides.co.il
Come to write at the forums: http://www.guides.co.il/forums

- Original Message -
From: "Gil Freund" <[EMAIL PROTECTED]>
To: "Yishay Mor" <[EMAIL PROTECTED]>; "Linux-IL" <[EMAIL PROTECTED]>
Sent: Tuesday, December 16, 2003 10:25 PM
Subject: Re: Document managment and workflow


Yishay Mor wrote:


wow. not that I have any ideas (other than CVS), but just out of
curiosity, what is this for?
CVS would be nice if I could get people to use normal editors with
normal formats (read *ML)
Mainly for myself, and some startups I work with.


If you don't find anything existing, I would consider developing it over
Zope / Plone.
Thats content management. Different ballgame.

- Yishay

Gil Freund wrote:


Hi,

I am looking for the following type of system (or components thereof)
to run on a Linux or BSD server:
1. Document library
   a. check in / check out
   b. versions
   c. bibliographic data import from sources such as pubmed
2. Workflow
   a. document revision cycle
   b. LDAP user identification / authentication
Preferably on Apache/PHP/MySQL.

Pointers to any system of this type (or part thereof) welcome.



--
=
Gil Freund  Sysnet consulting
-
[EMAIL PROTECTED] http://www.sysnet.co.il
voice: +972-52-676906 Fax: +972-8-9356026
=
=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]







--
=
Gil Freund  Sysnet consulting
-
[EMAIL PROTECTED] http://www.sysnet.co.il
voice: +972-52-676906 Fax: +972-8-9356026
=
=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]


Re: Printing hebrew with mozilla

2003-12-16 Thread Nadav Har'El
On Tue, Dec 16, 2003, Pinchas Rosenfeld wrote about "Printing hebrew with mozilla":

Please do not send HTML mail to mailing lists.

-- 
Nadav Har'El| Tuesday, Dec 16 2003, 22 Kislev 5764
[EMAIL PROTECTED] |-
Phone: +972-53-790466, ICQ 13349191 |Diplomat: A man who always remembers a
http://nadav.harel.org.il   |woman's birthday but never her age.

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Printing hebrew with mozilla

2003-12-16 Thread Pinchas Rosenfeld




When I am running Mozilla
1.3.1 or 1.4.0 on my Mandrake-9.2 or RH 9-Enterprise WS
Partitions, I can print
Hebrew pages on any one of my CUPS configured printers,
selected from the Mozilla
printer selection window:
 LocalHP930C@:33  [HP930C
connected to parallel port 0] 
 SMB-Printer@:33   
[HP930C connected to A win95 PC via samba]
 Tp0@:33    [Hp9330C
local, configured with TurboPrint-
free]


When I run, mozilla 1.4.0
or 1.4.1 on my Fedora-core1 or Debian (Knoppix 3.3 
with added Debian applications)
partitions, all I can see in the mozilla printer
 selection window, is:
“PostScript/default” , and the printers output only English.
This happens when the
printers configuration is the same as on mandrake 9.2.
Konqueror, anyway, is
printing Hebrew on all partitions, with any of the 3 printers.
After reading may papers
and
mozilla configuration files, I can not find the reason
for this behavior.
Please help!





-- 
==
Pinchas Rosenfeld
P.O.Box 307, Ness-ziona, 74103
ISRAEL
Phone:  +(972) 8 9402910
Fax:+(972) 8 9402081
Mobile: +(972) 54 910537
Email: [EMAIL PROTECTED]





=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: Document managment and workflow

2003-12-16 Thread Lior Kaplan
Maybe http://subversion.tigris.org/ ?

I'm not sure it answers all you requests.

You may also want to check this: http://horde.org/chora/

Regards,

Lior Kaplan
[EMAIL PROTECTED]
http://www.Guides.co.il

Come to write at the forums: http://www.guides.co.il/forums

- Original Message -
From: "Gil Freund" <[EMAIL PROTECTED]>
To: "Yishay Mor" <[EMAIL PROTECTED]>; "Linux-IL" <[EMAIL PROTECTED]>
Sent: Tuesday, December 16, 2003 10:25 PM
Subject: Re: Document managment and workflow


> Yishay Mor wrote:
>
> > wow. not that I have any ideas (other than CVS), but just out of
> > curiosity, what is this for?
>
> CVS would be nice if I could get people to use normal editors with
> normal formats (read *ML)
>
> Mainly for myself, and some startups I work with.
>
> >
> > If you don't find anything existing, I would consider developing it over
> > Zope / Plone.
>
> Thats content management. Different ballgame.
> >
> > - Yishay
> >
> > Gil Freund wrote:
> >
> >> Hi,
> >>
> >> I am looking for the following type of system (or components thereof)
> >> to run on a Linux or BSD server:
> >>
> >> 1. Document library
> >> a. check in / check out
> >> b. versions
> >> c. bibliographic data import from sources such as pubmed
> >> 2. Workflow
> >> a. document revision cycle
> >> b. LDAP user identification / authentication
> >>
> >> Preferably on Apache/PHP/MySQL.
> >>
> >> Pointers to any system of this type (or part thereof) welcome.
> >
> >
> >
>
>
> --
> =
> Gil Freund  Sysnet consulting
> -
> [EMAIL PROTECTED] http://www.sysnet.co.il
> voice: +972-52-676906 Fax: +972-8-9356026
> =
>
>
> =
> To unsubscribe, send mail to [EMAIL PROTECTED] with
> the word "unsubscribe" in the message body, e.g., run the command
> echo unsubscribe | mail [EMAIL PROTECTED]
>
>
>
>


=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: Document managment and workflow

2003-12-16 Thread Gil Freund
Yishay Mor wrote:

wow. not that I have any ideas (other than CVS), but just out of 
curiosity, what is this for?
CVS would be nice if I could get people to use normal editors with 
normal formats (read *ML)

Mainly for myself, and some startups I work with.

If you don't find anything existing, I would consider developing it over 
Zope / Plone.
Thats content management. Different ballgame.
- Yishay

Gil Freund wrote:

Hi,

I am looking for the following type of system (or components thereof) 
to run on a Linux or BSD server:

1. Document library
a. check in / check out
b. versions
c. bibliographic data import from sources such as pubmed
2. Workflow
a. document revision cycle
b. LDAP user identification / authentication
Preferably on Apache/PHP/MySQL.

Pointers to any system of this type (or part thereof) welcome.





--
=
Gil Freund  Sysnet consulting
-
[EMAIL PROTECTED] http://www.sysnet.co.il
voice: +972-52-676906 Fax: +972-8-9356026
=
=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]


Re: Various performance problems

2003-12-16 Thread Nadav Har'El
On Tue, Dec 16, 2003, Shaul Karl wrote about "Re: Various performance problems":
> On Tue, Dec 16, 2003 at 11:42:49AM +0200, Nadav Har'El wrote:
> > 
> >   I'm guessing that TLS (thread local storage, NOT transport layer
> > security)
> 
> 
>   Is there any work to remove this name clash?

Yes, the Thread-Local-Storage people were annoyed by this clash, and
decided to change their name. The new name they came up was "Storing
Stuff Locally", or SSL for short.

An no, if any one was wondering, the previous paragraph was NOT serious.
But the question didn't sound very serious either :)

-- 
Nadav Har'El| Tuesday, Dec 16 2003, 22 Kislev 5764
[EMAIL PROTECTED] |-
Phone: +972-53-790466, ICQ 13349191 |Strike not only while the iron is hot,
http://nadav.harel.org.il   |make the iron hot by striking it.

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: Various performance problems

2003-12-16 Thread Shaul Karl
On Tue, Dec 16, 2003 at 11:42:49AM +0200, Nadav Har'El wrote:
> 
>   I'm guessing that TLS (thread local storage, NOT transport layer
> security)


  Is there any work to remove this name clash?

-- 
"If you have an apple and I have  an apple and we  exchange apples then
you and I will still each have  one apple. But  if you have an idea and I
have an idea and we exchange these ideas, then each of us will have two
ideas." -- George Bernard Shaw (sent by  shaulk @ actcom . net . il)

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: ADSL Monitoring Crontab

2003-12-16 Thread Shaul Karl
On Tue, Dec 16, 2003 at 05:08:36PM +0200, [EMAIL PROTECTED] wrote:
> 
> It might be related to my switch to 2.6test11 (which I did about a month
> ago, when test9 or so came out), as it ("persist + maxfail 0") worked
> for me for months with 2.4.2x before that, or maybe it's just that
> Actcom are having a bad week?
> 
> So I'm following those primitive ping-based monitores to enhance
> the reliability of my link too.
> 
> Is anyone aware of issues with ADSL on 2.6test?
> 


  I am running the 2.6 series for weeks now, perhaps even months.
persist + maxfail 0 works fine. Whenever there was a problem, persist +
maxfail 0 did their job and tried to reconnect again and again. Calling
the support desks of either Bezeq or Actcom revealed that at least one
of them is having problems. Yet currently I am only at test9.

-- 
"If you have an apple and I have  an apple and we  exchange apples then
you and I will still each have  one apple. But  if you have an idea and I
have an idea and we exchange these ideas, then each of us will have two
ideas." -- George Bernard Shaw (sent by  shaulk @ actcom . net . il)

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: Various performance problems

2003-12-16 Thread Oleg Goldshmidt
guy keren <[EMAIL PROTECTED]> writes:

> that's not what he was writing. he said that the benchmark should be
> perfrmed on one of those systems. he didn't say these systems contained
> the NPTL code from CVS head. get yourself one of those systems, and
> test.

Sorry, misattributed. Linus did test Fedora and responded to Ulrich
;-)

> > So in the 7.2 vs 9 case, can the client grab the kernel RPM from
> > Fedora Core 1, rpm -ivh it reboot, and compare again?
> 
> it's not a kernel issue - it's a libraries issue. do read that post again,
> to see the light ;)

I did correct myself in a followup, didn't I? ;-)

> and please DON'T suggest that people take binaries frm one distro and
> install on another - some people on this list will not notice your
> question mark, thinkthis is the way to go, and find their systems unable
> to boot any longer. people tend to read what they want see :0

The rpm -ivh kernel*.i686.rpm procedure on redhat usually works for
me. There is little danger that the system won't boot any longer - the
old kernel stays there. Note (you did, this is for the benefit of
"some people on this list" only) that I merely asked if it was
feasible in one case out of Shachar's two: the one that does not
involve an enterprize-class server.

Glibc is trickier, as I mentioned in a followup to myself. Don't try
that at work...

-- 
Oleg Goldshmidt | [EMAIL PROTECTED]

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: Rss in ps/top

2003-12-16 Thread Oleg Goldshmidt
"moses" <[EMAIL PROTECTED]> writes:

> Hi all
> 
> The man page doesn't *really* say what it's .Does anyone know what is the exact
> meaning of this field - it's hard to belive that rss is the the number if current
> memory resident in 1024 bytes. I run several examples that show it
> the man page for rss
> 
> --
>  rss the real memory (resident set) size of the process (in 1024 byte
>  units).

OK, here is *really* what it is ;-)

RSS (resident set size) is the amount of memory mapped in RAM, per
process. There may be unmapped pages, but that is often the first
stage of swapping the page away or discarding it altogether, so this
is not as bad as it sounds.

Neither SIZE nor RSS fields count the page tables or the task_struct
of the process: those occupy at least 12K of memory that is always 
resident. SIZE is the virtual size of the process (code+data+stack).

If you are really interested, go to your resident (pun intended)
kernel source tree. The header include/linux/sched.h defines
task_struct and mm_struct that contain the relevant per-process
info. Look at struct task-struct, it contains

struct mm_struct *mm;

and that, in turn, contains

unsigned long rss, total_vm, locked_vm;

Now look at the /proc interface to the per-process memory usage:
/proc//status. Here is my bash:

$ ps
  PID TTY  TIME CMD
 2678 pts/300:00:00 bash
 2689 pts/300:00:00 ps
$ egrep "^Vm" /proc/2678/status
VmSize: 2580 kB
VmLck: 0 kB
VmRSS:  1400 kB
VmData:  276 kB
VmStk:24 kB
VmExe:   508 kB
VmLib:  1444 kB

This is more detailed than ps or top. VmData is the heap. VmStk is the
stack. VmExe is the statically linked stuff. VmLib is shared
libraries.

All this comes from a function called task_mem() from fs/proc/array.c.
Vm{Size,Lck,RSS} come directly from task_struct->mm as explained
above. Vm{Data,Stk,Exe,Lib} are obtained by traversing the process
vmas that have all the details as flags.

Hope it helps,

-- 
Oleg Goldshmidt | [EMAIL PROTECTED]

To unsubscribe, send 
mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: Various performance problems

2003-12-16 Thread linux-il
guy keren wrote:

did you _read_ the mentioned post(s)? they give you a direction regarding
what to try doing.
try running the problematic program using:

LD_ASSUME_KERNEL=2.4.1  

read the posts for the exact command - i might be typing it wrong here,
and i have no RH9 to test it on.
I think the main part was LD_LIBRARY_PATH=., where "." presumably
contains the latest compiled CVS of libc.
Anyway, it was bleeding-edge developer discussion, not something I'd try
with libc on any system unless it was a system I didn't care to reformat
and re-install afterwords.
--Amos



=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]


Re: Rss in ps/top

2003-12-16 Thread Orna Agmon
On Tue, 16 Dec 2003, moses wrote:

> Hi all
>
> The man page doesn't *really* say what it's .Does anyone know what is the
> exact meaning of this field - it's hard to belive that rss is the the number
> if current memory resident in 1024 bytes. I run several examples that show
> it
>
> the man page for rss
>

from http://nscp.upenn.edu/aix4.3html/aixbman/prftungd/memoryuse.htm ,
which is for AIX, but I guess it might be the same for Linux:

RSS  Real-memory (resident set) size in kilobytes of the process. This
number is equal to the sum of the number of working-segment and
code-segment pages in memory times 4. Remember that code-segment pages are
shared among all of the currently running instances of the program. If 26
ksh processes are running, only one copy of any given page of the ksh
executable would be in memory, but ps would report that code-segment size
as part of the RSS of each instance of ksh.

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: Various performance problems

2003-12-16 Thread guy keren

On Tue, 16 Dec 2003, Aaron wrote:

> I in fact noticed in RH 9.0 hspell and aspell were locking up my system.
> I was running a lowlatency kernel but found that jack and ardour were
> slow.
>
> I am now running Fedora, in kde and gnome window minimize slowly and
> maximize slowly. Programs lockup and apt-get takes over to the point
> where my mouse pointer dissapears for a time.
>
> I am wondering if this is just a RH issue or Mandrake and friends also
> have this problem??

did you _read_ the mentioned post(s)? they give you a direction regarding
what to try doing.

try running the problematic program using:

LD_ASSUME_KERNEL=2.4.1  

read the posts for the exact command - i might be typing it wrong here,
and i have no RH9 to test it on.

-- 
guy

"For world domination - press 1,
 or dial 0, and please hold, for the creator." -- nob o. dy


=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: Various performance problems

2003-12-16 Thread guy keren

On 16 Dec 2003, Oleg Goldshmidt wrote:

> Oleg Goldshmidt <[EMAIL PROTECTED]> writes:
>
> > http://kerneltrap.org/comment/reply/1574
> >
> > Note that Ulrich Drepper says there that Fedora Core 1 and RHEL3
> > should not have the problem. Shachar says that RHAS3 is slow -
> > question is, whether or not that is the same kernel as RHEL3 uses, and
> > which version Ulrich actually meant (he raises the point of kernel
> > version numbers, then provides benchmarks without any indication of
> > versions...).
> >
> > So in the 7.2 vs 9 case, can the client grab the kernel RPM from
> > Fedora Core 1, rpm -ivh it reboot, and compare again?
>
> Eh, it might be more involved. Look at the last posting from Jakub
> Jelinek in the URL above: "Ulrich meant glibc CVS HEAD."
>
> Makes sense: NPTL is split between the kernel and glibc. Jakub is,
> IIRC, the glibc maintainer at Red Hat. The posting is from Nov 5, the
> latest glibc erratum is from Nov 13,
>
> https://rhn.redhat.com/errata/RHSA-2003-325.html
>
> It is not clear from the description if this includes the locking
> patch. I don't know how dangerous it is to upgrade glibc on RH9 to
> Fedora's version. I would not do it on a mission-critical machine.

and i would not do it on _any_ system - unless i am realy bored, and want
to see "what if" at work ;)

it's fix-able - but what will the user gain from this excersize?

-- 
guy

"For world domination - press 1,
 or dial 0, and please hold, for the creator." -- nob o. dy


=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: Various performance problems

2003-12-16 Thread guy keren

On 16 Dec 2003, Oleg Goldshmidt wrote:

> guy keren <[EMAIL PROTECTED]> writes:
>
> > people have such short memories:
> >
> > http://www.mail-archive.com/[EMAIL PROTECTED]/msg30749.html
>
> From memory (thanks for reminding, Guy), someone (Mulix?) found this
> (I just found it on my own, but it does ring a bell)
>
> http://kerneltrap.org/comment/reply/1574
>
> Note that Ulrich Drepper says there that Fedora Core 1 and RHEL3
> should not have the problem.

that's not what he was writing. he said that the benchmark should be
perfrmed on one of those systems. he didn't say these systems contained
the NPTL code from CVS head. get yourself one of those systems, and test.

> Shachar says that RHAS3 is slow -
> question is, whether or not that is the same kernel as RHEL3 uses, and
> which version Ulrich actually meant (he raises the point of kernel
> version numbers, then provides benchmarks without any indication of
> versions...).
>
> So in the 7.2 vs 9 case, can the client grab the kernel RPM from
> Fedora Core 1, rpm -ivh it reboot, and compare again?

it's not a kernel issue - it's a libraries issue. do read that post again,
to see the light ;)

and please DON'T suggest that people take binaries frm one distro and
install on another - some people on this list will not notice your
question mark, thinkthis is the way to go, and find their systems unable
to boot any longer. people tend to read what they want see :0

-- 
guy

"For world domination - press 1,
 or dial 0, and please hold, for the creator." -- nob o. dy


=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: ADSL Monitoring Crontab

2003-12-16 Thread linux-il
Shaul Karl wrote:
> I am not using pptp. My point is that with pppoe, persist + maxfail 0
> parameters to pppd were suggested here in the past. Works well for me.
I am the one who suggested it, and it seems to work very well for
me too.
But recently (over the last week) I noticed twice that my ADSL link
was flaky at best, and "poff"/"pon" (it's a Debian) solved the problem.
It might be related to my switch to 2.6test11 (which I did about a month
ago, when test9 or so came out), as it ("persist + maxfail 0") worked
for me for months with 2.4.2x before that, or maybe it's just that
Actcom are having a bad week?
So I'm following those primitive ping-based monitores to enhance
the reliability of my link too.
Is anyone aware of issues with ADSL on 2.6test?

Cheers,

--Amos

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]


Problems with multiplay IP's machine

2003-12-16 Thread Elad Almadoi




Hey!
I have an IBM xSeries 335 runing redhat 
7.3
Till few a days ago all was runing as it cant get 
better
Looks like from it self, a problem 
started:
The machine have many IP's, the main one is 
configured as eth0 and the others as eth0:0 eth0:1 eth0:2, etc...
All the eth0:* won't reply to ping, the main one 
does reply
All the IRC servers runing (even on main IP) after 
few hours disconnecting the sockets, with the reason "Connection reset by 
peer"
Nothing for the pings when I try to lookup on 
tcpdump, like they are not getting to the machine
BUT process can listen to that IP's and it's 
posiblle to connect them from the internet
No firewall installed\runing
Anyone got any idea?
Thanks!


Re: ADSL Monitoring Crontab

2003-12-16 Thread Shaul Karl
On Tue, Dec 16, 2003 at 11:43:53AM +0200, Noam Rathaus wrote:
> I have implemented the following Crontab record to monitor my ADSL, and bring it up 
> when it comes done:
> 
> Does anyone have a better solution?
> 


  I am not using pptp. My point is that with pppoe, persist + maxfail 0
parameters to pppd were suggested here in the past. Works well for me. 
pptp is on top, or a replacement for pppd, doesn't it? Won't those 
parameters work for pptp as well? 
  
-- 
"If you have an apple and I have  an apple and we  exchange apples then
you and I will still each have  one apple. But  if you have an idea and I
have an idea and we exchange these ideas, then each of us will have two
ideas." -- George Bernard Shaw (sent by  shaulk @ actcom . net . il)

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: Various performance problems

2003-12-16 Thread Erez Kirson
Perhaps you can try

http://www.linuxtested.com/linux_tools.html

-EK


- Original Message - 
From: "Oleg Goldshmidt" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, December 16, 2003 1:26 PM
Subject: Re: Various performance problems


> Oleg Goldshmidt <[EMAIL PROTECTED]> writes:
> 
> > http://kerneltrap.org/comment/reply/1574
> > 
> > Note that Ulrich Drepper says there that Fedora Core 1 and RHEL3
> > should not have the problem. Shachar says that RHAS3 is slow -
> > question is, whether or not that is the same kernel as RHEL3 uses, and
> > which version Ulrich actually meant (he raises the point of kernel
> > version numbers, then provides benchmarks without any indication of
> > versions...).
> > 
> > So in the 7.2 vs 9 case, can the client grab the kernel RPM from
> > Fedora Core 1, rpm -ivh it reboot, and compare again?
> 
> Eh, it might be more involved. Look at the last posting from Jakub
> Jelinek in the URL above: "Ulrich meant glibc CVS HEAD."
> 
> Makes sense: NPTL is split between the kernel and glibc. Jakub is,
> IIRC, the glibc maintainer at Red Hat. The posting is from Nov 5, the
> latest glibc erratum is from Nov 13, 
> 
> https://rhn.redhat.com/errata/RHSA-2003-325.html
> 
> It is not clear from the description if this includes the locking
> patch. I don't know how dangerous it is to upgrade glibc on RH9 to
> Fedora's version. I would not do it on a mission-critical machine.
> 
> -- 
> Oleg Goldshmidt | [EMAIL PROTECTED]
> 
> =
> To unsubscribe, send mail to [EMAIL PROTECTED] with
> the word "unsubscribe" in the message body, e.g., run the command
> echo unsubscribe | mail [EMAIL PROTECTED]
> 

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: Various performance problems

2003-12-16 Thread Oleg Goldshmidt
Oleg Goldshmidt <[EMAIL PROTECTED]> writes:

> http://kerneltrap.org/comment/reply/1574
> 
> Note that Ulrich Drepper says there that Fedora Core 1 and RHEL3
> should not have the problem. Shachar says that RHAS3 is slow -
> question is, whether or not that is the same kernel as RHEL3 uses, and
> which version Ulrich actually meant (he raises the point of kernel
> version numbers, then provides benchmarks without any indication of
> versions...).
> 
> So in the 7.2 vs 9 case, can the client grab the kernel RPM from
> Fedora Core 1, rpm -ivh it reboot, and compare again?

Eh, it might be more involved. Look at the last posting from Jakub
Jelinek in the URL above: "Ulrich meant glibc CVS HEAD."

Makes sense: NPTL is split between the kernel and glibc. Jakub is,
IIRC, the glibc maintainer at Red Hat. The posting is from Nov 5, the
latest glibc erratum is from Nov 13, 

https://rhn.redhat.com/errata/RHSA-2003-325.html

It is not clear from the description if this includes the locking
patch. I don't know how dangerous it is to upgrade glibc on RH9 to
Fedora's version. I would not do it on a mission-critical machine.

-- 
Oleg Goldshmidt | [EMAIL PROTECTED]

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: Various performance problems

2003-12-16 Thread Oleg Goldshmidt
guy keren <[EMAIL PROTECTED]> writes:

> people have such short memories:
> 
> http://www.mail-archive.com/[EMAIL PROTECTED]/msg30749.html

>From memory (thanks for reminding, Guy), someone (Mulix?) found this
(I just found it on my own, but it does ring a bell)

http://kerneltrap.org/comment/reply/1574

Note that Ulrich Drepper says there that Fedora Core 1 and RHEL3
should not have the problem. Shachar says that RHAS3 is slow -
question is, whether or not that is the same kernel as RHEL3 uses, and
which version Ulrich actually meant (he raises the point of kernel
version numbers, then provides benchmarks without any indication of
versions...).

So in the 7.2 vs 9 case, can the client grab the kernel RPM from
Fedora Core 1, rpm -ivh it reboot, and compare again?

-- 
Oleg Goldshmidt | [EMAIL PROTECTED]

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: ADSL Monitoring Crontab

2003-12-16 Thread Muli Ben-Yehuda
On Tue, Dec 16, 2003 at 11:43:53AM +0200, Noam Rathaus wrote:

> Does anyone have a better solution?

reasonable distros provide a directory of scripts or at least a script
that gets called whenever a ppp connection goes up or
down. /etc/ppp/ip-{up|down} and friends. See for example
http://www.hageltech.com/download/adsl-connect-0.1.tar.gz. 

Cheers, 
Muli 
-- 
Muli Ben-Yehuda
http://www.mulix.org | http://mulix.livejournal.com/

"the nucleus of linux oscillates my world" - [EMAIL PROTECTED]



signature.asc
Description: Digital signature


Re: ADSL Monitoring Crontab

2003-12-16 Thread Eli Billauer
Hello,

I'm taking another approach: I have a process running, which makes sure 
the connection is up every minute. The advantage is that if I don't want 
ADSL connection for a while, I can kill a process, not crond.

This script has terrible bash syntax, but it has proven to work well for 
over a couple of years, including those days when the connection went 
down a few times a day. Only my username has been changed.

  Eli

#!/bin/bash
while true; do {
/usr/sbin/pptp 10.0.0.138 user "[EMAIL PROTECTED]" remotename 
"10.0.0.138 RELAY_PPP1" defaultroute netmask 255.0.0.0 mtu 1452 mru 1452 
noauth lcp-echo-interval 60 lcp-echo-failure 3 nobsdcomp usepeerdns
sleep 60; # One minute is enough to connect...
myPID=`ls /var/run/ppp?.pid`; # Check up
if [ $myPID ]; then {
while [ -f $myPID ]; do { sleep 60; } done;
}
fi;
killall -w pptp
rm -f /var/run/pptp/10.0.0.138
}
done;

Noam Rathaus wrote:

Hi,

I have implemented the following Crontab record to monitor my ADSL, and bring it up 
when it comes done:
if ! ping -c 1 -n 192.114.47.250 > /dev/null ; then killall -KILL pptp ; logger ADSL 
connection stopped ; /usr/sbin/adsl-up ; logger ADSL connection started; fi
It doesn't work well :(, I get a lot of "/bin/sh ping..." entries in the process list, consuming a lot of memory.

Does anyone have a better solution?

Thanks
Noam Rathaus
CTO
Beyond Security Ltd.
http://www.securiteam.com 

To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]
 



--
Web: http://www.billauer.co.il


=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]


Re: ADSL Monitoring Crontab

2003-12-16 Thread Oleg Kobets
Well, here is a little script I use for adsl monitoring.

#!/bin/bash

ping -c2 192.115.133.185

if [ "$?" != "0" ]; then
poff -a
killall pppd
killall pptp
rm -rf /var/run/pptp
rm -rf /var/lock/LCK..pts_0
sleep 5
/usr/sbin/pptp 10.0.0.138 --quirks BEZEQ_ISRAEL user [EMAIL PROTECTED]
persist defaultroute noauth
fi

I execute it via crontab every 15 min and it works without problems. Try it
if you want.

Oleg.

- Original Message - 
From: "Noam Rathaus" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, December 16, 2003 11:43 AM
Subject: ADSL Monitoring Crontab


Hi,

I have implemented the following Crontab record to monitor my ADSL, and
bring it up when it comes done:
if ! ping -c 1 -n 192.114.47.250 > /dev/null ; then killall -KILL pptp ;
logger ADSL connection stopped ; /usr/sbin/adsl-up ; logger ADSL connection
started; fi

It doesn't work well :(, I get a lot of "/bin/sh ping..." entries in the
process list, consuming a lot of memory.

Does anyone have a better solution?

Thanks
Noam Rathaus
CTO
Beyond Security Ltd.
http://www.securiteam.com


==
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]





=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Rss in ps/top

2003-12-16 Thread moses
Title: הודעה



Hi all
The man page doesn't *really* say 
what it's .Does anyone know what is the exact 
meaning of this field - it's hard to belive that rss is the the number if 
current memory resident in 1024 bytes. I run several examples that show 
itthe man 
page for rss 
--  rss the real memory 
(resident set) size of the process (in 1024 
byte 
units).-- sample ps output 
gives:USER   PID %CPU %MEM   
VSZ  RSS TT  STAT STARTED   TIME 
COMMANDmrg   3174  0.0  
0.0   680 3812 p7  Is   Sat03PM    
0:01.69 -bin/tcshmrg   3175  
0.0  0.0   716 17244 p8  Is   
Sat03PM    0:09.47 -bin/tcsh


ADSL Monitoring Crontab

2003-12-16 Thread Noam Rathaus
Hi,

I have implemented the following Crontab record to monitor my ADSL, and bring it up 
when it comes done:
if ! ping -c 1 -n 192.114.47.250 > /dev/null ; then killall -KILL pptp ; logger ADSL 
connection stopped ; /usr/sbin/adsl-up ; logger ADSL connection started; fi

It doesn't work well :(, I get a lot of "/bin/sh ping..." entries in the process list, 
consuming a lot of memory.

Does anyone have a better solution?

Thanks
Noam Rathaus
CTO
Beyond Security Ltd.
http://www.securiteam.com 


To unsubscribe, send 
mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: Various performance problems

2003-12-16 Thread Nadav Har'El
On Tue, Dec 16, 2003, Alon Weinstein wrote about "Re: Various performance problems":
> >http://www.mail-archive.com/[EMAIL PROTECTED]/msg30749.html
> >
> >(summary - nadav harel, checks why hspell on redhat 9 runs several times
> >slower then on redhat 7.something, and finds that changing the
> >LD_LIBRARY_PATH to use the non-tls libraries solves the problem).
> >
> 
> That's a very interesting thread I'm wondering -- would I gain a 
> performance boost by making my RH9 always use /lib/i686 instead of /lib/tls?

I am not sure. Some programs I measured did not exhibit any speedup by
using /lib/i686. Apparently (but this is just a guess because I unfortunately
did not have the time to follow this up) there is a specific library call
or several specific library calls that are extraordinary slow in the tls
library, and this slows down programs that use them, but doesn't affect
programs which only use these functions rarely.

Also, I'm guessing that TLS (thread local storage, NOT transport layer
security) is not utter garbage, and is used for *something* - maybe it
actually speeds up, not slows down, certain types of programs - presumably
programs which use threads in some manner (don't ask me how or why...).

> And another question, for the uninitiated (that's me) -- when I try to 
> output $LD_LIBRARY_PATH I get nothing. How can I find out what are the 
> default libraries used by the system?

Check out /etc/ld.so.conf. Unfortunately, this doesn't tell the whole story,
because the tls, i686, i386 variant directory don't appear them. That sort
of black-magic (choosing the correct variant) is done somehow by the dynamic
linker, in a manner I never fully understood (and never saw documented).


-- 
Nadav Har'El| Tuesday, Dec 16 2003, 21 Kislev 5764
[EMAIL PROTECTED] |-
Phone: +972-53-790466, ICQ 13349191 |echo '[q]sa[ln0=aln256%Pln256/snlbx]
http://nadav.harel.org.il   |sb3135071790101768542287578439snlbxq'|dc

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: Various performance problems

2003-12-16 Thread Alon Weinstein
Muli Ben-Yehuda wrote:
On Tue, Dec 16, 2003 at 09:21:27AM +0200, Alon Weinstein wrote:

cat /etc/ld.so.conf, assuming it hasn't been changed since the last
time someone ran ldconfig. 


Looking at /etc/ld.so.conf:
/usr/kerberos/lib
/usr/X11R6/lib
/usr/lib/qt-3.1/lib
/opt/opengroupware.org/Libraries/ix86/linux-gnu/gnu-fd-nil
/opt/skyrix/system/Libraries/ix86/linux-gnu/gnu-fd-nil
/usr/lib/sane
/usr/lib/mysql
No tls or i686... greping for either 'tls' or 'i686' in etc/sysconfig or 
etc/rc.d (I'm just reaching here, not really sure where or if I should 
be looking) got me nothing.

And my questions are (drum roll) :

How can I tell which is the default library used? (or is it fixed that 
RH9 uses tls?)

How can I change that default? (perhaps using an ugly hack -- ln -s 
/lib/i686 /lib/tls ? ;) )

Alon.

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]


Re: Various performance problems

2003-12-16 Thread Yedidyah Bar-David
On Tue, Dec 16, 2003 at 09:21:27AM +0200, Alon Weinstein wrote:
[snip]
> And another question, for the uninitiated (that's me) -- when I try to 
> output $LD_LIBRARY_PATH I get nothing. How can I find out what are the 
> default libraries used by the system?

RTFM - man ld.so .
Basically /etc/ld.so.conf, but somethings (ld.so, libc? I don't know)
have other means. E.g. /lib/tls is used but not mentioned either in
the file of in the manpage. So I would like more informed people to
add (or I will search myself eventually).
-- 
Didi

> 
> 
> Alon.
> 
> =
> To unsubscribe, send mail to [EMAIL PROTECTED] with
> the word "unsubscribe" in the message body, e.g., run the command
> echo unsubscribe | mail [EMAIL PROTECTED]

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: Various performance problems

2003-12-16 Thread Muli Ben-Yehuda
On Tue, Dec 16, 2003 at 09:21:27AM +0200, Alon Weinstein wrote:

> That's a very interesting thread I'm wondering -- would I gain a 
> performance boost by making my RH9 always use /lib/i686 instead of
> /lib/tls?

Possibly, due to a bug in RH 9's NPTL implementation, IIRC. 

> And another question, for the uninitiated (that's me) -- when I try to 
> output $LD_LIBRARY_PATH I get nothing. How can I find out what are the 
> default libraries used by the system?

cat /etc/ld.so.conf, assuming it hasn't been changed since the last
time someone ran ldconfig. 

Cheers, 
Muli 
-- 
Muli Ben-Yehuda
http://www.mulix.org | http://mulix.livejournal.com/

"the nucleus of linux oscillates my world" - [EMAIL PROTECTED]



signature.asc
Description: Digital signature


Re: Various performance problems

2003-12-16 Thread Oleg Goldshmidt
Alon Weinstein <[EMAIL PROTECTED]> writes:

> And another question, for the uninitiated (that's me) -- when I try to
> output $LD_LIBRARY_PATH I get nothing. How can I find out what are the
> default libraries used by the system?

cat /etc/ld.so.conf

See also

man 8 ldconfig
man 8 ld.so

-- 
Oleg Goldshmidt | [EMAIL PROTECTED]

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: ADSL, 012, ECI etc

2003-12-16 Thread Leonid Podolny
Shaul Karl wrote:

 Aren't pon* and plog debian specific? Did I miss the original poster
mentioning of the distribution he is using or did he in fact haven't 
mentioned it? In any case, the distribution one is using is yet one more
item that is worth mentioning.

 

The distribution is gentoo. They "dial" and disconnect using the 
adsl-start and adsl-stop scripts, as provided with rp-pppoe, and there 
is /etc/init.d/rppoe script which wraps those two.
I will be able to post more data when I'll be at home, and I'm afraid it 
will happen not sooner than tomorrow evening.
   Thanks, L.

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]


Re: Various performance problems

2003-12-16 Thread Alon Weinstein
guy keren wrote:
On Mon, 15 Dec 2003, Shachar Shemesh wrote:


I have a (couple of) client(s) that have performance problems across
linux distirbutions. That is - they try an operation on a given platform
with a given (redhat both cases) distribution, and get a certain
performance. Then they try the same operation on the same hardware with
a newer distribution, and get considerably lower performance.
In one case, the fast distro is RedHat 7.2, and the slow one is 9. In
another I'm not sure what the fast one is, but the slow on is AS 3. I
suspect that RedHat screwed something up with their newer kernels
(perhaps something incorrectly backported from 2.6?).


people have such short memories:

http://www.mail-archive.com/[EMAIL PROTECTED]/msg30749.html

(summary - nadav harel, checks why hspell on redhat 9 runs several times
slower then on redhat 7.something, and finds that changing the
LD_LIBRARY_PATH to use the non-tls libraries solves the problem).
That's a very interesting thread I'm wondering -- would I gain a 
performance boost by making my RH9 always use /lib/i686 instead of /lib/tls?

And another question, for the uninitiated (that's me) -- when I try to 
output $LD_LIBRARY_PATH I get nothing. How can I find out what are the 
default libraries used by the system?

Alon.

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]