Re: eps to jpg conversion - which program?

2008-11-09 Thread Polytropon
On Sat, 8 Nov 2008 23:36:32 -0800, Jeremy Chadwick [EMAIL PROTECTED] wrote:
 Also, what guarantee do you have that all the filenames that match that
 wildcard lack spaces in them?  Your [ and convert commands will botch
 badly in that case.  See below.

This is completely correct. If files are present as foo.EPS,
the Windows style of file naming, or foo.Eps in a mixed form,
the *.eps wouldn't catch it.

As you mentioned, it's good to assume the worst case. Not only
spaces, as well special characters. Now *that's* the real fun. :-)

[EMAIL PROTECTED] sent me | Copy [5] of C:\My Files\AV with ö and ß.Eps

Another mentionable comment would be: Why do you call the variable
just $f? Give it a better descriptive name. In this small example,
it won't lead into significant problems if you don't do it, but I've
seen shellscripts using $f, $f1, $f2, $g, $h, $y all over the file,
and it was hard to find out which values they should hold.



 style-rant
 What people often forget while writing sh scripts is that spawning
 external utilities slows down the script greatly, and destroys system
 resources.  You might think My machine has 923484390GB of RAM, and has
 6500 processors; why do I care? -- step back for a moment and think
 about older/smaller boxes, or even more importantly, embedded machines
 (very little memory, very little CPU).

Hey, that's how software development helps hardware development,
or at least software development in Redmond. :-)

  Hardware ressources   ++
Overall usage speed =  = const.
  Software requirements ++

