What do ASCII codes 128-159 stand for?
"man ascii" defines the ASCII codes from 0-127, and the various ISO-8859-x tables define the ASCII codes from 160-255 (depending on your character set), but are there standard representations for the ASCII codes between 128 and 159 inclusive? -- We're just a Bunch Of Regular Guys, a collective group that's trying to understand and assimilate technology. We feel that resistance to new ideas and technology is unwise and ultimately futile. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Using rsync for versioned backups without --backup
I want to use rsync to backup a large file (say 1G) that changes a little each day (say 1M), but I also want the ability to re-create older versions of this file. I could use --backup, but that would create a 1G file each day, even though I only "really" need the 1M that's changed. How do I tell rsync: "while updating, also store the changes you'd need to convert today's backup into yesterday's backup"? I realize I could use diff or something, but since rsync has to calculate minimal changes anyway, it'd be nice to store them. I thought the --itemize-changes option might do this, but no. -- We're just a Bunch Of Regular Guys, a collective group that's trying to understand and assimilate technology. We feel that resistance to new ideas and technology is unwise and ultimately futile. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: ps says process has been running for 49710 days
On Sun, May 24, 2009 at 11:59 PM, Kelly Jones wrote: > I use "/bin/ps -www -ax -eo 'pid etime args'" to see how long a > process has been running. This usually works fine, but I sometimes see > things like: > > 17469 49710-06:28:15 /usr/bin/fly -q -i [...] > > indicating a process has been running for 49710+ days. > > I originally thought that was the time from the Unix epoch, but it's > actually near 13 Dec 1901. > > I can easily workaround this, but was curious if anyone knew more about it? > I use PC Engines ALIX boards who don't have a CMOS battery to keep hardware clock on times there is no power on the board. Because of that you have to set the clock on bootup by some means such as ntpd or ntpdate. If a shell is currently open when the time is set, you get some weird numbers too. So my question to you is if this is a board that has the same hardware problems? Is it a bad RTC that prevents accurate timekeeping? need to tune kern.clockrate? tune kern.timecounter.choice? Good luck. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Watchdog timer
What's the proper way to configure the watchdog timer service so that a system will automatically reboot after five minutes of non-responsiveness? I tried setting watchdog to run with the args "-s 10 -t 300", but I've seen systems reboot after only a few seconds of inactivity (such as being hung on an I/O wait) instead of the full five minutes specified by the -t option. What am I missing? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
ps says process has been running for 49710 days
I use "/bin/ps -www -ax -eo 'pid etime args'" to see how long a process has been running. This usually works fine, but I sometimes see things like: 17469 49710-06:28:15 /usr/bin/fly -q -i [...] indicating a process has been running for 49710+ days. I originally thought that was the time from the Unix epoch, but it's actually near 13 Dec 1901. I can easily workaround this, but was curious if anyone knew more about it? -- We're just a Bunch Of Regular Guys, a collective group that's trying to understand and assimilate technology. We feel that resistance to new ideas and technology is unwise and ultimately futile. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Secure unsalted or fixed salt symmetric encryption?
Are there any secure openssl symmetric encryption routines that *don't* use a salt? Is it secure to use a random-but-fixed salt (openssl enc -S salt)? "man enc" says "This option [-salt] should ALWAYS be used [...]" Reason I ask: I was using this command to backup files using compression/encryption: bzip2 -k -c original | openssl enc -bf -pass file:passfile > encfile and was surprised that doing this to identical files yielded different results. I then realized "openssl enc" randomly(?) chooses a salt if you don't supply one. I want my backups encrypted, but I also want identical files to encrypt identically. Thoughts? -- We're just a Bunch Of Regular Guys, a collective group that's trying to understand and assimilate technology. We feel that resistance to new ideas and technology is unwise and ultimately futile. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Errors Installing ca_root_nss Port
On Sun, May 24, 2009 at 9:57 PM, Drew Tomlinson wrote: > Drew Tomlinson wrote: > > I'm using FBSD 6x. It's been a while since I upgraded ports. One of > > the ports to upgrade is curl from 7.18.0 to 7.19.4. It wants to pull > > in security/ca_root_nss. This port gets a bunch of errors when > > attempting to install. Here is an example: > > > > Error configuring OpenSSL > > 40358:error:260AB089:engine routines:ENGINE_ctrl_cmd_string:invalid > > cmd > > > name:/usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/engine/eng_ctrl.c:318: > > > > 40358:error:0E07406D:configuration file > > routines:CONF_modules_load:module initialization > > > error:/usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/conf/conf_mod.c:234:module=engines, > > value=openssl_engines, retcode=-1 > > > > I had been using openssl from the base system but tried installing > > from ports (0.9.8k) to see if it helped. It did not. Should I leave > > or remove openssl from ports? If I leave it, is there anything I need > > to do so it does not conflict with the base system? > > > > And regarding ca_root_nss, what must I do to get that installed? > I'm still having this problem and can't find a solution anywhere. And > now I need to install php5-curl which also needs ca_root_nss. Any ideas? > > Thanks, > > Drew > Ports are guaranteed to work only on the current releases of FreeBSD. See http://www.freebsd.org/ports for the paragraph I take that from. Your options are to try to use packages (unsupported), updating to a supported FreeBSD system and then updating all your ports. There is an advantage to keeping up-to-date. Sorry I didn't have good news. Update and try again. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Errors Installing ca_root_nss Port
Drew Tomlinson wrote: > I'm using FBSD 6x. It's been a while since I upgraded ports. One of > the ports to upgrade is curl from 7.18.0 to 7.19.4. It wants to pull > in security/ca_root_nss. This port gets a bunch of errors when > attempting to install. Here is an example: > > Error configuring OpenSSL > 40358:error:260AB089:engine routines:ENGINE_ctrl_cmd_string:invalid > cmd > name:/usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/engine/eng_ctrl.c:318: > > 40358:error:0E07406D:configuration file > routines:CONF_modules_load:module initialization > error:/usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/conf/conf_mod.c:234:module=engines, > value=openssl_engines, retcode=-1 > > I had been using openssl from the base system but tried installing > from ports (0.9.8k) to see if it helped. It did not. Should I leave > or remove openssl from ports? If I leave it, is there anything I need > to do so it does not conflict with the base system? > > And regarding ca_root_nss, what must I do to get that installed? I'm still having this problem and can't find a solution anywhere. And now I need to install php5-curl which also needs ca_root_nss. Any ideas? Thanks, Drew -- Be a Great Magician! Visit The Alchemist's Warehouse http://www.alchemistswarehouse.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Crontab for different ime zones
On Sun, 2009-05-24 at 18:45 -0600, Tim Judd wrote: > How about a jail for America/NY, and a jail for AU/Sydney? that might > work. > > > --TJ > That's a good solution, but I am still somewhat puzzled by cron's behaviour relative to what I expected from the man page. >From the man page for crontab(8): "In order to provide finer control over when jobs execute, users can also set the environment variables CRON_TZ and CRON_WITHIN. The CRON_TZ variable can be set to an alternate time zone in order to affect when the job is run. Note that this only affects the scheduling of the job, not the time zone that the job perceives when it is run. If CRON_TZ is defined but empty (CRON_TZ=""), jobs are scheduled with respect to the local time zone." Problem is, CRON_TZ just doesn't work as written above. If you insert CRON_TZ=America/New_York and then write the * * * * * (schedule) to reflect NY time (say), but your server time is Chicago, cron ignores the CRON_TZ definition. Here's a CRONTAB extract which provides a good example of the odd behaviour: # - sample crontab # change tz and cron_tz to America/NY TZ=America/New_York CRON_TZ=America/New_York # check that timezone change 'stuck' (commented out except for testing) * * * * * printf "CRON_TZ is now "$CRON_TZ". Now doing US\n" >> /home/targetdir/public_html/tmp/log.txt 2>&1 * * * * * date >> /home/targetdir/public_html/tmp/log.txt 2>&1 # Now, change both TZs to Australia/Sydney TZ=Australia/Sydney CRON_TZ=Australia/Sydney # check that timezone change 'stuck' (commented out except for testing) * * * * * printf "CRON_TZ is now "$CRON_TZ". Now doing Australia\n" >> /home/targetdir/public_html/tmp/log.txt 2>&1 * * * * * date >> /home/targetdir/public_html/tmp/log.txt 2>&1 # - end sample crontab The result of that will be Mon May 25 11:02:01 EST 2009 CRON_TZ is now Australia/Sydney. Now doing Australia Sun May 24 21:02:01 EDT 2009 CRON_TZ is now America/New_York. Now doing US 'date' is right, and $CRON_TZ changes as expected, but has no effect in cron. One other thing strikes me as odd: the output file is in reverse order to the crontab. If changes to CRON_TZ actually worked as written, then one would need to verify that the changes propagated 'downstream' from the variable declaration. It's not that output is being written to the top of the outfile though - output in subsequent minutes is APPENDED to the outfile. And now for the big "DUH, I'm an idiot" moment - apparently FreeBSD, Fedora and Ubuntu don't have CRON_TZ support built in. It's gotten to the stage where you have to be wary of what you find in external man pages... Cheers GT ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: silly Q: any script running before make install /w ports ?
On Sun, May 24, 2009 at 8:31 AM, Robert Joosten wrote: > Hi, > > I have a standard umask of 0077 on a box. > > I grabbed irssi from ports, but he doesn't connect to any irc server... > running it as root will. Now I suspect that umask setting of mine. > > That leaves me with a silly question: is there any script running before I > enter 'make install' ? I cannot find it in the dev. section of the > handbook about creating ports. > > Regards, > Robert I've had the same problem. Not with irssi, but with other pieces of software from the ports collection. I've just gotten into the habit of running `umask 0022` before I use portmaster, then `umask 0077` afterwords. I don't think there's any way to automatically run a certain command/script before compiling or installing a port. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Crontab for different ime zones
On Sun, May 24, 2009 at 5:31 PM, GT wrote: > On Sat, 2009-05-23 at 23:41 -0600, Tim Judd wrote: > > > > > > > > > > > I propose the following: > > cron itself has no concept of timezone. it is 'date' that is picking > up > > TZ and reporting as such. Cron's job is so simple is that it wakes up > each > > minute to see if it has work to do, regardless of timezone, or anything > > else. > > > > Yep - I understood that, Tim. > > Thew issue seems to be that cron pays no attention to TZ declarations > that happen AFTER it wakes up - cron does not parse the job times using > the new TZ. > > The thing I am struggling with is that 'date' picks up the changes > imposed by 'TZ=', but then 'cron' parses the next line as if the job > times are interpreted using the server's default TZ. > > I've tried using 'CRON_TZ=' as well as, and instead of, 'TZ=' - to no > avail. > > > What I thought ought to happen is this: > > * 'cron' wakes up; > * 'cron' works through the crontab line by line; > * at line 1 cron changes the TZ to America/NY; > * at line 2 cron reads the job time in the context of having just been > told that it's operating in the NY timezone (thus 45 13 * * * is 1:45 pm > NY time); > . > . > . > * at line 15 cron is told to change the TZ to Australia/Sydney; > * from line 14 onwards, 45 13 * * * is 1:45 pm SYDNEY time. > . > . > . > and so on. > > > > It seems that cron behaves as if it forgets $TZ at each newline within a > given cron instance. > > The silly thing is, with all the time I've wasted pursuing this wild > goose I could have built the required four crontabs, and written the > script to swap them in and out on the appropriate dates. > > (Or I could have spent $100 and bought a shared-hosted server space to > do the Australian-TZ stuff and given it sufficent permission to store > the resultant data in y primary mySQL db...) > > Still, I think it's worth persevering with. I'm certain it can be done. > > > You might want to try some other determining factor, such as a shell > > builtin. > > > > > > Good luck. > > Cheers > How about a jail for America/NY, and a jail for AU/Sydney? that might work. --TJ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: How can this 'top' command output make sense? Load over 7 and total CPU use ~5%
On Sun, May 24, 2009 at 3:02 PM, Michael David Crawford wrote: > This guy advises buying an old G4 Mac laptop to use as a netbook: > > http://lowendmac.com/ed/herlihy/09ph/ibook-netbook.html > > While Apple might be planning to stop supporting PowerPC, one could run > FreeBSD on it. > > Mac-Pro has good prices on used Mac laptops. A G4 PowerBook is $500 to $650 > depending on what kind of burner is installed. > > http://www.mac-pro.com/s.nl/sc.2/category.66/.f > > I was just now looking into ARM netbooks. I think there's only one actual > shipping model so far, but ARM shows great promise because ARM CPUs use very > little power. I expect there will be lots of them by the end of the year. > > Is there a FreeBSD ARM port? There's not one for 7.2. > How did this topic get switched to netbooks? -- Glen Barber ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Crontab for different ime zones
On Sat, 2009-05-23 at 23:41 -0600, Tim Judd wrote: > > > > > I propose the following: > cron itself has no concept of timezone. it is 'date' that is picking up > TZ and reporting as such. Cron's job is so simple is that it wakes up each > minute to see if it has work to do, regardless of timezone, or anything > else. > Yep - I understood that, Tim. Thew issue seems to be that cron pays no attention to TZ declarations that happen AFTER it wakes up - cron does not parse the job times using the new TZ. The thing I am struggling with is that 'date' picks up the changes imposed by 'TZ=', but then 'cron' parses the next line as if the job times are interpreted using the server's default TZ. I've tried using 'CRON_TZ=' as well as, and instead of, 'TZ=' - to no avail. What I thought ought to happen is this: * 'cron' wakes up; * 'cron' works through the crontab line by line; * at line 1 cron changes the TZ to America/NY; * at line 2 cron reads the job time in the context of having just been told that it's operating in the NY timezone (thus 45 13 * * * is 1:45 pm NY time); . . . * at line 15 cron is told to change the TZ to Australia/Sydney; * from line 14 onwards, 45 13 * * * is 1:45 pm SYDNEY time. . . . and so on. It seems that cron behaves as if it forgets $TZ at each newline within a given cron instance. The silly thing is, with all the time I've wasted pursuing this wild goose I could have built the required four crontabs, and written the script to swap them in and out on the appropriate dates. (Or I could have spent $100 and bought a shared-hosted server space to do the Australian-TZ stuff and given it sufficent permission to store the resultant data in y primary mySQL db...) Still, I think it's worth persevering with. I'm certain it can be done. > You might want to try some other determining factor, such as a shell > builtin. > > > Good luck. Cheers > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: How can this 'top' command output make sense? Load over 7 and total CPU use ~5%
Is there a FreeBSD ARM port? There's not one for 7.2. I'm not aware of one, but I think NetBSD has it. But finally, NetBSD isn't FreeBSD. :-) quite a big difference. was enough for me to switch to FreeBSD some time ago. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Problem calling through skype
Joey Mingrone wrote: Yes, I've seen the same behaviour. Also, trying to play the voicemail greeting is messed up. It's very choppy and distorted. Did anyone find any clues? Joey This has been fixed in current. See http://www.freebsd.org/cgi/query-pr.cgi?pr=134251 I don't know why this patch wasn't merged into 7.2. Yuri ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Problem calling through skype
On Wed, Apr 29, 2009 at 15:25, Yuri wrote: > Beginning from some recent ports update (? maybe) I get a problem making > voice calls with Skype. > Symptoms are: > All calls disconnect after exactly one minute. > Time counter on top of the window runs slow. Like one second per 7 real > seconds. > > Version is 2.0.0.72 but it used to work ok for a long time so it doesn't > seem to be related to version. > It's either something with update of other packages, or some change in > protocol not well taken by linux skype run on freebsd. > > Anyone sees similar problem? > Yes, I've seen the same behaviour. Also, trying to play the voicemail greeting is messed up. It's very choppy and distorted. Did anyone find any clues? Joey ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: How can this 'top' command output make sense? Load over 7 and total CPU use ~5%
I was just now looking into ARM netbooks. I think there's only one actual shipping model so far, but ARM shows great promise because ARM CPUs use very little power. I expect there will be lots of them by the end of the year. Is there a FreeBSD ARM port? There's not one for 7.2. there are for some ARM CPUs in source tree. Mike -- Michael David Crawford m...@prgmr.com prgmr.com - We Don't Assume You Are Stupid. Xen-Powered Virtual Private Servers: http://prgmr.com/xen ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: How can this 'top' command output make sense? Load over 7 and total CPU use ~5%
On Sun, 24 May 2009 12:02:41 -0700, Michael David Crawford wrote: > Mac-Pro has good prices on used Mac laptops. A G4 PowerBook is $500 to > $650 depending on what kind of burner is installed. > > http://www.mac-pro.com/s.nl/sc.2/category.66/.f Hmmm... I still think about reviving my iBook G4, maybe it gives a good Netbook-lookalike. :-) > I was just now looking into ARM netbooks. I think there's only one > actual shipping model so far, but ARM shows great promise because ARM > CPUs use very little power. I expect there will be lots of them by the > end of the year. Thre has been an interesting article on OSNews lately: http://www.osnews.com/story/21530/The_Loongson-2_MIPS_Lemote_Yeeloong_Netbook Maybe this is interesting, too. > Is there a FreeBSD ARM port? There's not one for 7.2. I'm not aware of one, but I think NetBSD has it. But finally, NetBSD isn't FreeBSD. :-) -- 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 "freebsd-questions-unsubscr...@freebsd.org"
Re: How can this 'top' command output make sense? Load over 7 and total CPU use ~5%
This guy advises buying an old G4 Mac laptop to use as a netbook: http://lowendmac.com/ed/herlihy/09ph/ibook-netbook.html While Apple might be planning to stop supporting PowerPC, one could run FreeBSD on it. Mac-Pro has good prices on used Mac laptops. A G4 PowerBook is $500 to $650 depending on what kind of burner is installed. http://www.mac-pro.com/s.nl/sc.2/category.66/.f I was just now looking into ARM netbooks. I think there's only one actual shipping model so far, but ARM shows great promise because ARM CPUs use very little power. I expect there will be lots of them by the end of the year. Is there a FreeBSD ARM port? There's not one for 7.2. Mike -- Michael David Crawford m...@prgmr.com prgmr.com - We Don't Assume You Are Stupid. Xen-Powered Virtual Private Servers: http://prgmr.com/xen ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: How can this 'top' command output make sense? Load over 7 and total CPU use ~5%
From the glossary (p. 630) of _The_Design_and_Implementation_of_the _FreeBSD_Operating_System_ by McKusick and Neville-Neil: load average A measure of CPU load on the system. The load average in FreeBSD is an average of the number of processes ready to run or waiting for short-term events such as disk I/O to complete, as sampled once per second over the previous one- minute interval of system operation. so this glossary should be fixed because it's nonsense. first - says that it's measure of CPU load then - "or waiting for short-term events such as disk I/O" - which is NOT measure of CPU load. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: netbooks vs FreeBSD
Koichiro IWAO escribió: The integrated video chip Intel GMA 500 is not a original Intel product. So X11 does not work with Intel driver and the driver is still unavailable. VESA is the only available driver. If you want use X11, do not forget to choose Atom N series. Uh, thanks a lot, I almost chose the 751h model, but now I decided to take the 531. It comes with Intel 945GM. -- Gabor Kovesdan FreeBSD Volunteer EMAIL: ga...@freebsd.org .:|:. ga...@kovesdan.org WEB: http://people.FreeBSD.org/~gabor .:|:. http://kovesdan.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: netbooks vs FreeBSD
Hi. Gabor Kovesdan : Hello, I'm about to buy a netbook, which: - is compatible with FreeBSD (wifi is especially important) - has a good battery life (at least 4 hours) - has a normal HDD not an SSD I don't know about that you are going to buy, but I have Dell Inspiron mini 12. One of the big problem with FreeBSD is the video Driver. Most of netbooks have Intel Atom Z series CPU. Atom Z series have integrated chipset and video chip. The integrated video chip Intel GMA 500 is not a original Intel product. So X11 does not work with Intel driver and the driver is still unavailable. VESA is the only available driver. If you want use X11, do not forget to choose Atom N series. -- Iwao, Koichiro ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: netbooks vs FreeBSD
El día Sunday, May 24, 2009 a las 04:56:11PM +0200, Polytropon escribió: > On Sun, 24 May 2009 15:52:29 +0200, Matthias Apitz wrote: > > I have a real netbook, an EeePC 900 with 20 GByte SSD, Wifi, 1024x600 9" > > display and an attached USB Huawei E220 dongel for UMTS. I have > > installed 8-CURRENT and all works as it should, only the inbuild cam is > > not supported, but I don't neet this at the moment (maybe later when Skype > > for FreeBSD can do video as well). > > I would tend to buy one myself in the future, especially for > LAN and WLAN diagnostics (at the customer's site). I like the > concept of the SSD in opposite to a "moving parts" classical > hard disk. Size and battery life are okay (for what they are > intended for), and I think older models of the EeePC will > get a bit cheaper over the time. I'm very greedy, so I mostly > think: "Do I REALLY need this - and spend money on it?" :-) I'm using mine one for reading books in Spanish and writing private stuff; I have a Spanish dictionary on it and an offline version of the Spanish Wikipedia. As well I use it to connect to Internet when I'm sitting in a beer garden to access things I wanna read. It is a netbook per definition. And really cool. The battery (6600 mAh) gives me around 4.5 hours autonomy, but often I find a point with power. > There is a nice description about how to install FreeBSD on > this device at http://www.unixarea.de/installEeePC.txt - and > I can't wait to try this out. But I'm sure I would not want > to run KDE or Gnome on this thing... why? it just runs fast on it; The above description is still on RELENG_7 level, I will update it soon for CURRENT which is I run now. > > Of course, it would be nice to have access to the camera (at > least you paid for it), be it by Skype or simply by mencoder. > Maybe it will be supported in the future. > > By the way, can you tell me how expensive (approx.) is the > UMTS dongle, and how much is using it? (I'm curious, and > since you're from a .de domain, your answer should apply > to me, too.) I have a flat rate SIM and PCMCIA card from the company I'm working for. And bought the UMTS dongle for my private usage in eBay for around 35 euro, I think. I'm using it nearly every evening. > -- > Polytropon > >From Magdeburg, Germany I lived in Westeregeln and went to school in Egeln :-) > Happy FreeBSD user since 4.0 happy since 2.2.5 (around 1997, I think). matthias -- Matthias Apitz t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.unixarea.de/ People who hate Microsoft Windows use Linux but people who love UNIX use FreeBSD. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Win4BSD 1.1 on 7.1
On Sun, 24 May 2009 06:47:17 -0400, Glen Barber wrote: > On Sat, May 23, 2009 at 11:29 PM, Fbsd1 wrote: > > There is no package for win4bsd on the pkg ftp servers for releases 7.0, > > 7.1, 7.2, or 8.0. > > Looks like the release build team has been missed this one for some time > > now. > > They did not miss it. The port is marked as RESTRICTED because > redistribution is prohibited. Okay, but then, compiling through the port should be okay. In order to save some time, it could be possible to pkg_add -r the dependencies first, then run the "make install clean" command in win4bsd's directory. As I said, dry assumption - I haven't tried it. -- 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 "freebsd-questions-unsubscr...@freebsd.org"
Re: netbooks vs FreeBSD
On Sun, 24 May 2009 15:52:29 +0200, Matthias Apitz wrote: > I have a real netbook, an EeePC 900 with 20 GByte SSD, Wifi, 1024x600 9" > display and an attached USB Huawei E220 dongel for UMTS. I have > installed 8-CURRENT and all works as it should, only the inbuild cam is > not supported, but I don't neet this at the moment (maybe later when Skype > for FreeBSD can do video as well). I would tend to buy one myself in the future, especially for LAN and WLAN diagnostics (at the customer's site). I like the concept of the SSD in opposite to a "moving parts" classical hard disk. Size and battery life are okay (for what they are intended for), and I think older models of the EeePC will get a bit cheaper over the time. I'm very greedy, so I mostly think: "Do I REALLY need this - and spend money on it?" :-) There is a nice description about how to install FreeBSD on this device at http://www.unixarea.de/installEeePC.txt - and I can't wait to try this out. But I'm sure I would not want to run KDE or Gnome on this thing... Of course, it would be nice to have access to the camera (at least you paid for it), be it by Skype or simply by mencoder. Maybe it will be supported in the future. By the way, can you tell me how expensive (approx.) is the UMTS dongle, and how much is using it? (I'm curious, and since you're from a .de domain, your answer should apply to me, too.) -- 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 "freebsd-questions-unsubscr...@freebsd.org"
Re: Canon printer and TurboPrint
On Sat, 23 May 2009 09:10:53 -0700 (PDT) "kristian.tenorio" wrote: > >Well, you have a Canon iP8500. I guess I can really help you. >I have tried TurboPrint on FreeBSD and it works. Here is what I did: > >0) I installed the Fedora linux compat package from my FreeBSD discs >1) I enabled the linux compatibility by adding as root the following >line to /etc/rc.conf >linux_enable="YES" >2) I installed bash and symlinked it to /bin by running as root >cd /bin ; ln -s `which bash` >3) I installed ghostscript, you probably have it installed already >4) I mounted as root the linprocfs by running >mount -t linprocfs linprocfs /compat/linux/proc >5) I downloaded the .tgz Turboprint file, copied it to my home and >untarred it using >tar xzf MYTURBOPRINTFILE >where MYTURBOPRINTFILE is the name of the file you downloaded ending >in .tgz 6) I changed to the new folder and ran as root this, following >the on-screen instructions >brandelf -t 'Linux' setup >./setup >~~~TURBOPRINT SETUP PROGRAM: SOME QUESTIONS AND STUFF ON THE SCREEN >cd /compat/linux/usr/bin >ls t* >7) With this last command you see some new programs installed from the >Turboprint setup like >tpprint, turboprint, etc. You simply change its brand, as root of >course by running on each of them >brandelf -t 'Linux' TURBOPRINT-BINARY >where TURBOPRINT-BINARY is the name of each executable file you think >is Turboprint's. >8) Now is time to do the script. Enter your text editor on your >session, copy the following >script AS IS and save it as tpr on your home directory. Notice the P= >and D= fields. > >#!/bin/bash >F=/compat/linux/usr/bin/tpprint >P=Canon_PIXMA_iP8500 >D=/dev/ulpt0 >if [ $1 ]; then S=$1 ; else S=- ; fi >gs -sDEVICE=pcx24b -dBATCH -dNOPAUSE -dTextAlphaBits=4 >-dGraphicsAlphaBits=2 \ >-dMaxBitmap=1000 -sOutputFile=$HOME/tpr.pcx $S >$F -d$P $HOME/tpr.pcx $HOME/tpr.job ; rm $HOME/tpr.pcx >cat $HOME/tpr.job >$D ; rm $HOME/tpr.job > >9) Make it executable and copy it to /usr/local/bin as root, something >like cd /home/YOUR_USERNAME >chmod 555 tpr >cp tpr /usr/local/bin > >Now, it is installed. When you want to print follow these steps. >Remember, you have to do this every time you turn your printer on. > >1) Turn on your printer >2) Run the following command as root >chmod 666 /dev/ulpt0 >This will allow every user in the system print. >3) Go to the File menu in your app and select Print as you'd always do >4) If it is KDE, click Advanced Options and select (generic) from the >menu. If it's not KDE look for printing through a command. The idea >here is to print using a command. >5) Look for the command field and type tpr >6) Click OK or whatever else in your program and it will print your job > >You can print also a PDF or PostScript file on your terminal (it all) >by running >tpr FILENAME > >It works on whatever printer. If you have another printer simply >change the P= field in the script. >For instance, I have it P=Canon_i250 since I have a Canon i250 USB >printer installed at home. >If it doesn't work maybe the device is wrong. If the /dev/ulpt0 >doesn't work, try /dev/unlpt0 if USB, >or /dev/lpt0 for Parallel's. That is set in the D= field. /dev/ulpt0 >should work for USB Printers. > >Send me an email. I really want to know whether it does work for you >or not. >Here it is, kristian.teno...@gmail.com > > >Chandan Haldar wrote: >> >> Couldn't fix it with the time I could spend... so still saving >> printouts for >> Windoz. :-( I know, I know, it's a shame... >> >> On 12/8/06, a...@zeos.net wrote: >>> >>> On Thu, Jun 29, 2006 at 08:59:51PM +0530, Chandan Haldar wrote: >>> > I'm searching for ways to print on a Canon PIXMA IP8500 >>> > from FreeBSD 6.0 Release. >>> > >>> > Has anyone tried to make the linux driver for PIXUS IP 8600 >>> > from canon.jp work for the PIXMA IP 8500 on FreeBSD? >>> > >>> > Has anyone tried the TurboPrint linux driver on FreeBSD? >>> > I need it bad enough to even buy this Euro 30 driver if >>> > it works on FreeBSD. >>> > >>> > It's incredibly annoying to have to boot Win just to print >>> > :-(. >>> > >>> > Chandan >>> >>> How do you print on your Canon PIXMA? >>> I have a Canon PIXMA iP 2000 and the same problem. >>> >>> Elisej Babenko Seriously, before I spent all that time and trouble, I would just use a Windows PC. Then again, that is just my 2¢. -- Jerry ges...@yahoo.com A friend of mine won't get a divorce, because he hates lawyers more than he hates his wife. signature.asc Description: PGP signature
Re: netbooks vs FreeBSD
El día Sunday, May 24, 2009 a las 03:43:53PM +0200, Gabor Kovesdan escribió: > Alexandre "Sunny" Kovalenko escribió: > >I did not run FreeBSD on it, so I apologize for slight OT, but my wife's > >Samsung NC10 (2.8 lbs, 10.2" screen, 160GB 5400RPM HDD) is pushing 6 > >hours of the battery life with the wireless on and memory upgraded to > >2GB. This is under Windows XP HOME ULCPC though. > > > >Wireless card (as reported by Windows) is Atheros AR5007EG, so you might > >need to ask around whether it is supported by ath driver. > > > Thanks, that Samsung model seems pretty nice, as well, but it's > significantly more expensive in Hungary than the Aspire ONE, while the > specs are mainly the same. So I think I'll go for the Acer netbook if > someone doesn't convince me quickly not to do so... I have a real netbook, an EeePC 900 with 20 GByte SSD, Wifi, 1024x600 9" display and an attached USB Huawei E220 dongel for UMTS. I have installed 8-CURRENT and all works as it should, only the inbuild cam is not supported, but I don't neet this at the moment (maybe later when Skype for FreeBSD can do video as well). matthias -- Matthias Apitz t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.unixarea.de/ People who hate Microsoft Windows use Linux but people who love UNIX use FreeBSD. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: silly Q: any script running before make install /w ports ?
Robert Joosten wrote: > Hi, > > I have a standard umask of 0077 on a box. > > I grabbed irssi from ports, but he doesn't connect to any irc server... > running it as root will. Now I suspect that umask setting of mine. Why not leave it at 022? > That leaves me with a silly question: is there any script running before I > enter 'make install' ? I cannot find it in the dev. section of the > handbook about creating ports. > This is a non sequitur. -Mike ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: netbooks vs FreeBSD
Alexandre "Sunny" Kovalenko escribió: I did not run FreeBSD on it, so I apologize for slight OT, but my wife's Samsung NC10 (2.8 lbs, 10.2" screen, 160GB 5400RPM HDD) is pushing 6 hours of the battery life with the wireless on and memory upgraded to 2GB. This is under Windows XP HOME ULCPC though. Wireless card (as reported by Windows) is Atheros AR5007EG, so you might need to ask around whether it is supported by ath driver. Thanks, that Samsung model seems pretty nice, as well, but it's significantly more expensive in Hungary than the Aspire ONE, while the specs are mainly the same. So I think I'll go for the Acer netbook if someone doesn't convince me quickly not to do so... -- Gabor Kovesdan FreeBSD Volunteer EMAIL: ga...@freebsd.org .:|:. ga...@kovesdan.org WEB: http://people.FreeBSD.org/~gabor .:|:. http://kovesdan.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: netbooks vs FreeBSD
Wojciech Puchar escribió: I'm about to buy a netbook, which: - is compatible with FreeBSD (wifi is especially important) - has a good battery life (at least 4 hours) - has a normal HDD not an SSD point 2 and 3 is somehow incompatible - HDD takes more power. anyway in order of few watts, compared to CPUs taking 20-50W, excluding those really "mobile". so >4 hours on battery&HDD seems possible. Yes, but buying anything is always about compromises. Recent HDD models are pretty good and I don't need the most hi-end model with an extreme battery life, just a reasonable uptime with HDD. I think I'll go for the Acer Aspire ONE. I haven't got comments from these lists about that model in particular but I googled a bit and it seems mostly everything works with it. -- Gabor Kovesdan FreeBSD Volunteer EMAIL: ga...@freebsd.org .:|:. ga...@kovesdan.org WEB: http://people.FreeBSD.org/~gabor .:|:. http://kovesdan.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: How can this 'top' command output make sense? Load over 7 and total CPU use ~5%
On Sun, 24 May 2009 11:57:08 +0200 (CEST) Wojciech Puchar wrote without proper attribution: >> Look below: load over 7 and no processes take much CPU. > >load average is NOT sum of CPU loads. > >for example program reading constantly from HDD and using no CPU will add >1 to load average. > >other things like net I/O etc. are calculated too. i can't explain you >exactly how because i don't know precisely. > >but load average is total load not just CPU load > From the glossary (p. 630) of _The_Design_and_Implementation_of_the _FreeBSD_Operating_System_ by McKusick and Neville-Neil: load average A measure of CPU load on the system. The load average in FreeBSD is an average of the number of processes ready to run or waiting for short-term events such as disk I/O to complete, as sampled once per second over the previous one- minute interval of system operation. In the same volume in the discussion of "Calculations of Thread Priority" by the 4.4 BSD scheduler (p. 101), it says, "... the *load* is a sampled average of the sum of the lengths of the run queue and of the short-term sleep queue over the previous 1-minute interval of system operation." Seems pretty straightforward to me. Scott Bennett, Comm. ASMELG, CFIAG ** * Internet: bennett at cs.niu.edu * ** * "A well regulated and disciplined militia, is at all times a good * * objection to the introduction of that bane of all free governments * * -- a standing army." * *-- Gov. John Hancock, New York Journal, 28 January 1790 * ** ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: silly Q: any script running before make install /w ports ?
Hi, > IRC-ing as root is a bad idea. Yeah, I know. But I really had to doublecheck. > As a normal user, does irssi start? It does start, but it's unable to connect. > If not, what are the errors? 14:59 -!- Irssi: Looking up irc.xs4all.nl 14:59 -!- Irssi: Connecting to irc.xs4all.nl [194.109.129.219] port 6667 14:59 -!- Irssi: Unable to connect server irc.xs4all.nl port 6667 [Can't assign requested address: 213.161.196.11] part of the ktrace 79841 irssiRET gettimeofday 0 79841 irssiCALL gettimeofday(0xbfbfe028,0) 79841 irssiRET gettimeofday 0 79841 irssiCALL gettimeofday(0xbfbfdfa8,0) 79841 irssiRET gettimeofday 0 79841 irssiCALL gettimeofday(0xbfbfdf48,0) 79841 irssiRET gettimeofday 0 79841 irssiCALL gettimeofday(0xbfbfe088,0) 79841 irssiRET gettimeofday 0 79841 irssiCALL socket(PF_INET,SOCK_STREAM,IPPROTO_IP) 79841 irssiRET socket 4 79841 irssiCALL fcntl(0x4,F_SETFL,O_NONBLOCK) 79841 irssiRET fcntl 0 79841 irssiCALL setsockopt(0x4,SOL_SOCKET,SO_REUSEADDR,0xbfbfe558,0x4) 79841 irssiRET setsockopt 0 79841 irssiCALL setsockopt(0x4,SOL_SOCKET,SO_KEEPALIVE,0xbfbfe558,0x4) 79841 irssiRET setsockopt 0 79841 irssiCALL bind(0x4,0xbfbfe53c,0x10) 79841 irssiSTRU struct sockaddr { AF_INET, 213.161.196.11:0 } 79841 irssiRET bind -1 errno 49 Can't assign requested address 79841 irssiCALL close(0x4) 79841 irssiRET close 0 > I'm not clear what you're asking here. setting umask 022 just before make install Regards, Robert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: silly Q: any script running before make install /w ports ?
Hi, Robert On Sun, May 24, 2009 at 8:31 AM, Robert Joosten wrote: > Hi, > > I have a standard umask of 0077 on a box. > > I grabbed irssi from ports, but he doesn't connect to any irc server... > running it as root will. Now I suspect that umask setting of mine. > IRC-ing as root is a bad idea. As a normal user, does irssi start? If not, what are the errors? > That leaves me with a silly question: is there any script running before I > enter 'make install' ? I cannot find it in the dev. section of the > handbook about creating ports. > I'm not clear what you're asking here. -- Glen Barber ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
silly Q: any script running before make install /w ports ?
Hi, I have a standard umask of 0077 on a box. I grabbed irssi from ports, but he doesn't connect to any irc server... running it as root will. Now I suspect that umask setting of mine. That leaves me with a silly question: is there any script running before I enter 'make install' ? I cannot find it in the dev. section of the handbook about creating ports. Regards, Robert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Win4BSD 1.1 on 7.1
On Sat, May 23, 2009 at 11:29 PM, Fbsd1 wrote: > > > There is no package for win4bsd on the pkg ftp servers for releases 7.0, > 7.1, 7.2, or 8.0. > Looks like the release build team has been missed this one for some time > now. > They did not miss it. The port is marked as RESTRICTED because redistribution is prohibited. -- Glen Barber ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: pkgdb -F problem
Tim Judd skrev: On Thu, May 21, 2009 at 10:20 AM, Frederique Rijsdijk < frederi...@isafeelin.org> wrote: Leslie Jensen wrote: I've just updated my 7.1-RELEASE to 7.2-RELEASE using freebsd-update. Everything went ok but I've got a problem when I do pkgdb -F /libexec/ld-elf.so.1: /usr/lib/libcrypt.so.4: unsupported file layout I might have goofed before I updated when moving files around to make space, so I need some advice on how to get rid of the error. I cannot find out what port I need to reinstall in order to get libcrypt healty again :-) Probably everything related to portupgrade/portinstall/ruby etc. -- Frederique My 7.1R-p4 system doesn't have a /usr/lib/libcrypt.so.4 it has a /lib/libcrypt.so.4 though so if you're "moving stuff around" -- and it's in the wrong directory, maybe that's why? In either case, libcrypt.so.4 is part of world, so you'd have to rebuild that piece if relocating the file itself doesn't fix it. And if you move libraries around, you need to update the linker helper file. ldconfig(8) Good luck. Hello again. I've some digging work and probaly there's something with compiling C programs that is not working as it should. I've one port that I was not able to upgrade so I tried to deinstall but it won't reinstall. I've included the /usr/ports/x11/kdelibs3/work/kdelibs-3.5.10/config.log Any hints are greatly appreciated :-) /Leslie -- snip - checking for gawk... gawk checking whether gmake sets $(MAKE)... yes checking for a BSD-compatible install... /usr/bin/install -c -o root -g wheel checking for style of include used by gmake... GNU checking for gcc... cc checking for C compiler default output file name... a.out checking whether the C compiler works... configure: error: cannot run C compiled programs. If you meant to cross compile, use `--host'. See `config.log' for more details. ===> Script "configure" failed unexpectedly. Please report the problem to k...@freebsd.org [maintainer] and attach the "/usr/ports/x11/kdelibs3/work/kdelibs-3.5.10/config.log" including the output of the failure of your make command. Also, it might be a good idea to provide an overview of all packages installed on your system (e.g. an `ls /var/db/pkg`). *** Error code 1 - snip --- /usr/ports/x11/kdelibs3/work/kdelibs-3.5.10/config.log - snip --- This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by configure, which was generated by GNU Autoconf 2.61. Invocation command line was $ ./configure --disable-ltdl-install --disable-as-needed --enable-mt --x-libraries=/usr/local/lib --x-includes=/usr/local/include --with-libthai=yes --with-lua=no --with-ssl-dir=/usr --disable-debug --with-xinerama --with-qt-includes=/usr/local/include --with-qt-libraries=/usr/local/lib --with-extra-libs=/usr/local/lib --with-extra-includes=/usr/local/include --prefix=/usr/local --mandir=/usr/local/man --infodir=/usr/local/info/ --build=i386-portbld-freebsd7.2 ## - ## ## Platform. ## ## - ## hostname = blj01.no-ip.org uname -m = i386 uname -r = 7.2-RELEASE uname -s = FreeBSD uname -v = FreeBSD 7.2-RELEASE #0: Fri May 1 08:49:13 UTC 2009 r...@walker.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC /usr/bin/uname -p = i386 /bin/uname -X = unknown /bin/arch = unknown /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown /usr/bin/hostinfo = unknown /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown PATH: /sbin PATH: /bin PATH: /usr/sbin PATH: /usr/bin PATH: /usr/lib PATH: /usr/games PATH: /usr/local/sbin PATH: /usr/local/bin PATH: /usr/X11R6/bin PATH: /root/bin ## --- ## ## Core tests. ## ## --- ## configure:2385: checking build system type configure:2403: result: i386-portbld-freebsd7.2 configure:2425: checking host system type configure:2440: result: i386-portbld-freebsd7.2 configure:2462: checking target system type configure:2477: result: i386-portbld-freebsd7.2 configure:2539: checking for a BSD-compatible install configure:2595: result: /usr/bin/install -c -o root -g wheel configure:2634: checking whether build environment is sane configure:2677: result: yes configure:2692: checking for a thread-safe mkdir -p configure:2731: result: /usr/local/bin/gmkdir -p configure:2744: checking for gawk configure:2760: found /usr/local/bin/gawk configure:2771: result: gawk configure:2782: checking whether gmake sets $(MAKE) configure:2803: result: yes configure:3004: checking for a BSD-compatible install configure:3060: result: /usr/bin/install -c -o root -g wheel configure:3086: checking for style of include used by gmake configure:3114: result: GNU configure:3261: checking for gcc configure:3288: result: cc configure:3526: checking for C compiler version configure:3533: cc --
Re: How can this 'top' command output make sense? Load over 7 and total CPU use ~5%
Look below: load over 7 and no processes take much CPU. load average is NOT sum of CPU loads. for example program reading constantly from HDD and using no CPU will add 1 to load average. other things like net I/O etc. are calculated too. i can't explain you exactly how because i don't know precisely. but load average is total load not just CPU load Yuri 7.2-PRERELEASE, 32-bit on i7-920. last pid: 93192; load averages: 7.68, 6.27, 4.61 up 2+03:11:29 20:25:24 204 processes: 9 running, 193 sleeping, 1 stopped, 1 zombie CPU: 5.3% user, 0.0% nice, 0.0% system, 0.0% interrupt, 94.7% idle Mem: 867M Active, 1684M Inact, 279M Wired, 65M Cache, 112M Buf, 92M Free Swap: 16G Total, 142M Used, 16G Free PID USERNAMETHR PRI NICE SIZERES STATE C TIME WCPU COMMAND 60032 yuri 1 460 285M 183M select 0 41:15 0.59% Xorg 60400 yuri 1 40 12576K 9144K kqread 4 29:44 0.00% wineserver 92982 yuri 1 440 53012K 16800K CPU3 3 18:50 0.00% kdeinit4 92986 yuri 1 440 53012K 16800K CPU7 7 18:48 0.00% kdeinit4 92988 yuri 1 1070 53012K 16840K CPU6 6 17:22 0.00% kdeinit4 60104 yuri 1 440 132M 45860K select 0 16:58 0.00% kwin 92984 yuri 1 1170 53012K 16800K RUN5 14:56 0.00% kdeinit4 60096 yuri 1 440 89732K 30040K select 4 10:10 0.00% kded4 93141 yuri 1 530 53012K 16800K CPU5 5 3:52 0.00% kdeinit4 93139 yuri 1 440 53012K 16800K CPU1 1 3:30 0.00% kdeinit4 60174 yuri 1 440 3168K 1400K select 0 1:28 0.00% ksysguardd 450 root 1 40 3128K 800K select 4 0:44 0.00% dhclient 1131 messagebus1 40 3344K 1384K select 4 0:40 0.00% dbus-daemon ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: How can this 'top' command output make sense? Load over 7 and total CPU use ~5%
On Sun, May 24, 2009 at 5:07 AM, Matthew Seaman wrote: >> >> I thought, if it was a dual-core for example, a load average of 1.00 >> would indicate 50% CPU utilization overall (1 process using only 1 >> core)[1]. 2.00 on a dual-core would be 100%, 3.00 on a dual-core >> would be 100% utilization, and always 1 process in the wait queue, and >> so on. > > It seems both ways have been used in different OSes, which is confusing. > A quick test of a single threaded process that will spin one CPU on a > multi-core FreeBSD box shows the value is /not/ scaled by the number of > cores. > Meaning a load average of 1.00 on a single-core versus dual-core means the same thing? I can't tell if you said what I said (or meant) with different wording, or if you said the opposite. :-) > Which means that the LA the OP was talking about is actually a lot less > alarming > than it originally appears. It's clear from the top output that his machine > has at least 8 cores, so a LA of 7 is really not very heavily loaded. > So in this situation, he has 1 core idle all of the time, correct? >> >> Does this affect the load average though? My understanding was that >> if the CPU cannot immediately process data, the data gets put into the >> wait queue until L2 Cache (then RAM, etc, etc) returns the data to be >> processed. > > Yes it does: when a process is on the CPU and blocked waiting for IO > it does not necessarily yield the CPU to another process. It depends on > timescales -- obviously if the CPU will have to wait milliseconds for data > it makes no sense to block other processes. Waiting a few microseconds is > a different matter though: it might take that long to load up L2/L3 cache > with that processes' working data, so yielding the CPU for that sort of > delay > would mean the process never got run, which is counter productive... It > helps if the working set is already in the L3 cache -- so having the correct > amount[*] of cache RAM available is an important design criterion. Makes sense. -- Glen Barber ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: How can this 'top' command output make sense? Load over 7 and total CPU use ~5%
Glen Barber wrote: Hi, Matthew On Sun, May 24, 2009 at 3:46 AM, Matthew Seaman wrote: Yuri wrote: [snip] Sure. This is not an uncommon occurrence really. The load average is the number of processes in the queue for a CPU time slice averaged over 5, 10 or 15 minutes. For multi-core systems the LA is scaled by the number of cores so a LA of 1.0 means all cores have active processes pretty much continually. I thought, if it was a dual-core for example, a load average of 1.00 would indicate 50% CPU utilization overall (1 process using only 1 core)[1]. 2.00 on a dual-core would be 100%, 3.00 on a dual-core would be 100% utilization, and always 1 process in the wait queue, and so on. It seems both ways have been used in different OSes, which is confusing. A quick test of a single threaded process that will spin one CPU on a multi-core FreeBSD box shows the value is /not/ scaled by the number of cores. Which means that the LA the OP was talking about is actually a lot less alarming than it originally appears. It's clear from the top output that his machine has at least 8 cores, so a LA of 7 is really not very heavily loaded. Now, you might think that an active process will take the CPU utilisation to 100%, but that is not necessarily so. Some numerical applications can do that, but purely CPU bound processes are relatively uncommon in everyday usage. In actuality what happens is that the processor will need to retrieve data from somewhere to operate on. There's a hierarchy of data stores of various speeds (latency, rather than bandwidth): L1 Cache > L2 Cache > L3 Cache > Main RAM > Disk > Network Does this affect the load average though? My understanding was that if the CPU cannot immediately process data, the data gets put into the wait queue until L2 Cache (then RAM, etc, etc) returns the data to be processed. Yes it does: when a process is on the CPU and blocked waiting for IO it does not necessarily yield the CPU to another process. It depends on timescales -- obviously if the CPU will have to wait milliseconds for data it makes no sense to block other processes. Waiting a few microseconds is a different matter though: it might take that long to load up L2/L3 cache with that processes' working data, so yielding the CPU for that sort of delay would mean the process never got run, which is counter productive... It helps if the working set is already in the L3 cache -- so having the correct amount[*] of cache RAM available is an important design criterion. It's something that Intel was shown to have got wrong with some of the Pentium series chips when a low powered Pentium M designed for mobile use smoked a much higher clock speed Pentium chip designed for all-out server use simply because it had about 4x as much cache. Cheers, Matthew [*] ie. as much as possible. -- 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: How can this 'top' command output make sense? Load over 7 and total CPU use ~5%
Hi, Matthew On Sun, May 24, 2009 at 3:46 AM, Matthew Seaman wrote: > Yuri wrote: [snip] > > Sure. This is not an uncommon occurrence really. The load average is > the number of processes in the queue for a CPU time slice averaged over > 5, 10 or 15 minutes. For multi-core systems the LA is scaled by the number > of cores so a LA of 1.0 means all cores have active processes pretty much > continually. > I thought, if it was a dual-core for example, a load average of 1.00 would indicate 50% CPU utilization overall (1 process using only 1 core)[1]. 2.00 on a dual-core would be 100%, 3.00 on a dual-core would be 100% utilization, and always 1 process in the wait queue, and so on. > Now, you might think that an active process will take the CPU utilisation > to 100%, but that is not necessarily so. Some numerical applications can > do that, but purely CPU bound processes are relatively uncommon in everyday > usage. In actuality what happens is that the processor will need to > retrieve > data from somewhere to operate on. There's a hierarchy of data stores of > various speeds (latency, rather than bandwidth): > > L1 Cache > L2 Cache > L3 Cache > Main RAM > Disk > Network > Does this affect the load average though? My understanding was that if the CPU cannot immediately process data, the data gets put into the wait queue until L2 Cache (then RAM, etc, etc) returns the data to be processed. [1] - http://www.teamquest.com/resources/gunther/display/5/ (not necessarily a reputable source I suppose, but explains it well...) -- Glen Barber 570.328.0318 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: How can this 'top' command output make sense? Load over 7 and total CPU use ~5%
Yuri wrote: Look below: load over 7 and no processes take much CPU. Yuri 7.2-PRERELEASE, 32-bit on i7-920. last pid: 93192; load averages: 7.68, 6.27, 4.61 up 2+03:11:29 20:25:24 204 processes: 9 running, 193 sleeping, 1 stopped, 1 zombie CPU: 5.3% user, 0.0% nice, 0.0% system, 0.0% interrupt, 94.7% idle Mem: 867M Active, 1684M Inact, 279M Wired, 65M Cache, 112M Buf, 92M Free Swap: 16G Total, 142M Used, 16G Free PID USERNAMETHR PRI NICE SIZERES STATE C TIME WCPU COMMAND 60032 yuri 1 460 285M 183M select 0 41:15 0.59% Xorg 60400 yuri 1 40 12576K 9144K kqread 4 29:44 0.00% wineserver 92982 yuri 1 440 53012K 16800K CPU3 3 18:50 0.00% kdeinit4 92986 yuri 1 440 53012K 16800K CPU7 7 18:48 0.00% kdeinit4 92988 yuri 1 1070 53012K 16840K CPU6 6 17:22 0.00% kdeinit4 60104 yuri 1 440 132M 45860K select 0 16:58 0.00% kwin 92984 yuri 1 1170 53012K 16800K RUN5 14:56 0.00% kdeinit4 60096 yuri 1 440 89732K 30040K select 4 10:10 0.00% kded4 93141 yuri 1 530 53012K 16800K CPU5 5 3:52 0.00% kdeinit4 93139 yuri 1 440 53012K 16800K CPU1 1 3:30 0.00% kdeinit4 60174 yuri 1 440 3168K 1400K select 0 1:28 0.00% ksysguardd 450 root 1 40 3128K 800K select 4 0:44 0.00% dhclient 1131 messagebus1 40 3344K 1384K select 4 0:40 0.00% dbus-daemon Sure. This is not an uncommon occurrence really. The load average is the number of processes in the queue for a CPU time slice averaged over 5, 10 or 15 minutes. For multi-core systems the LA is scaled by the number of cores so a LA of 1.0 means all cores have active processes pretty much continually. Now, you might think that an active process will take the CPU utilisation to 100%, but that is not necessarily so. Some numerical applications can do that, but purely CPU bound processes are relatively uncommon in everyday usage. In actuality what happens is that the processor will need to retrieve data from somewhere to operate on. There's a hierarchy of data stores of various speeds (latency, rather than bandwidth): L1 Cache > L2 Cache > L3 Cache > Main RAM > Disk > Network Where the L1 Cache is accessible in a few clock ticks (nanoseconds), Main RAM can take microseconds to access, disk can take milliseconds to access, and Network can take 10 -- 1000s of milliseconds. Or in other words, about 9 orders of magnitude difference. So when the data you need to process is too big to fit in the fastest caches, or when it comes from a particularly slow location or when you have a lot of active processes causing context switches, then the CPU core will be making frequent IO requests and spending time waiting for them to be fulfilled. Now, for sources like disks and network where the retrieval is much slower than the typical timescale of events on the CPU the process will yield the CPU to something else and only get a new timeslice once the IO request has been fulfilled. For an access to main RAM however that form of yielding is less likely. Consequently the CPU can end up waiting for 100s of clock cycles until it gets some bytes to process. In the mean time, other processes are also sitting in the queue wanting CPU time slices -- hence the high LA with low CPU utilization. Scheduling CPU timeslices to make maximum use of available resources is the difference between a really performant OS and a disaster. A good scheduler is the critical central piece of code around which the rest of an OS can be constructed. Combine that with the complexity of having multiple cores, and that threads of execution sometimes have to be moved to different cores, and on other occasions sometimes need to stick to the same core in order to make best use of resources and you will start to appreciate quite how hard it is to write a good scheduler. Unsurprisingly, the design of such things is a matter of fairly impassioned debate amongst the rarified circle of people capable of writing them. That sort of argument was the genesis of the FreeBSD / DragonflyBSD fork a few years back. You can rest assured though that FreeBSD certainly does have one of the very best schedulers currently available and it is specifically targeted at getting the best out of the sort of multicore CPUs available nowadays. 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