q.e.d.


 Also think about situations where fork() will fail due to resource
 limits or existing system resource exhaustion; what then?  I see this
 regularly in perl scripts; people relying on `xxx` for no good reason.
 I ask them, Why are you doing this?  Can you not use native-perl-code
 instead, and avoid wasting resources and excessive risk?, and they
 often have no idea what I'm talking about.  And whenever I see `ssh
 [EMAIL PROTECTED] command` in perl scripts, I cry.

Ooow! Is this for real? If it is, it's a reason to hit someone's
head with the keyboard. :-)



 That in mind, don't let your scripting mimic that of perl bastards who
 *intentionally* write obfuscated code just to show off (often citing
 its faster as the reason, choosing to intentionally ignore that perl
 is a compiled language).  For complex pieces of sh that are hard to
 visually parse: try to keep it simple, and take the time to write
 decent/legible comments above the hairy part of the script.

Indentation, comments and descriptive identifiers help a lot.
If you read FreeBSD's (scripting) sources, you'll see that they
are of high quality.



 Also remember that double-quoting filenames or variables that are used
 as filenames is a VERY good idea.  Filenames with spaces are quite
 common these days.  It's best to assume the worst, but not be *too*
 over-zealous.

Especially when you're intending to use a piece of software,
even if it's just a three line shell script, more than just one
time, or if you want to share it with others.




-- 
Polytropon
From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: host -6 failure

2008-11-09 Thread mdh
--- On Sat, 11/8/08, David Horn [EMAIL PROTECTED] wrote:
 From: David Horn [EMAIL PROTECTED]
 Subject: Re: host -6 failure
 To: [EMAIL PROTECTED]
 Cc: freebsd-questions@freebsd.org
 Date: Saturday, November 8, 2008, 8:10 PM
 On Sat, Nov 8, 2008 at 7:55 PM, mdh
 [EMAIL PROTECTED] wrote:
  --- On Sat, 11/8/08, David Horn
 [EMAIL PROTECTED] wrote:
  From: David Horn [EMAIL PROTECTED]
  Subject: Re: host -6 failure
  To: [EMAIL PROTECTED]
  Cc: freebsd-questions@freebsd.org
  Date: Saturday, November 8, 2008, 7:25 PM
  On Fri, Nov 7, 2008 at 2:18 PM, mdh
  [EMAIL PROTECTED] wrote:
   Howdy folks,
   I'm having a little trouble understanding
 a
  problem that the `host` command in RELENG_7_0
 (very recent)
  is having.  
  The '-6' on the command line for host(1)
 forces an
  IPv6 only
  connection to your nameserver, not necessarily a
   query for the
  hostname in question.  In this case, your
 nameservers
  listed in the
  warnings are IPv4 nameservers that host(1) is
 attempting to
  connect to
  using an ipv4 mapped ipv6 address (which by
 default is
  disabled in the
  kernel) In other words, don't use host -6 for
 this
  scenario.
 
  Yet as I pointed out, the second nameserver in my
 resolv.conf is ::1 - so shouldn't it work with that? 
 It's clearly trying to contact the first and third
 nameservers listed.  If the behavior I'm experiencing is
 the proper behavior, then let me pose this question: when
 would anyone conceivably want to use the -6 option, and why
 does it exist?  My intent was to force a query to hit the
 nameserver on ::1 rather than 127.0.0.1.
  
   domain  mydomain
   search  mydomain
   nameserver  127.0.0.1
   nameserver  ::1
   nameserver  IP.IP.IP.8
  
   The DNS server running on localhost is
 authoritative
  for mydomain.  I can ping it via localhost using
 both v4 and
  v6, and I can also ping the external v4 and v6
 addresses
  just fine remotely.
  
   As I said, I'm new to IPv6, but this
 behavior
  seems to be counterintuitive.  Am I just doing it
 wrong?
  
 
  For diagnosing your own nameservers, you are
 better off
  using the
  dig(1) utility.
 
  Example:
 
   dig ipv6.google.com  @::1
 
  This causes a dns query for an IPv6 address (aka
   query) for the
  hostname of ipv6.google.com using the
  nameserver on the IPv6
  localhost loopback address (::1), and will give a
 very nice
  verbose
  output.  man dig for more details.
 
  That is more useful, but still doesn't stifle my
 desire to stomp a potential bug in the base system.
 
 Right after sending, I realized that I did not tell you all
 of the answer
 
 host(1) will successfully query ::1 when named is setup to
 listen on
 ::1 in named.conf, and ::1 is listed in /etc/resolv.conf (I
 just ran a
 test on my box to be sure that it works this way with the
 -6 switch)
 
 Example line from /etc/namedb/named.conf:
 
 listen-on-v6{ ::1; any; };
 
 And of course you need to restart named after the config
 change(
 /etc/rc.d/named restart)
 
 To make sure that it is listening on the IPv6 loopback
 address:
 
 netstat -anW -f inet6
 
 I do not remember the minimum version of bind (aka named)
 required for
 IPv6 off the top of my head, but I am running 9.4.2-P2 on
 my IPv6
 machine.

All of the conditions for success are true, however it fails.  My DNS server 
software is responsing on ::1 port 53 (tcp and udp), and ::1 is the second 
nameserver listed in resolv.conf.  Still, host -6 fails as previously stated... 
 According to what you've said so far, this leads me to believe that it ought 
to work as expected, and not error out in the way I'm seeing.  

Am I missing something here?  Is my lack of general IPv6 knowledge causing me 
to blindly assume something incorrectly?  

Thanks, Matt



  
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: UFS2 limits

2008-11-09 Thread Ian
On Sun, 9 Nov 2008 13:10:46 Jeremy Chadwick wrote:
 On Sun, Nov 09, 2008 at 01:40:51AM +, [EMAIL PROTECTED] wrote:
  Hi,
  I have a FreeBSD server that has about 10,500 subdirectories within a
  single directory.
  This number will keep rising and I assume UFS2 has a limit to the number
  of sub-directories in a single directory - can anyone tell me what it is?

 As far as I know, there is no such limit on the number of files/dirs
 inside of a directory.

 I don't want to change the topic of discussion, but I *highly* recommend
 you ***stop*** whatever it is you're doing that is creating such a
 directory structure.  Software which has to iterate through that
 directory using opendir() and readdir() will get slower and slower as
 time goes on.

 If this is something you've written or have control over or can work
 with engineers in regards to, I recommend you change your directory
 naming scheme to have separate subdirectories with the first 2 or 3
 letters of the directory you wish to create.  E.g.:

 /some/place/00/00ilikezeros/*
 /some/place/01/01binaryheaven/*
 /some/place/aa/aardvarks/*
 /some/place/ab/abuse/*
 /some/place/ac/actuary/*
 ...
 /some/place/xy/xylophones/*

 You get the point.

 Traversing this structure is much more efficient, and requires very
 little code change on your part.  Those who run nameservers that host
 many zones, for example, use this structure to ensure the daemon doesn't
 take 32498231 years to start up.

  What about ZFS?
 
  At some point I'll have to re-arrange things so that I have a deeper
  directory structure, just wondering when I'll hit the limit so I can plan
  in advance :-)

 What baffles me is why you're looking at this problem from a  how can
 the filesystem solve this engineering mistake I made for me standpoint,
 rather than how can I solve this engineering mistake I made so that it
 doesn't impact the filesystem.  Very strange.  Sometimes looking at
 things in a different light makes all the difference.

 Hope this helps.

 P.S. -- I hope this mail makes it to you, because your From line is
 [EMAIL PROTECTED] (I'll be surprised if your account name really is
 that!).


Thanks for that Jeremy. I didn't invent this structure, but I daresay I can 
either modify it or get the original writer to do that. I never really gave 
it a thought before now - it was the system I was given to work with and it's 
worked fine so far, except when I try to list the contents of the directory - 
that takes ages!
All the folders are 7 digit numbers and we are up to approx. 0010500 entries 
(ie subdirs) so far. 
I guess it will just be a matter of experimenting to find the optimum number 
of sub-sub-directories per sub-directory :-/

Oh, and yes, that email address does work - I use it for mailing lists and 
other stuff where I'm likely to get spammed - it's ironic really :-)

Cheers,
-- 
Ian
gpg key: http://home.swiftdsl.com.au/~imoore/no-spam.asc


signature.asc
Description: This is a digitally signed message part.


Re: UFS2 limits

2008-11-09 Thread H.fazaeli

   The number of files and sub-directories is limited by the number
   of available inodes which is fixed at the time you create the
   file system (by -i argument to newfs(8)). Anyway, stick with
   Jeremy's advise if you do not like trouble.
   Jeremy Chadwick wrote:

On Sun, Nov 09, 2008 at 01:40:51AM +, [EMAIL PROTECTED] wrote:


Hi,
I have a FreeBSD server that has about 10,500 subdirectories within a single
directory.
This number will keep rising and I assume UFS2 has a limit to the number of
sub-directories in a single directory - can anyone tell me what it is?


As far as I know, there is no such limit on the number of files/dirs
inside of a directory.

I don't want to change the topic of discussion, but I *highly* recommend
you ***stop*** whatever it is you're doing that is creating such a
directory structure.  Software which has to iterate through that
directory using opendir() and readdir() will get slower and slower as
time goes on.

If this is something you've written or have control over or can work
with engineers in regards to, I recommend you change your directory
naming scheme to have separate subdirectories with the first 2 or 3
letters of the directory you wish to create.  E.g.:

/some/place/00/00ilikezeros/*
/some/place/01/01binaryheaven/*
/some/place/aa/aardvarks/*
/some/place/ab/abuse/*
/some/place/ac/actuary/*
...
/some/place/xy/xylophones/*

You get the point.

Traversing this structure is much more efficient, and requires very
little code change on your part.  Those who run nameservers that host
many zones, for example, use this structure to ensure the daemon doesn't
take 32498231 years to start up.



What about ZFS?

At some point I'll have to re-arrange things so that I have a deeper directory
structure, just wondering when I'll hit the limit so I can plan in advance :-)


What baffles me is why you're looking at this problem from a  how can
the filesystem solve this engineering mistake I made for me standpoint,
rather than how can I solve this engineering mistake I made so that it
doesn't impact the filesystem.  Very strange.  Sometimes looking at
things in a different light makes all the difference.

Hope this helps.

P.S. -- I hope this mail makes it to you, because your From line is
[EMAIL PROTECTED] (I'll be surprised if your account name really is
that!).



--


Best regards.

Hooman Fazaeli [3][EMAIL PROTECTED]
Sepehr S. T. Co. Ltd.

Web: [4]http://www.sepehrs.com
Tel: (9821)88975701-2
Fax: (9821)88983352

References

   1. mailto:[EMAIL PROTECTED]
   2. mailto:[EMAIL PROTECTED]
   3. mailto:[EMAIL PROTECTED]
   4. http://www.sepehrs.com/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: UFS2 limits

2008-11-09 Thread Erik Trulsson
On Sat, Nov 08, 2008 at 06:40:46PM -0800, Jeremy Chadwick wrote:
 On Sun, Nov 09, 2008 at 01:40:51AM +, [EMAIL PROTECTED] wrote:
  Hi,
  I have a FreeBSD server that has about 10,500 subdirectories within a single
  directory.
  This number will keep rising and I assume UFS2 has a limit to the number of
  sub-directories in a single directory - can anyone tell me what it is?
 
 As far as I know, there is no such limit on the number of files/dirs
 inside of a directory.

Actually there is.  Each i-node on the disk contains a field telling how
many hard-links point to that inode. This field is a (signed) 16-bit value,
meaning the maximum number of hardlinks allowed is 32767.
Each subdirectory created contains a hardlink ('..') to its parent, thus
limiting the number of subdirectories to a single directory to less than 32767.

Note that this does not limit the number of files you can have in a single
directory, since normal files do not contain hardlinks to the parent
directory, but there are of course limits to the total number of files and
directories you can have on a single filesystem based on how many inodes
were created when the filesystem was first created.




-- 
Insert your favourite quote here.
Erik Trulsson
[EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: UFS2 limits

2008-11-09 Thread Jeremy Chadwick
On Sun, Nov 09, 2008 at 10:35:21AM +0100, Erik Trulsson wrote:
 On Sat, Nov 08, 2008 at 06:40:46PM -0800, Jeremy Chadwick wrote:
  On Sun, Nov 09, 2008 at 01:40:51AM +, [EMAIL PROTECTED] wrote:
   Hi,
   I have a FreeBSD server that has about 10,500 subdirectories within a 
   single
   directory.
   This number will keep rising and I assume UFS2 has a limit to the number 
   of
   sub-directories in a single directory - can anyone tell me what it is?
  
  As far as I know, there is no such limit on the number of files/dirs
  inside of a directory.
 
 Actually there is.  Each i-node on the disk contains a field telling how
 many hard-links point to that inode. This field is a (signed) 16-bit value,
 meaning the maximum number of hardlinks allowed is 32767.
 Each subdirectory created contains a hardlink ('..') to its parent, thus
 limiting the number of subdirectories to a single directory to less than 
 32767.

I hadn't even thought of that (the inode possibility did cross my mind,
but I figured inode counts would a) apply to the filesystem as a whole,
and b) apply to both files and directories.

Wow, thanks for the tip!  Learning something new every day...  :-)

 Note that this does not limit the number of files you can have in a single
 directory, since normal files do not contain hardlinks to the parent
 directory, but there are of course limits to the total number of files and
 directories you can have on a single filesystem based on how many inodes
 were created when the filesystem was first created.

-- 
| Jeremy Chadwickjdc at parodius.com |
| Parodius Networking   http://www.parodius.com/ |
| UNIX Systems Administrator  Mountain View, CA, USA |
| Making life hard for others since 1977.  PGP: 4BD6C0CB |

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Port Adobe Photoshop and Illustrator for FreeBSD?

2008-11-09 Thread Da Rock

On Sat, 2008-11-08 at 12:44 -0800, [EMAIL PROTECTED] wrote:
   Is there a port like Adobe Photoshop and Illustrator for FreeBSD?
   I would like to move to FreeBSD as soon as possible.
  
   You could try the gimp for manipulating bitmap images. For creating
   vector images, try either inkscape or xaralx. They're all in ports.
 
  i have a friend that do offset printing.
 
  he have to use windoze and photoshop for only one reason - gimp
  doesn't support editing CMYK images
 
 If all else fails, one could try running the Windows versions of
 Photoshop and Illustrator under wine.

That has been known to work, but not without some serious hacking. One
major problem is the software needs administrative access, so you need
to copy the registry from a working windows to the wine system.

If you're up to it its ok, but you do have to wonder whether you really
want cross contamination :), or even whether you want to support a
company that stubbornly refuses to consider OSS as a system it will
build it software for.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FreeBSD network ISP provider

2008-11-09 Thread Fbsd1

Pieter Donche wrote:

I installed FreeBSD 7.0 already on a system at my office (from CDs)
and set up internet connection while installing using the office LAN
(and its DHCP service).

I installed FreeBSD also on my laptop at home (with no network 
connection). (with X windows; startx gives me twm ..)

I want to install KDE3 from /usr/ports/x11/kde3
Tried as described: # cd /usr:ports/x11:kde3; make install clean
I had hoped everything necessary would be found in the disk.
But not: It returns errors because it tried to fetch packages from ftp
sites ... an soon stops..

So I still need Internet connection?

At home, I have an Internet connection via a Broadband Modem and an 
account at an Internet Service Provider. This was set up in WindowsXP 
succesfully (with IP 10.0.0.something,

netmask 255.255.255.0, no gateway, 2 DNS server IP addresses provided
by the ISP). When making the connection to my ISP I have to enter my 
username at the ISP provider ([EMAIL PROTECTED]) and my password)


But how do I set up that in FreeBSD ??

In the Post-installation section during Setup, at the question
'Would you like to configure any Ethernet or SLIP/PPP network devides?)
answering Yes shows the correct on-board netwerk interface (Broadcom 
BCM570xx PCI Gigabit ethernet card)


I tried DHCP, but no success (which was to expect)
Then I get the screen to fill in Host, Domain, Gateway, Name server
IPv4 address, netmask ...

What do I have to enter (Name server, netmask I can guess)
for IP?, host?, domain?
and where will come in my  username/password for my ISP connection

Thanks for hints.
Is there any document describing such a connection?

pieter
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
[EMAIL PROTECTED]



There is step by step instructions in the installer guide at 
www.a1poweruser.com

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


[port : www/sams] What's wrong with my patch?

2008-11-09 Thread Yuriy Grishin

Hello,

More than 2 weeks ago I tried to take maintainership of www/sams because 
it hasn't been updated for a long time.

Current state : feedback. (but I've sent the file)
Could somebody please explain me what wrong with the patch is?
Why didn't the state changed?

See the pr here :
http://www.freebsd.org/cgi/query-pr.cgi?pr=128124

--
Kind Regards, Yuriy Grishin

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: UFS2 limits

2008-11-09 Thread Roland Smith
On Sun, Nov 09, 2008 at 10:47:11AM +0100, Polytropon wrote:
 On Sun, 9 Nov 2008 10:35:21 +0100, Erik Trulsson [EMAIL PROTECTED] wrote:
  Note that this does not limit the number of files you can have in a single
  directory, since normal files do not contain hardlinks to the parent
  directory, but there are of course limits to the total number of files and
  directories you can have on a single filesystem based on how many inodes
  were created when the filesystem was first created.
 
 Maybe this sounds stupid, but... given that a file system
 can hold n entries. What happens when a program tries to
 create file number n + 1?

The call to the open(2) system call will fail for one of the reasons
given in the manual page.
 
 I do ask this in order to explore if this could have been
 the reason for my massive data loss and UFS file system
 corruption.

My first point of inquiry in such a case would be if the hardware is
OK. If you're using (P|S)ATA|SCSI-3 devices, install smartmontools from
ports and test the disk with smartctl(8).

Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgp0o7tO9DuGA.pgp
Description: PGP signature


why do I have 2 aliases.db files?

2008-11-09 Thread Michael P. Soulier
I just noticed that I have one in /etc/mail and one in /etc, and
postfix is reading the one in /etc which the newaliases command hasn't
touched in ages 'cause it's been updating the one in /etc/mail.

/etc/mail looks like a sendmail thing. Should I just symlink
/etc/aliases.db to /etc/mail/aliases.db if I'm running postfix?

Thanks,
Mike
-- 
Michael P. Soulier [EMAIL PROTECTED]
Any intelligent fool can make things bigger and more complex... It takes a
touch of genius - and a lot of courage to move in the opposite direction.
--Albert Einstein
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: why do I have 2 aliases.db files?

2008-11-09 Thread Jeremy Chadwick
On Sun, Nov 09, 2008 at 07:19:05AM -0500, Michael P. Soulier wrote:
 I just noticed that I have one in /etc/mail and one in /etc, and
 postfix is reading the one in /etc which the newaliases command hasn't
 touched in ages 'cause it's been updating the one in /etc/mail.

It sounds like your machine has survived many upgrades of sendmail.  At
one point, /etc/aliases (and /etc/aliases.db) were the common path for
sendmail.  That has since changed to /etc/mail/aliases and
/etc/mail/aliases.db.

Note that /etc/aliases today is a symlink to /etc/mail/aliases.  AFAIK,
this is for ease of transition.

 /etc/mail looks like a sendmail thing. Should I just symlink
 /etc/aliases.db to /etc/mail/aliases.db if I'm running postfix?

Absolutely not.  Postfix should not be using /etc/mail **at all**.
If you have your postfix configuration using that directory, you
probably shouldn't have.

The only piece of /etc/mail which is even remotely related to postfix is
/etc/mail/mailer.conf, which tells mailwrapper(1) what actual binaries
to run when using things like newaliases in /usr/bin, etc.

The aliases and aliases.db files in a default postfix installation are
in /usr/local/etc/postfix.  As I said, if you've changed these around in
your own postfix configuration, that's your own fault/doing.  :-)

Depending upon what you've done with your own postfix configuration, you
should delete /etc/aliases.db, and ensure /etc/aliases is a symlink to
mail/aliases (e.g. /etc/mail/aliases).

If there's any question about this, re-read what I've written a couple
times; I know that seeing the word aliases 50 times in a row can throw
people into confusion (I speak from experience).

-- 
| Jeremy Chadwickjdc at parodius.com |
| Parodius Networking   http://www.parodius.com/ |
| UNIX Systems Administrator  Mountain View, CA, USA |
| Making life hard for others since 1977.  PGP: 4BD6C0CB |

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: debugging cronjobs not running

2008-11-09 Thread Jeremy Chadwick
On Sun, Nov 09, 2008 at 06:57:10AM -0500, Michael P. Soulier wrote:
 So, I'm running cron in debug mode, and I do see things like this
 about my crontab.

I'm not sure why you sent this to me directly, but I do appreciate you
CC'ing the mailing lists.  :-)

 load_entry()...returning successfully
 load_env, read */5 * * * * cacti /usr/local/bin/php
 /usr/local/share/cacti/poller.php 1/dev/null 21
 load_env, parse error, state = 7
 
 but that parse_error line is the same for many links that do seem to
 be run properly.

I have no familiarity with the internals of cron, so I have no idea what
parse error implies, nor state = 7.

 The symptoms I'm seeing is some cronjobs, specifically weekly ones,
 not running as expected. Plus, I used to get email from the nightly
 runs of periodic, and now I don't see anything. I know some jobs
 aren't running because they produce files as output and I'm not seeing
 them. That, or they're simply running unsuccessfully.

 One thing I noticed is that man 5 crontab seems to make no mention
 of the user field used in /etc/crontab, but that's likely just a
 documentation error.

That's because /etc/crontab is not crontab(5).  See cron(8) for mentions
of the system-level crontab.  Please file a PR on the documentation
confusion so it can get fixed/addressed.

 Has anyone ever configured cronjobs that just didn't run, or you
 didn't get mail for them like you should have?

No, this has never happened to me, or on any of the systems I've
administrated.

It might be worthwhile using crontab -e -u user and see if those
crontabs reliably work for you.  If so, then the problem is likely with
the system-level crontab and not with user-level crontabs.

Before doing this, be sure to note what security/pam checks get applied
to user-level crontabs vs. system-level crontabs.  This is documented in
cron(8).  You might have to change shells of some accounts on your
system to get user-level crontabs to work for those accounts.

-- 
| Jeremy Chadwickjdc at parodius.com |
| Parodius Networking   http://www.parodius.com/ |
| UNIX Systems Administrator  Mountain View, CA, USA |
| Making life hard for others since 1977.  PGP: 4BD6C0CB |

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: UFS2 limits

2008-11-09 Thread Polytropon
On Sun, 9 Nov 2008 10:35:21 +0100, Erik Trulsson [EMAIL PROTECTED] wrote:
 Note that this does not limit the number of files you can have in a single
 directory, since normal files do not contain hardlinks to the parent
 directory, but there are of course limits to the total number of files and
 directories you can have on a single filesystem based on how many inodes
 were created when the filesystem was first created.

Maybe this sounds stupid, but... given that a file system
can hold n entries. What happens when a program tries to
create file number n + 1?

I do ask this in order to explore if this could have been
the reason for my massive data loss and UFS file system
corruption.



-- 
Polytropon
From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Gconf error in Pidgin Abiword application on xfce Desktop

2008-11-09 Thread Fbsd1
I installed the package of the Generic instant messenger application 
(Pidgin)on xfce desktop. It seems to work fine, but in the log it gives 
this message text.


GConf Error: Failed to contact configuration server; some possible 
causes are that you need to enable TCP/IP networking for ORBit, or you 
have stale NFS locks due to a system crash. See 
http://www.gnome.org/projects/gconf/ for information.

(Details -
1: IOR file '/var/tmp/gconfd-aiza/lock/ior' not opened successfully, no 
gconfd located: No such file or directory
2: IOR file '/var/tmp/gconfd-aiza/lock/ior' not opened successfully, no 
gconfd located: No such file or directory)


Inspection shows that the directory '/var/tmp/gconfd-aiza/lock/' is 
present, but its empty. Aiza in this case is the user name.

There is also in empty directory '/var/tmp/orbit-aiza'.

The package install of the word processing application Abiword also 
generates this same error message, but it is displayed as a startup 
error popup window when Abiword is launched from the xfce menu.


I tried creating am empty 'ior' file but that had no effect.

Question is: How can I correct this error?



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Port Adobe Photoshop and Illustrator for FreeBSD?

2008-11-09 Thread Da Rock

On Sun, 2008-11-09 at 12:16 +0100, Jos Chrispijn wrote:
 Uit een eerder bericht (9-11-2008 4:43):
  That has been known to work, but not without some serious hacking. One
  major problem is the software needs administrative access, so you need
  to copy the registry from a working windows to the wine system.

 Could it be possible to use Adobe's Mac versions on FreeBSD with less 
 hacking?

That's an unknown. There is no Mac emulator to speak of, and although
FreeBSD and the Mac OS share a common root they're not the same. You'd
need to really research where the differences lie and establish
something like a mac_compat to accomplish that goal.

But then do you really want to be supporting a corporation that refuses
to work with OSS? They've only supplied readers to linux, and have
outlawed the use of these on FreeBSD. Not really worth propping up when
with less effort you could learn to use and extend the free stuff thats
out there like Gimp and Scribus which would be beneficial to all.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: UFS2 limits

2008-11-09 Thread Chris Pratt


On Nov 9, 2008, at 12:18 AM, Ian wrote:


On Sun, 9 Nov 2008 13:10:46 Jeremy Chadwick wrote:
On Sun, Nov 09, 2008 at 01:40:51AM +, [EMAIL PROTECTED]  
wrote:

Hi,
I have a FreeBSD server that has about 10,500 subdirectories  
within a

single directory.
This number will keep rising and I assume UFS2 has a limit to the  
number
of sub-directories in a single directory - can anyone tell me  
what it is?


As far as I know, there is no such limit on the number of files/dirs
inside of a directory.


Thanks for that Jeremy. I didn't invent this structure, but I  
daresay I can
either modify it or get the original writer to do that. I never  
really gave
it a thought before now - it was the system I was given to work  
with and it's
worked fine so far, except when I try to list the contents of the  
directory -

that takes ages!
All the folders are 7 digit numbers and we are up to approx.  
0010500 entries

(ie subdirs) so far.
I guess it will just be a matter of experimenting to find the  
optimum number

of sub-sub-directories per sub-directory :-/


On the issue of possible inode limitations, it may be of some  
reassurance
(or alarm ;-)) to look at the output of df -i. This will tell you if  
you are close
to any limit on inodes. Between that and your already well known  
counts of
directories and rate of creation, you can gauge how much time you  
have to

change your app.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


FreeBSD network ISP provider

2008-11-09 Thread Pieter Donche

I installed FreeBSD 7.0 already on a system at my office (from CDs)
and set up internet connection while installing using the office LAN
(and its DHCP service).

I installed FreeBSD also on my laptop at home (with no network connection). 
(with X windows; startx gives me twm ..)

I want to install KDE3 from /usr/ports/x11/kde3
Tried as described: # cd /usr:ports/x11:kde3; make install clean
I had hoped everything necessary would be found in the disk.
But not: It returns errors because it tried to fetch packages from ftp
sites ... an soon stops..

So I still need Internet connection?

At home, I have an Internet connection via a Broadband Modem and an 
account at an Internet Service Provider. 
This was set up in WindowsXP succesfully (with IP 10.0.0.something,

netmask 255.255.255.0, no gateway, 2 DNS server IP addresses provided
by the ISP). When making the connection to my ISP I have to enter my 
username at the ISP provider ([EMAIL PROTECTED]) and my password)


But how do I set up that in FreeBSD ??

In the Post-installation section during Setup, at the question
'Would you like to configure any Ethernet or SLIP/PPP network devides?)
answering Yes shows the correct on-board netwerk interface (Broadcom 
BCM570xx PCI Gigabit ethernet card)


I tried DHCP, but no success (which was to expect)
Then I get the screen to fill in Host, Domain, Gateway, Name server
IPv4 address, netmask ...

What do I have to enter (Name server, netmask I can guess)
for IP?, host?, domain?
and where will come in my  username/password for my ISP connection

Thanks for hints.
Is there any document describing such a connection?

pieter
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


debugging cronjobs not running

2008-11-09 Thread Michael P. Soulier
So, I'm running cron in debug mode, and I do see things like this
about my crontab.

load_entry()...returning successfully
load_env, read */5 * * * * cacti /usr/local/bin/php
/usr/local/share/cacti/poller.php 1/dev/null 21
load_env, parse error, state = 7

but that parse_error line is the same for many links that do seem to
be run properly.

The symptoms I'm seeing is some cronjobs, specifically weekly ones,
not running as expected. Plus, I used to get email from the nightly
runs of periodic, and now I don't see anything. I know some jobs
aren't running because they produce files as output and I'm not seeing
them. That, or they're simply running unsuccessfully.

One thing I noticed is that man 5 crontab seems to make no mention
of the user field used in /etc/crontab, but that's likely just a
documentation error.

Has anyone ever configured cronjobs that just didn't run, or you
didn't get mail for them like you should have?

Thanks,
Mike
-- 
Michael P. Soulier [EMAIL PROTECTED]
Any intelligent fool can make things bigger and more complex... It takes a
touch of genius - and a lot of courage to move in the opposite direction.
--Albert Einstein
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: UFS2 limits

2008-11-09 Thread Erik Trulsson
On Sun, Nov 09, 2008 at 10:47:11AM +0100, Polytropon wrote:
 On Sun, 9 Nov 2008 10:35:21 +0100, Erik Trulsson [EMAIL PROTECTED] wrote:
  Note that this does not limit the number of files you can have in a single
  directory, since normal files do not contain hardlinks to the parent
  directory, but there are of course limits to the total number of files and
  directories you can have on a single filesystem based on how many inodes
  were created when the filesystem was first created.
 
 Maybe this sounds stupid, but... given that a file system
 can hold n entries. What happens when a program tries to
 create file number n + 1?
 
 I do ask this in order to explore if this could have been
 the reason for my massive data loss and UFS file system
 corruption.

I haven't tested what actually happens, but what should happen is that the
attempt to create file n+1 will simply fail with some appropriate error code
(see open(2) or mkdir(2) for details.)  It is certainly not supposed to
cause any kind of files system corruption.


-- 
Insert your favourite quote here.
Erik Trulsson
[EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: why do I have 2 aliases.db files?

2008-11-09 Thread Jeremy Chadwick
On Sun, Nov 09, 2008 at 04:30:24AM -0800, Jeremy Chadwick wrote:
 The only piece of /etc/mail which is even remotely related to postfix is
 /etc/mail/mailer.conf, which tells mailwrapper(1) what actual binaries
 ^^

That should have been mailwrapper(8).

-- 
| Jeremy Chadwickjdc at parodius.com |
| Parodius Networking   http://www.parodius.com/ |
| UNIX Systems Administrator  Mountain View, CA, USA |
| Making life hard for others since 1977.  PGP: 4BD6C0CB |

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Question on creating a video server

2008-11-09 Thread Da Rock

On Sat, 2008-11-08 at 22:09 +0100, Wojciech Puchar wrote:
   Has anyone done this with FreeBSD and open source
  software, and has recommendations on what hardware to get
  and what software works with it?
 
 mplayer play video files fine.
 
 no idea about HDTV tunes

Mplayer works great, so does Xine. Thats what I use- I use mplayer for
recording using the dumpstream option and do post processing later with
mencoder.

The problem lies with getting the tuners themselves to work due to lack
of drivers...

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Port Adobe Photoshop and Illustrator for FreeBSD?

2008-11-09 Thread Jos Chrispijn


Uit een eerder bericht (9-11-2008 4:43):

That has been known to work, but not without some serious hacking. One
major problem is the software needs administrative access, so you need
to copy the registry from a working windows to the wine system.
  
Could it be possible to use Adobe's Mac versions on FreeBSD with less 
hacking?


jc
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: UFS2 limits

2008-11-09 Thread Matthew Seaman

Jeremy Chadwick wrote:


I don't want to change the topic of discussion, but I *highly* recommend
you ***stop*** whatever it is you're doing that is creating such a
directory structure.  Software which has to iterate through that
directory using opendir() and readdir() will get slower and slower as
time goes on.


With the implementation of UFS_DIRHASH the practical limit on the
size of directories is now a great deal larger. In particular
the slow down caused by linear search through the contents has been 
eliminated.  See ffs(7).  10,000 files or sub-directories, whist

not a particularly elegant setup, is actually not unworkable
nowadays.

As for the maximum number of subdirectories it is possible to create
on UFS2 -- it is limited by the inode structure to a 16 bit quantity.

% jot 10 1 | xargs mkdir -v
[...]
32725
32726
32727
32728
32729
32730
3273mkdir: 32766: Too many links
mkdir: 32767: Too many links
mkdir: 32768: Too many links
mkdir: 32769: Too many links
mkdir: 32770: Too many links
mkdir: 32771: Too many links
[...]

Which is 32768 - 2 for the '.' and '..' links.  Trying to create too
many subdirectories just results in mkdir failing: the filesystem
itself is not damaged.

Cheers,

Matthew

--
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
 Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
 Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature


Re: UFS2 limits

2008-11-09 Thread Wojciech Puchar

Hi,
I have a FreeBSD server that has about 10,500 subdirectories within a single
directory.
This number will keep rising and I assume UFS2 has a limit to the number of
sub-directories in a single directory - can anyone tell me what it is?



make sure your kernel is compiled with

options UFS_DIRHASH


or it will be slow


the limit is 32765, just because link count is 2 bytes wide and each 
subdir adds two to base directory. you have to change to 2 level 
hierarchy.



with files - i started creating empty files, it turned slow after 
about 32.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: UFS2 limits

2008-11-09 Thread Wojciech Puchar


With the implementation of UFS_DIRHASH the practical limit on the
size of directories is now a great deal larger. In particular
the slow down caused by linear search through the contents has been


but - try making (by shell script for example) empty files.

it creates it fast and rapidly slows at about 32 on my machine.

i have UFS_DIRHASH
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: debugging cronjobs not running

2008-11-09 Thread Michael P. Soulier
On Sun, Nov 9, 2008 at 7:36 AM, Jeremy Chadwick [EMAIL PROTECTED] wrote:
 I'm not sure why you sent this to me directly, but I do appreciate you
 CC'ing the mailing lists.  :-)

Old thread, my bad.

 No, this has never happened to me, or on any of the systems I've
 administrated.

Found it. The problem was several things.

1. The 6.3 upgrade merged in a HOME of /var/log in crontab, which
broke some $HOME references in some of my jobs.

2. My /etc/aliases.db hadn't been used in some time, /etc/mail/aliases.db was.

All fixed. The parse error in the debug was apparently not service
affecting. I suspect it's looking for environment variables set before
the command to run, judging by some of the code snippets I looked at.

Mike
-- 
Michael P. Soulier [EMAIL PROTECTED]
Any intelligent fool can make things bigger and more complex... It takes a
touch of genius - and a lot of courage to move in the opposite direction.
--Albert Einstein
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: UFS2 limits

2008-11-09 Thread Robert Huff

Wojciech Puchar writes:

  the limit is 32765, just because link count is 2 bytes wide and
  each subdir adds two to base directory. you have to change to 2
  level hierarchy.

Question (for anyone who has an informed opinion):
If there any technical reason that couldn't be expanded to 32
bits?  Or is it possible but not done for historical or
policy reasons, and if so what are they?


Robert Huff

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: UFS2 limits

2008-11-09 Thread Jeremy Chadwick
On Sun, Nov 09, 2008 at 11:02:07AM -0500, Robert Huff wrote:
 Wojciech Puchar writes:
 
   the limit is 32765, just because link count is 2 bytes wide and
   each subdir adds two to base directory. you have to change to 2
   level hierarchy.
 
   Question (for anyone who has an informed opinion):
   If there any technical reason that couldn't be expanded to 32
 bits?  Or is it possible but not done for historical or
 policy reasons, and if so what are they?

At this point, I think this topic should be relocated to the freebsd-fs
mailing list.

-- 
| Jeremy Chadwickjdc at parodius.com |
| Parodius Networking   http://www.parodius.com/ |
| UNIX Systems Administrator  Mountain View, CA, USA |
| Making life hard for others since 1977.  PGP: 4BD6C0CB |

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: [port : www/sams] What's wrong with my patch?

2008-11-09 Thread matt donovan
On Sun, Nov 9, 2008 at 2:01 AM, Yuriy Grishin [EMAIL PROTECTED]wrote:

 Hello,

 More than 2 weeks ago I tried to take maintainership of www/sams because it
 hasn't been updated for a long time.
 Current state : feedback. (but I've sent the file)
 Could somebody please explain me what wrong with the patch is?
 Why didn't the state changed?

 See the pr here :
 http://www.freebsd.org/cgi/query-pr.cgi?pr=128124

 --
 Kind Regards, Yuriy Grishin

 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 [EMAIL PROTECTED]


well if you look at the pr they tell you exactly what's wrong with it I
would point you to
http://www.freebsd.org/doc/en_US.ISO8859-1/articles/problem-reports/

and here is what they said about your patch

Hello, Yury!
Some useful information about problem report you may read in man 1 send-pr.
Don't use cyrillic names in From: field, don't send bziped or gziped patches
if they are not too large - plain text is good enough for reading (and
uu-encoded bzip - not). Also read
http://www.freebsd.org/doc/en_US.ISO8859-1/articles/problem-reports/ article
and GNU Info file send-pr.info .

-- 
Cheers
Denis Barov
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: UFS2 limits

2008-11-09 Thread Dan
Jeremy Chadwick([EMAIL PROTECTED])@2008.11.08 18:40:46 -0800:
 I don't want to change the topic of discussion, but I *highly* recommend
 you ***stop*** whatever it is you're doing that is creating such a
 directory structure.  Software which has to iterate through that
 directory using opendir() and readdir() will get slower and slower as
 time goes on.

On a related note there are filesystems that handle many
files/directories very quickly. They use alternate tree data structures
that behave quicker. ReiserFS is one of them. I believe XFS does quite
well too. FreeBSD should have adapted XFS in addition to ZFS. ZFS is a
resource monster. Shame, really. XFS is freely available in Linux for a
number of years. Hammer, the new FS for FreeBSDs is available for
DragonflyBSD.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: UFS2 limits

2008-11-09 Thread Erik Trulsson
On Sun, Nov 09, 2008 at 11:02:07AM -0500, Robert Huff wrote:
 
 Wojciech Puchar writes:
 
   the limit is 32765, just because link count is 2 bytes wide and
   each subdir adds two to base directory. you have to change to 2
   level hierarchy.
 
   Question (for anyone who has an informed opinion):
   If there any technical reason that couldn't be expanded to 32
 bits?  Or is it possible but not done for historical or
 policy reasons, and if so what are they?

It probably could be expanded to 32 bits if that was deemed useful.
Doing that would of course require re-creating any existing filesystems
since the on-disk format would change, which would be a PITA for users,
but certainly possible.

It is rare that anybody actually encounter this limit however.  I would
even say that if you have more than a couple of thousand entries in a single
directory, then you are probably doing something wrong.

Personally I cannot think of any situation where one would actually want
(let alone need) as many as 3 or more subdirectories in a single
directory.




-- 
Insert your favourite quote here.
Erik Trulsson
[EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: UFS2 limits

2008-11-09 Thread Erik Trulsson
On Sun, Nov 09, 2008 at 12:48:51PM -0500, Dan wrote:
 Erik Trulsson([EMAIL PROTECTED])@2008.11.09 17:53:14 +0100:
  Personally I cannot think of any situation where one would actually want
  (let alone need) as many as 3 or more subdirectories in a single
  directory.
 
 I've seen some Java apps that use the FS as the DB. Nothing wrong with
 that. I think an FS can be quite a good DB, if implemented well. This gives
 many data manipulation options with traditional FS tools, shell
 scripts, etc.

Lets just say that there are reasons why the major database systems
generally use their own methods to store and organize the data rather
than rely on the file system for that.

Besides, for most database applications I can think of, what you would
need are lots of *files*, which do not have any special limitations other
than the the total space and number of i-nodes on the filesystem.
Even if you were using the FS as a DB I can't think of any good reason
to need 3+ subdirectories in a single directory.

 
 Large Maildirs for postfix and qmail/Courier. Some people don't delete
 email at all.

Again, that requires lots of files, not lots of subdirectories.



-- 
Insert your favourite quote here.
Erik Trulsson
[EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: UFS2 limits

2008-11-09 Thread Wojciech Puchar

If you really think HAMMER accomplishes the same goals as ZFS, you are
sadly mistaken.


it will be OK to achieve the goals it is advertised to achieve.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Sluggish scheduling during a long disk copy

2008-11-09 Thread matt donovan
On Sun, Nov 9, 2008 at 3:32 PM, Dan [EMAIL PROTECTED]wrote:

 Odhiambo Washington([EMAIL PROTECTED])@2008.11.09 23:25:19 +0300:
  On Sun, Nov 9, 2008 at 11:21 PM, Dan 
 [EMAIL PROTECTED]wrote:
 
   Hello. I am copying one 150G disk to a 3ware mirror, and the machine
   becomes downright unusable. It takes seconds to switch between
 'konsole'
   windows and it takes seconds between I type a command (ssh session to
   a remote box, which I know is fast and unloaded) and see it executed.
  
   This is 7.1-BETA2. Is this a bug or a generally-accepted performance
   behavior?
 
 
  Bug? :-)
 
  How are you copying?


 I am copying an 'ntfs-3g'-mounted disk to the 3ware mirror with cp -a.
 It's around 150G of data, and it's going at about 10MB/s to the mirror.
 The mirror uses geom journaling. The speed is fine, the disks are slow.
 But should the copy really freeze-up the system like that?
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 [EMAIL PROTECTED]


could be an issue with ntfs-3g driver
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Sluggish scheduling during a long disk copy

2008-11-09 Thread Kris Kennaway

matt donovan wrote:

On Sun, Nov 9, 2008 at 3:32 PM, Dan [EMAIL PROTECTED]wrote:


Odhiambo Washington([EMAIL PROTECTED])@2008.11.09 23:25:19 +0300:

On Sun, Nov 9, 2008 at 11:21 PM, Dan 

[EMAIL PROTECTED]wrote:

Hello. I am copying one 150G disk to a 3ware mirror, and the machine
becomes downright unusable. It takes seconds to switch between

'konsole'

windows and it takes seconds between I type a command (ssh session to
a remote box, which I know is fast and unloaded) and see it executed.

This is 7.1-BETA2. Is this a bug or a generally-accepted performance
behavior?


Bug? :-)

How are you copying?


I am copying an 'ntfs-3g'-mounted disk to the 3ware mirror with cp -a.
It's around 150G of data, and it's going at about 10MB/s to the mirror.
The mirror uses geom journaling. The speed is fine, the disks are slow.
But should the copy really freeze-up the system like that?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
[EMAIL PROTECTED]



could be an issue with ntfs-3g driver


Sounds like it to me.  ntfs-3g uses FUSE, which is a userland filesystem 
framework.  By design it will have poor I/O performance since every I/O 
transfer will require multiple trips into and out of the kernel.


Kris
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Sluggish scheduling during a long disk copy

2008-11-09 Thread Dan
Hello. I am copying one 150G disk to a 3ware mirror, and the machine
becomes downright unusable. It takes seconds to switch between 'konsole'
windows and it takes seconds between I type a command (ssh session to
a remote box, which I know is fast and unloaded) and see it executed.

This is 7.1-BETA2. Is this a bug or a generally-accepted performance
behavior? 

Thanks!
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: UFS2 limits

2008-11-09 Thread Dan
Erik Trulsson([EMAIL PROTECTED])@2008.11.09 17:53:14 +0100:
 Personally I cannot think of any situation where one would actually want
 (let alone need) as many as 3 or more subdirectories in a single
 directory.

I've seen some Java apps that use the FS as the DB. Nothing wrong with
that. I think an FS can be quite a good DB, if implemented well. This gives
many data manipulation options with traditional FS tools, shell
scripts, etc.

Large Maildirs for postfix and qmail/Courier. Some people don't delete
email at all.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Sluggish scheduling during a long disk copy

2008-11-09 Thread Bruce Cran
On Sun, 09 Nov 2008 14:12:34 -0800
Kris Kennaway [EMAIL PROTECTED] wrote:

 Dan wrote:
  Kris Kennaway([EMAIL PROTECTED])@2008.11.09 12:57:16 -0800:
  could be an issue with ntfs-3g driver
  Sounds like it to me.  ntfs-3g uses FUSE, which is a userland
  filesystem framework.  By design it will have poor I/O performance
  since every I/O transfer will require multiple trips into and out
  of the kernel.
  
  The FS performance isn't the issue, the poor interactive
  performance is.
 
 If you're thrashing your system with too many context switches or I/O 
 load it is expected that performance will suffer.  You should do some 
 additional investigation with the standard monitoring tools (top, 
 vmstat, gstat, etc) to determine what your system is doing.

It may be that FUSE is aggressively caching data and pushing your
applications out of memory.  This commonly happens on Linux and may
be happening here too.

-- 
Bruce Cran
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: UFS2 limits

2008-11-09 Thread Erik Trulsson
On Sun, Nov 09, 2008 at 12:33:06PM -0600, Modulok wrote:
 Personally I cannot think of any situation where one would actually want
 (let alone need) as many as 3 or more subdirectories in a single
 directory.
 
 No one will ever need more than 640K of memory!

Not quite the same thing.  One major problem with having lots of entries in
a directory is for humans using it (who have not become significantly
faster or more capable over the recent decades.)  Having lots of entries in
a single directory is simply very unwieldy.  There are is a reason why
people invented hierarchichal files systems with directories and
sub-directories, you know.

For those situations where the directory is not intended to be looked at by
a human, but only by programs, then there are more efficient ways of storing
the data if you need that many entries. (A real database system, for
example.)


Besides, most (all?) of the situations where one might concievably want many
entries in a single directory, what one would usually want is lots of files,
not lots of sub-directories - once you start using sub-directories, you
might as well use more than a single level of them.






-- 
Insert your favourite quote here.
Erik Trulsson
[EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: UFS2 limits

2008-11-09 Thread Erik Trulsson
On Sun, Nov 09, 2008 at 01:58:11PM -0500, Robert Huff wrote:
 
 Erik Trulsson writes:
 
 Question (for anyone who has an informed opinion):
 If there any technical reason that couldn't be expanded to 32
bits?  Or is it possible but not done for historical or
policy reasons, and if so what are they?
   
   It probably could be expanded to 32 bits if that was deemed
   useful.  Doing that would of course require re-creating any
   existing filesystems since the on-disk format would change, which
   would be a PITA for users, but certainly possible.
 
   I seem to remember at least one case (3.x - 4.0 ) where a
 major version change had no upgrade path - to get the new stuff you
 had to reinstall.

You are probably thinking of the 4.x - 5.x upgrade where you pretty much
had to reinstall if you wanted to switch from UFS1 to UFS2. (But you could
of course keep using UFS1 if you wanted.)

   But I agree there's no reason based on current evidence to do
 this.
   Thanks.
 
 
   Robert Huff

-- 
Insert your favourite quote here.
Erik Trulsson
[EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Hashes in scp usernames (OpenSSH bug 472)

2008-11-09 Thread Manolis Kiagias

Christopher Key wrote:

Hello,

I've come upon OpenSSH bug 472, whereby scp refuses usernames 
containing a '#' character, dieing with 'invalid user name'.  Both 
rsync and ssh accept such usernames, and after looking at 
/usr/src/crypto/openssh/scp.c, it would appear that scp also allows 
such usernames for the source, but not the destination.


I've several questions:

1) Is there any specific reason why scp behaves like this, and 
specifically why does it only attempt to validate the destination user 
name and not the source?


2) Assuming it is safe to drop the username validation, I can quite 
happily modify the code as appropriate.  However, I'm not sure how to 
rebuild and update with minimum fuss.  I really only need to rebuild 
scp and install the new binary, can I do this easily without a full 
make buildworld; make installworld?


3) Assuming that there's no additional reason not to remove the 
username validation, how should I go about submitting a change request 
to get this modification made in CURRENT, and MFCed as appropriate?


Kind Regards,

Chris Key




I don't know whether any of this is a good idea (there might be a very 
good reason why it is programmed this way, generally stuff in 'secure' 
is rather sensitive), but to answer your second question, you would 
simply do:


# cd /usr/src/secure/usr.bin/scp
# make
# make install

Since OpenSSH comes from OpenBSD, it may be worth trying asking someone 
over there too.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Port Adobe Photoshop and Illustrator for FreeBSD?

2008-11-09 Thread Jerry
On Sun, 09 Nov 2008 13:43:25 +1000
Da Rock [EMAIL PROTECTED] wrote:

If you're up to it its ok, but you do have to wonder whether you really
want cross contamination :), or even whether you want to support a
company that stubbornly refuses to consider OSS as a system it will
build it software for.

I would not necessarily blame the company. There are several programs
that I use on Windows, Roboform as one example. I have contacted the
company and was informed that producing a version that would work on
all versions of *nix was beyond the scope of what they could presently
do. In addition, they felt that since most OSS users do not want to pay
for software, there would be no way to recuperate their investment.

I have the full blown version of Photoshop and quite frankly I have not
seen anything from the OSS community that compares to it. The program
works and has a very finely designed interface. Gimp is fine for basic
things; however for more finely granular work it just does not measure
up.

Just my 2¢.

-- 
Jerry
[EMAIL PROTECTED]

Where it is a duty to worship the sun it is pretty sure to be a crime to
examine the laws of heat.

Christopher Morley


signature.asc
Description: PGP signature


Re: Sluggish scheduling during a long disk copy

2008-11-09 Thread Odhiambo Washington
On Sun, Nov 9, 2008 at 11:21 PM, Dan [EMAIL PROTECTED]wrote:

 Hello. I am copying one 150G disk to a 3ware mirror, and the machine
 becomes downright unusable. It takes seconds to switch between 'konsole'
 windows and it takes seconds between I type a command (ssh session to
 a remote box, which I know is fast and unloaded) and see it executed.

 This is 7.1-BETA2. Is this a bug or a generally-accepted performance
 behavior?


Bug? :-)

How are you copying?


-- 
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254733744121/+254722743223
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Life must be understood backwards; but... it must be lived forward.
   - Soren Kierkegaard
Oh My God! They killed init! You Bastards!
   --from a /. post
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: host -6 failure

2008-11-09 Thread David Horn
On Sun, Nov 9, 2008 at 3:13 AM, mdh [EMAIL PROTECTED] wrote:
 --- On Sat, 11/8/08, David Horn [EMAIL PROTECTED] wrote:
 From: David Horn [EMAIL PROTECTED]
 Subject: Re: host -6 failure
 To: [EMAIL PROTECTED]
 Cc: freebsd-questions@freebsd.org
 Date: Saturday, November 8, 2008, 8:10 PM
 On Sat, Nov 8, 2008 at 7:55 PM, mdh
 [EMAIL PROTECTED] wrote:
  --- On Sat, 11/8/08, David Horn
 [EMAIL PROTECTED] wrote:
  From: David Horn [EMAIL PROTECTED]
  Subject: Re: host -6 failure
  To: [EMAIL PROTECTED]
  Cc: freebsd-questions@freebsd.org
  Date: Saturday, November 8, 2008, 7:25 PM
  On Fri, Nov 7, 2008 at 2:18 PM, mdh
  [EMAIL PROTECTED] wrote:
   Howdy folks,
   I'm having a little trouble understanding
 a
  problem that the `host` command in RELENG_7_0
 (very recent)
  is having.
  The '-6' on the command line for host(1)
 forces an
  IPv6 only
  connection to your nameserver, not necessarily a
   query for the
  hostname in question.  In this case, your
 nameservers
  listed in the
  warnings are IPv4 nameservers that host(1) is
 attempting to
  connect to
  using an ipv4 mapped ipv6 address (which by
 default is
  disabled in the
  kernel) In other words, don't use host -6 for
 this
  scenario.
 
  Yet as I pointed out, the second nameserver in my
 resolv.conf is ::1 - so shouldn't it work with that?
 It's clearly trying to contact the first and third
 nameservers listed.  If the behavior I'm experiencing is
 the proper behavior, then let me pose this question: when
 would anyone conceivably want to use the -6 option, and why
 does it exist?  My intent was to force a query to hit the
 nameserver on ::1 rather than 127.0.0.1.
  
   domain  mydomain
   search  mydomain
   nameserver  127.0.0.1
   nameserver  ::1
   nameserver  IP.IP.IP.8
  
   The DNS server running on localhost is
 authoritative
  for mydomain.  I can ping it via localhost using
 both v4 and
  v6, and I can also ping the external v4 and v6
 addresses
  just fine remotely.
  
   As I said, I'm new to IPv6, but this
 behavior
  seems to be counterintuitive.  Am I just doing it
 wrong?
  
 
  For diagnosing your own nameservers, you are
 better off
  using the
  dig(1) utility.
 
  Example:
 
   dig ipv6.google.com  @::1
 
  This causes a dns query for an IPv6 address (aka
   query) for the
  hostname of ipv6.google.com using the
  nameserver on the IPv6
  localhost loopback address (::1), and will give a
 very nice
  verbose
  output.  man dig for more details.
 
  That is more useful, but still doesn't stifle my
 desire to stomp a potential bug in the base system.

 Right after sending, I realized that I did not tell you all
 of the answer

 host(1) will successfully query ::1 when named is setup to
 listen on
 ::1 in named.conf, and ::1 is listed in /etc/resolv.conf (I
 just ran a
 test on my box to be sure that it works this way with the
 -6 switch)

 Example line from /etc/namedb/named.conf:

 listen-on-v6{ ::1; any; };

 And of course you need to restart named after the config
 change(
 /etc/rc.d/named restart)

 To make sure that it is listening on the IPv6 loopback
 address:

 netstat -anW -f inet6

 I do not remember the minimum version of bind (aka named)
 required for
 IPv6 off the top of my head, but I am running 9.4.2-P2 on
 my IPv6
 machine.

 All of the conditions for success are true, however it fails.  My DNS server 
 software is responsing on ::1 port 53 (tcp and udp), and ::1 is the second 
 nameserver listed in resolv.conf.  Still, host -6 fails as previously 
 stated...  According to what you've said so far, this leads me to believe 
 that it ought to work as expected, and not error out in the way I'm seeing.

 Am I missing something here?  Is my lack of general IPv6 knowledge causing me 
 to blindly assume something incorrectly?

If all of the conditions for success were true, you would *not* be
having a problem.  You are likely missing something simple.
I suggest that you read about about general IPv6 network
troubleshooting, and bind.  The handbook has some good information
here:

http://www.freebsd.org/doc/en/books/handbook/network-dns.html
http://www.freebsd.org/doc/en/books/handbook/network-ipv6.html
http://www.freebsd.org/doc/en/books/developers-handbook/ipv6.html

You have yet to provide any new diagnostic output.  What was the result of:

 netstat -anW -f inet6
 dig ipv6.google.com  @::1
 named -version

Do not get hung up on the output of host(1) without trying to diagnose
the root problem (your nameserver working properly on ipv6).  Once you
fix the root problem, the other problems will go away.

If in doubt, run a tcpdump or wireshark trace, and make sure that your
firewall is not getting in the way.

-_Dave

 Thanks, Matt





___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: No pam_module.so found

2008-11-09 Thread Unga
--- On Mon, 11/10/08, Dag-Erling Smørgrav [EMAIL PROTECTED] wrote:

 From: Dag-Erling Smørgrav [EMAIL PROTECTED]
 Subject: Re: No pam_module.so found
 To: [EMAIL PROTECTED]
 Cc: freebsd-questions@freebsd.org
 Date: Monday, November 10, 2008, 2:30 AM
 Unga [EMAIL PROTECTED] writes:
  All my pam modules reside in /usr/lib/ and the version
 number of pam
  modules match the version number of the libpam
  (/usr/lib/libpam.so.2). Eg. pam_self.so.2 and
 pam_rootok.so.2 are
  available in /usr/lib/.
 
 In 7.0, this should be 4, not 2.
 

Thank you. Appreciate your reply.

Unga



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: UFS2 limits

2008-11-09 Thread Wojciech Puchar

 the limit is 32765, just because link count is 2 bytes wide and
 each subdir adds two to base directory. you have to change to 2
 level hierarchy.


Question (for anyone who has an informed opinion):
If there any technical reason that couldn't be expanded to 32
bits?  Or is it possible but not done for historical or
policy reasons, and if so what are they?



looking at /usr/include/ufs/ufs/dinode.h - i see

int64_t di_spare[3];


and i have really no idea why time uses as much as 8+4 bytes like that:

ufs_time_t  di_mtime;   /*  40: Last modified time. */
int32_t di_mtimensec;   /*  64: Last modified time. */


i think it is not a problem to make link count 32-bit, and - why spare 
space are not just used for more direct/indirect blocks


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: UFS2 limits

2008-11-09 Thread Ian
On Sun, 9 Nov 2008 22:46:18 Matthew Seaman wrote:
 Jeremy Chadwick wrote:
  I don't want to change the topic of discussion, but I *highly* recommend
  you ***stop*** whatever it is you're doing that is creating such a
  directory structure.  Software which has to iterate through that
  directory using opendir() and readdir() will get slower and slower as
  time goes on.

 With the implementation of UFS_DIRHASH the practical limit on the
 size of directories is now a great deal larger. In particular
 the slow down caused by linear search through the contents has been
 eliminated.  See ffs(7).  10,000 files or sub-directories, whist
 not a particularly elegant setup, is actually not unworkable
 nowadays.

Well that's certainly been my experience so far. Still, I now know we will run 
into problems when we hit the 32,768 limit, so I'll start designing something 
better.

Cheers,
-- 
Ian
gpg key: http://home.swiftdsl.com.au/~imoore/no-spam.asc


signature.asc
Description: This is a digitally signed message part.


Re: Sluggish scheduling during a long disk copy

2008-11-09 Thread Kris Kennaway

Dan wrote:

Kris Kennaway([EMAIL PROTECTED])@2008.11.09 12:57:16 -0800:

could be an issue with ntfs-3g driver
Sounds like it to me.  ntfs-3g uses FUSE, which is a userland filesystem  
framework.  By design it will have poor I/O performance since every I/O  
transfer will require multiple trips into and out of the kernel.


The FS performance isn't the issue, the poor interactive performance is.


If you're thrashing your system with too many context switches or I/O 
load it is expected that performance will suffer.  You should do some 
additional investigation with the standard monitoring tools (top, 
vmstat, gstat, etc) to determine what your system is doing.


Kris
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: UFS2 limits

2008-11-09 Thread Jeremy Chadwick
On Sun, Nov 09, 2008 at 11:09:17AM -0500, Dan wrote:
 Jeremy Chadwick([EMAIL PROTECTED])@2008.11.08 18:40:46 -0800:
  I don't want to change the topic of discussion, but I *highly* recommend
  you ***stop*** whatever it is you're doing that is creating such a
  directory structure.  Software which has to iterate through that
  directory using opendir() and readdir() will get slower and slower as
  time goes on.
 
 On a related note there are filesystems that handle many
 files/directories very quickly. They use alternate tree data structures
 that behave quicker. ReiserFS is one of them. I believe XFS does quite
 well too. FreeBSD should have adapted XFS in addition to ZFS. ZFS is a
 resource monster. Shame, really. XFS is freely available in Linux for a
 number of years. Hammer, the new FS for FreeBSDs is available for
 DragonflyBSD.

If you really think HAMMER accomplishes the same goals as ZFS, you are
sadly mistaken.

I have no idea about XFS.

-- 
| Jeremy Chadwickjdc at parodius.com |
| Parodius Networking   http://www.parodius.com/ |
| UNIX Systems Administrator  Mountain View, CA, USA |
| Making life hard for others since 1977.  PGP: 4BD6C0CB |

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: scripting text replacement

2008-11-09 Thread Jonathan McKeown
On Sunday 09 November 2008 00:02:11 Giorgos Keramidas wrote:
 On Sat, 8 Nov 2008 19:43:52 +0100, bsd [EMAIL PROTECTED] wrote:
 
  I have a file containing a list of items like that:
 
  line1item1 line1item2 line1item3
  line2item1 line2item2 line2item3
  …400 times
 
  I need to insert this into another text file using printf() items should
  be converted into variable looping… like that:
 
  printf Bla bla bla $1 bla bla $2 bla bla $3 bla bla $2

 A little more detail about the Bla bla part may be important in our
 effort to help you effectively.  What you seem to describe above may be
 trivial to do with awk(1):

More detail definitely needed. When you say insert into another text file, do 
you mean you want to create an output file in which each line is identical 
bar the four parameters from the first file (in other words your bla bla bla 
is the same for every input line) (in which case a simple awk '{printf}' will 
meet the need), or are you actually doing a merge of two files where bla bla 
bla represents the text from the next line of the other input file and 
changes from line to line?

Jonathan
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Sluggish scheduling during a long disk copy

2008-11-09 Thread Dan
Kris Kennaway([EMAIL PROTECTED])@2008.11.09 12:57:16 -0800:
 could be an issue with ntfs-3g driver

 Sounds like it to me.  ntfs-3g uses FUSE, which is a userland filesystem  
 framework.  By design it will have poor I/O performance since every I/O  
 transfer will require multiple trips into and out of the kernel.

The FS performance isn't the issue, the poor interactive performance is.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: UFS2 limits

2008-11-09 Thread Modulok
Personally I cannot think of any situation where one would actually want
(let alone need) as many as 3 or more subdirectories in a single
directory.

No one will ever need more than 640K of memory!

Be careful.
-Modulok-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: UFS2 limits

2008-11-09 Thread Wojciech Puchar

number of years. Hammer, the new FS for FreeBSDs is available for
DragonflyBSD.

i would like to see final (now still beta) version of hammer in action.
it's ADVERTISED features are great. but ZFS features was (and are) 
ADVERTISED great too while we see the result.


Hammer would be great if it will be  as advertised :)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: UFS2 limits

2008-11-09 Thread dan-freebsd-questions
Erik Trulsson([EMAIL PROTECTED])@2008.11.09 20:54:14 +0100:
 Besides, for most database applications I can think of, what you would
 need are lots of *files*, which do not have any special limitations other
 than the the total space and number of i-nodes on the filesystem.
 Even if you were using the FS as a DB I can't think of any good reason
 to need 3+ subdirectories in a single directory.
 
  
  Large Maildirs for postfix and qmail/Courier. Some people don't delete
  email at all.
 
 Again, that requires lots of files, not lots of subdirectories.

I agree, I misread the OP.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Sluggish scheduling during a long disk copy

2008-11-09 Thread Dan
Odhiambo Washington([EMAIL PROTECTED])@2008.11.09 23:25:19 +0300:
 On Sun, Nov 9, 2008 at 11:21 PM, Dan [EMAIL PROTECTED]wrote:
 
  Hello. I am copying one 150G disk to a 3ware mirror, and the machine
  becomes downright unusable. It takes seconds to switch between 'konsole'
  windows and it takes seconds between I type a command (ssh session to
  a remote box, which I know is fast and unloaded) and see it executed.
 
  This is 7.1-BETA2. Is this a bug or a generally-accepted performance
  behavior?
 
 
 Bug? :-)
 
 How are you copying?


I am copying an 'ntfs-3g'-mounted disk to the 3ware mirror with cp -a.
It's around 150G of data, and it's going at about 10MB/s to the mirror.
The mirror uses geom journaling. The speed is fine, the disks are slow.
But should the copy really freeze-up the system like that?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: No pam_module.so found

2008-11-09 Thread Dag-Erling Smørgrav
Unga [EMAIL PROTECTED] writes:
 All my pam modules reside in /usr/lib/ and the version number of pam
 modules match the version number of the libpam
 (/usr/lib/libpam.so.2). Eg. pam_self.so.2 and pam_rootok.so.2 are
 available in /usr/lib/.

In 7.0, this should be 4, not 2.

DES
-- 
Dag-Erling Smørgrav - [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Sluggish scheduling during a long disk copy

2008-11-09 Thread Dan
Odhiambo Washington([EMAIL PROTECTED])@2008.11.09 23:25:19 +0300:
 On Sun, Nov 9, 2008 at 11:21 PM, Dan [EMAIL PROTECTED]wrote:
 
  Hello. I am copying one 150G disk to a 3ware mirror, and the machine
  becomes downright unusable. It takes seconds to switch between 'konsole'
  windows and it takes seconds between I type a command (ssh session to
  a remote box, which I know is fast and unloaded) and see it executed.
 
  This is 7.1-BETA2. Is this a bug or a generally-accepted performance
  behavior?
 
 
 Bug? :-)
 
 How are you copying?


I am copying a 'ntfs-3g'-mounted disk to the 3ware mirror with cp -a.
It's around 150G of data, and it's going at about 10MB/s to the mirror.
The mirror uses geom journaling. The speed is fine, the disks are slow.
But should the copy really freeze-up the system like that?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: UFS2 limits

2008-11-09 Thread matt donovan
On Sun, Nov 9, 2008 at 2:55 PM, Erik Trulsson [EMAIL PROTECTED]wrote:

 On Sun, Nov 09, 2008 at 01:58:11PM -0500, Robert Huff wrote:
 
  Erik Trulsson writes:
 
  Question (for anyone who has an informed opinion):
  If there any technical reason that couldn't be expanded to 32
 bits?  Or is it possible but not done for historical or
 policy reasons, and if so what are they?
  
It probably could be expanded to 32 bits if that was deemed
useful.  Doing that would of course require re-creating any
existing filesystems since the on-disk format would change, which
would be a PITA for users, but certainly possible.
 
I seem to remember at least one case (3.x - 4.0 ) where a
  major version change had no upgrade path - to get the new stuff you
  had to reinstall.

 You are probably thinking of the 4.x - 5.x upgrade where you pretty much
 had to reinstall if you wanted to switch from UFS1 to UFS2. (But you could
 of course keep using UFS1 if you wanted.)

But I agree there's no reason based on current evidence to do
  this.
Thanks.
 
 
Robert Huff

 --
 Insert your favourite quote here.
 Erik Trulsson
 [EMAIL PROTECTED]
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 [EMAIL PROTECTED]


Kind of hard to get XFS in freeBSD with it being a dead filesystem that is
no longer being developed, probably to port it it would need a lot of code
changes.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Hashes in scp usernames (OpenSSH bug 472)

2008-11-09 Thread Christopher Key

Hello,

I've come upon OpenSSH bug 472, whereby scp refuses usernames containing 
a '#' character, dieing with 'invalid user name'.  Both rsync and ssh 
accept such usernames, and after looking at 
/usr/src/crypto/openssh/scp.c, it would appear that scp also allows such 
usernames for the source, but not the destination.


I've several questions:

1) Is there any specific reason why scp behaves like this, and 
specifically why does it only attempt to validate the destination user 
name and not the source?


2) Assuming it is safe to drop the username validation, I can quite 
happily modify the code as appropriate.  However, I'm not sure how to 
rebuild and update with minimum fuss.  I really only need to rebuild scp 
and install the new binary, can I do this easily without a full make 
buildworld; make installworld?


3) Assuming that there's no additional reason not to remove the username 
validation, how should I go about submitting a change request to get 
this modification made in CURRENT, and MFCed as appropriate?


Kind Regards,

Chris Key


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: why do I have 2 aliases.db files?

2008-11-09 Thread Sahil Tandon
Michael P. Soulier [EMAIL PROTECTED] wrote:

 I just noticed that I have one in /etc/mail and one in /etc, and
 postfix is reading the one in /etc which the newaliases command hasn't
 touched in ages 'cause it's been updating the one in /etc/mail.

That is not the default behavior.  From sendmail(1), which is the
Postfix to Sendmail compatibility interface:

newaliases
  Initialize the alias database.  If no input  file  is  specified
  (with  the  -oA  option,  see  below), the program processes the
  file(s) specified with the alias_database configuration  parame-
  ter.   If  no alias database type is specified, the program uses
  the type specified with the default_database_type  configuration
  parameter.  This mode of operation is implemented by running the
  postalias(1) command.

% postconf -d | grep '^alias_'
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases

So, the newaliases command should be modifying the alias database in
/etc unless you changed this in your main.cf.  But if that were the
case, Postfix would also *read* for aliases in that non-default
location.  What is the output of the following command on your machine?

% man sendmail | grep Postfix | head -1

-- 
Sahil Tandon [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: UFS2 limits

2008-11-09 Thread Robert Huff

Erik Trulsson writes:

  Question (for anyone who has an informed opinion):
  If there any technical reason that couldn't be expanded to 32
   bits?  Or is it possible but not done for historical or
   policy reasons, and if so what are they?
  
  It probably could be expanded to 32 bits if that was deemed
  useful.  Doing that would of course require re-creating any
  existing filesystems since the on-disk format would change, which
  would be a PITA for users, but certainly possible.

I seem to remember at least one case (3.x - 4.0 ) where a
major version change had no upgrade path - to get the new stuff you
had to reinstall.
But I agree there's no reason based on current evidence to do
this.
Thanks.


Robert Huff


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Sluggish scheduling during a long disk copy

2008-11-09 Thread Dan
Bruce Cran([EMAIL PROTECTED])@2008.11.09 14:40:04 -0800:
 It may be that FUSE is aggressively caching data and pushing your
 applications out of memory.  This commonly happens on Linux and may
 be happening here too.
 

Fuse is good. Tried without fuse, using the native ntfs mount. Still the
same issue :(. It takes forever to do anything on this pc while the
constant disk io is taking place.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ports missing their packages.

2008-11-09 Thread Kris Kennaway

[EMAIL PROTECTED] wrote:

andrew clarke mail_ozzmosis.com said (on 2008/10/29):

You need to understand that the FreeBSD project by its nature is
primarily source-code driven.  Making packages available (of any port)
is of very low priority in comparison to the rest of the system
(testing, documentation, etc).  Demanding that the FreeBSD volunteers
build a package just because you want to use it is a bit unfair,
particularly when you can make one yourself without much trouble.


I'm not sure I got all the emails in this thread... maybe some just
haven't arrived yet.

Anyway... I, for one, depend on packages. It literally takes days to 
build something like Firefox on my (admittedly old) computer. I'm 
surprised that package creation is such a low priority. Are there so 
few people running FreeBSD on old hardware?


Just so you're clear, the original poster was completely wrong on how 
packages are built by the FreeBSD project.  Others have already 
explained the process in this thread, but to repeat: the packages are 
built automatically and continuously by a dedicated set of machines, and 
they are uploaded to the FTP site frequently.


Kris
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]