Re: how to get rid of a character, 0x80?
Gary Kline wrote: anybody know why getchar() doesn't see 0x80 == 0200? if getchar() is limited to 7-bit characters, what then? % od -c file shows me that every character fits into 8 bits, so getwchar() is the next thing. but doesn't getwchar grab wide-chars only: 16 bits? tia, guys, gary Hello, First of, this isn't really a BSD question. Second, if you have an example code we might be able to help. Presumably, you want to read a capital C with cedille? (0x80 128 Ç) Example from: http://www.cplusplus.com/reference/clibrary/cstdio/getchar/ compiled on FreeBSD 7.2 with gcc 4.2.1 output: Enter text. Include a dot ('.') in a sentence to exit: sfeo sfeo Çsdfa Çsdfa besides.. 0x80!=0200 it's 0200 octal which is 128 decimal... Might be why it doesn't work for you. Greetz, Mark signature.asc Description: OpenPGP digital signature
Re: me in ipfw rules - does it include aliases?
Tom Worster wrote: the ipfw man page says: me matches any IP address configured on an interface in the system. which suggests that if i code my rules using me then when i add an alias ip address to an interface with ifconfig, these me rules will immediately work for the newly added address as they do for other addresses. is that correct? Yes, the me keyword is expanded to whatever IP address is assigned on any interface in the system. It's updated whenever an IP address is added to or removed from an interface. Use the simple ruleset bellow to test it yourself: lab# ipfw list 00100 allow ip from me to me 65535 deny ip from any to any add alias ping alias = success remove alias ping alias = failure It's a really useful keyword, yet it's not panacea. When using it, one has to think the possibility of an attacker who uses me addresses. Use some interface checking as well in your ruleset... Nikos ___ 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: Is there such thing as a 'soft checksum' tool?
Mel Flynn mel.flynn+fbsd.questi...@mailing.thruhere.net wrote: On Monday 07 September 2009 05:09:53 Michael David Crawford wrote: M I'm looking for a pseudo-checksum tool for use with M cataloging images. One way you could approach it might be to use a blur filter ... Small differences in individual pixels would be blurred away. ... the above does not work, because of compression anyway. Just because you think of an image as a bitmap, does not mean it's stored as such. Certainly it is the decompressed payloads of the JPEG etc. files that are to be compared, rather than the files themselves. It would never have occurred to me that anyone participating in the discussion might have thought otherwise. However, thinking about this inquiry and JPEG in the same sentence has given me an idea that might help the OP: JPEG is a lossy compression, with the degree of loss related to the chosen image quality, so two similar images might become identical -- or at least more similar -- if compressed to a sufficiently low quality using the JPEG algorithm. ___ 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
policy-violation found in sent message
Attention: freebsd-questions@freebsd.org A policy-violation was found in an Email message you sent. This Email scanner intercepted it and stopped the entire message reaching its destination. The policy-violation was reported to be: SCR files not allowed per Company security policy Please contact your IT support personnel with any queries regarding this policy. Your message was sent with the following envelope: MAIL FROM: freebsd-questions@freebsd.org RCPT TO: gifav...@unsl.edu.ar ... and with the following headers: --- MAILFROM: freebsd-questions@freebsd.org RCPTTO: gifav...@unsl.edu.ar IP-Addr: 113.22.65.102 Received: from unknown (HELO freebsd.org) (113.22.65.102) by inter11.unsl.edu.ar with SMTP; 8 Sep 2009 04:21:44 -0400 From: freebsd-questions@freebsd.org To: gifav...@unsl.edu.ar Subject: Date: Tue, 8 Sep 2009 15:21:37 +0700 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary==_NextPart_000_0011_C7647978.0EBC1B21 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600. X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2600. --- ___ 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: Freebsd Built-in vacation program does not auto reply
Hi Andre, I use CFLAGS=-O2. Best regards, Alyd --- On Tue, 9/8/09, Andre Albsmeier andre.albsme...@siemens.com wrote: From: Andre Albsmeier andre.albsme...@siemens.com Subject: Re: Freebsd Built-in vacation program does not auto reply To: lyd mc alydi...@yahoo.com Cc: Andre Albsmeier andre.albsme...@siemens.com Date: Tuesday, September 8, 2009, 4:54 PM On Tue, 08-Sep-2009 at 01:49:18 -0700, lyd mc wrote: Hi Andre, Hi, WOW! Its working now! Great. What CFLAGS line have you got now? -O2 or nothing? Would you mind posting a short note to freebsd-questions regarding this? My intention is to make a bug report but people will probably laugh at me if I haven't at least another person to confirm this. -Andre Here is my logs... Sep 8 16:35:07 MAIL postfix/pickup[60602]: C6147BDC6D: uid=2003 from=tabor.nok Sep 8 16:35:07 MAIL postfix/cleanup[60710]: C6147BDC6D: message-id=20090908083507.c6147bd...@mail..com Sep 8 16:35:07 MAIL postfix/qmgr[60603]: C6147BDC6D: from=tabor@mail..com, size=347, nrcpt=1 (queue active) Sep 8 16:35:07 MAIL postfix/local[60712]: C6147BDC6D: to=alyd...@mail..com, orig_to=alyd.mc, relay=local, delay=0.03, delays=0.02/0.01/0/0, dsn=2.0.0, status=sent (delivered to maildir) Sep 8 16:35:07 MAIL postfix/pickup[60602]: D02A5BDC70: uid=1001 from=alyd.mc Sep 8 16:35:07 MAIL postfix/cleanup[60710]: D02A5BDC70: message-id=20090908083507.d02a5bd...@mail..com Postfix deliver to vacation Sep 8 16:35:07 MAIL postfix/local[60712]: C6147BDC6D: to=alyd...@mail..com, orig_to=alyd.mc, relay=local, delay=0.05, delays=0.02/0.01/0/0.02, dsn=2.0.0, status=sent (delivered to command: /usr/bin/vacation alyd.mc) Sep 8 16:35:07 MAIL postfix/qmgr[60603]: C6147BDC6D: removed vacation send back notification Sep 8 16:35:07 MAIL postfix/qmgr[60603]: D02A5BDC70: from=alyd...@mail..com, size=475, nrcpt=1 (queue active) Sep 8 16:35:07 MAIL postfix/local[60712]: D02A5BDC70: to=tabor@mail..com, relay=local, delay=0.01, delays=0/0/0/0, dsn=2.0.0, status=sent (delivered to maildir) Sep 8 16:35:07 MAIL postfix/qmgr[60603]: D02A5BDC70: removed Thank you very much! Alyd ___ 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: Is there such thing as a 'soft checksum' tool?
per...@pluto.rain.com wrote: Mel Flynn mel.flynn+fbsd.questi...@mailing.thruhere.net wrote: However, thinking about this inquiry and JPEG in the same sentence has given me an idea that might help the OP: JPEG is a lossy compression, with the degree of loss related to the chosen image quality, so two similar images might become identical -- or at least more similar -- if compressed to a sufficiently low quality using the JPEG algorithm. This seems to be an excellent idea. A similar approach can (successfully) be used to let a computer recognize songs through a micrOphone: the incoming signal is transformmed to MP3 at a rather low quality, which provides a sort of fingerprint of the input. The quality factors shall be adujsted adequately for this application: there is a tradeoff between stability (noise insensitivity) and separation to find. The case of images is much more complicated if one wishes to recognize the same image at two different scales. -- Cheers, Michaël ___ 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 to get rid of a character, 0x80?
Hi, Am Dienstag, 08. Sep 2009, 08:00:27 +0200 schrieb Mark Stapper: Gary Kline wrote: anybody know why getchar() doesn't see 0x80 == 0200? Presumably, you want to read a capital C with cedille? (0x80 128 Ç) \x80 is a nonbreakable space in iso8859-1/-15. (And a Euro sign in Windows-1252). Who uses cp437/cp850 on BSD? besides.. 0x80!=0200 $ ruby -e 'puts 0x80, 0200' 128 128 Bertram -- Bertram Scharpf Stuttgart, Deutschland/Germany http://www.bertram-scharpf.de ___ 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: is there a way of usinf greo to find 3 or 4 blank lines?
Gary Kline wrote: On Mon, Sep 07, 2009 at 08:06:51AM +0100, Mark Willson wrote: The following version should do what you want: BEGIN { ncnt = 0 prev = BOF } /^ *$/ { ncnt++; if (ncnt 3) { print Emphasis at NR : prev; prev = -multiple- ncnt = 0; } next; } {ncnt = 0; prev = $0} -mark It does! outstanding thanks again, gary Gary, No problem. Glad I could help. -mark ___ 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: Freebsd Built-in vacation program does not auto reply
On Fri, 04-Sep-2009 at 20:43:21 +0200, Andre Albsmeier wrote: On Thu, 16-Apr-2009 at 18:00:26 +, lyd mc wrote: Hi guys, Why Freebsd built-in vacation program (/usr/bin/vacation) does not auto reply? I am using fresh installed Freebsd7.0 and 7.1. here is my configs. Did you solve the problem already? I had a similar issue and tracked it down to a really strange compiler bug... In fact it's no compiler bug (I only discovered it by changing the compiler options) but a problem in vacation.c. -Andre ___ 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 to get rid of a character, 0x80?
Mark Stapper wrote: besides.. 0x80!=0200 it's 0200 octal which is 128 decimal... Might be why it doesn't work for you. Don't mess with his head. ;-) 0200 = 0x80 = 128 200 octal = 80 hex = 128 decimal -- --Jon Radel j...@radel.com smime.p7s Description: S/MIME Cryptographic Signature
Re: difficult-to-phrase question...
On Mon, 7 Sep 2009 18:34:15 -0700 Gary Kline kl...@thought.org wrote: On Tue, Sep 08, 2009 at 01:56:12AM +0100, RW wrote: Wouldn't you be better-off just turning-off session management, and using autostart instead sounds like a good idea; how do i accomplish this? The Session Manager in Control Center lets you turn it off, and you can drag application icons into ~/.kde/Autostart to have them autostart instead. also, what if i have a konqueror running and sites running and the power goes out. sometimes i want the apps to restart, not usually. is it possible to save Some programs state and let others go? The Session Manager lets you exempt applications, but I'm not sure if you can distinguish konqueror browsers from file managers though. In other browsers crash recovery works independently of session management, I think you probably do need it with konqueror but I'm not sure. ___ 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: What invokes cricket on FreeBSD
On Fri, Sep 04, 2009 at 05:04:19PM +0200, Mel Flynn wrote: On Friday 04 September 2009 16:28:07 stan wrote: On Thu, Sep 03, 2009 at 11:41:28PM +0200, Mel Flynn wrote: On Thursday 03 September 2009 22:23:47 stan wrote: On Thu, Sep 03, 2009 at 10:10:13PM +0200, Mel Flynn wrote: On Thursday 03 September 2009 21:02:41 stan wrote: pnoc# cat collect-subtrees #!/bin/sh echo STARTED /tmp/stan which perl /tmp/stan /usr/local/cricket/cricket/collect-subtrees.pl normal /tmp/stan echo Done /tmp/stan /tmp stan contains: pnoc# cat /tmp/stan STARTED /usr/bin/perl Done STARTED /usr/bin/perl Done So, cron is invoking the correct command, and perl can be found, but the original collect_subtrees perl script silently dies. I am convinced it's an environemt probkl`lem, I am just uncertain how to determine what. I'm not anymore. I'm putting 1 cent on a broken /usr/bin/perl symlink (perl upgrade gone bonkers, f.e. done with ro mounted /usr) and another cent on the perl script using system() function, with pathless commands (that is environment). Ok, one liner: su -m cricket env -i HOME=/usr/local/cricket PATH=/bin:/usr/bin \ /usr/local/cricket/cricket/collect-subtrees.pl normal I've downloaded the 1.0.5 version, but can't quickly see where that would go wrong with this script. touch is in /usr/bin, so that should work. Any cron messages in /var/mail/cricket? I am away from work today, and won't be back till Tuesday. I can't access this from home. I will try your test then. The only messages that are getting to /var/log/cron is just the one saying that the task was executed. Yea, the error messages end up in /var/mail/$USER or MAILTO variable if set in crontab. /var/log/maillog should have some tell tales. That turned out to be the information I needed to solve theproblem. I had told my contractor to put a .forward in every non user uer'es account (such as Cricket), and he had not done that. had he done that I would have gotten the needed inforamtion, when I first brought the system abck up. Turns out there was a lockfile, and Cricket was emailing me, asking me to remove it if it was satle :-( Removing it solved the mystery. Thanks for all the help, everyone!! Subtree normal is currently being processed. If this is a mistake, use rm /tmp/cricket-subtree-normal to unlock it. -- One of the main causes of the fall of the roman empire was that, lacking zero, they had no way to indicate successful termination of their C programs. ___ 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 to get rid of a character, 0x80?
On Tue, Sep 8, 2009 at 7:43 AM, Jon Radel j...@radel.com wrote: Mark Stapper wrote: besides.. 0x80!=0200 it's 0200 octal which is 128 decimal... Might be why it doesn't work for you. Don't mess with his head. ;-) 0200 = 0x80 = 128 200 octal = 80 hex = 128 decimal -- --Jon Radel j...@radel.com You may want to check if your char type is signed. If it is (and it just happens to be 8 bits wide), (char)128 is a negative value. ___ 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: me in ipfw rules - does it include aliases?
Tom Worster wrote: thanks, nikos. You're welcome. i'm interested in your other comment about the risks of using me. All I am saying is that you have to take care of attacks which use me addresses. Packets with source address a me address coming from a network interface, AKA spoofed packets. Apparently a me source address cannot come from a wire[1], right? It's not a great risk, but you better filter them out. Also, it is very possible that such attacks are not applicable to your network. Or not. I am just pointing the possible false sense of security when using rules which match me addresses. Just be sure that me is really your firewall and not somebody else... for the best possible security, i'll post my ruleset here for y'all to review ... or maybe not :-) You better not:) [1] by the word wire, I mean every non-loopback interface Nikos ___ 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: me in ipfw rules - does it include aliases?
On 9/8/09 2:58 AM, Nikos Vassiliadis nvass9...@gmx.com wrote: Tom Worster wrote: the ipfw man page says: me matches any IP address configured on an interface in the system. which suggests that if i code my rules using me then when i add an alias ip address to an interface with ifconfig, these me rules will immediately work for the newly added address as they do for other addresses. is that correct? Yes, the me keyword is expanded to whatever IP address is assigned on any interface in the system. It's updated whenever an IP address is added to or removed from an interface. Use the simple ruleset bellow to test it yourself: lab# ipfw list 00100 allow ip from me to me 65535 deny ip from any to any add alias ping alias = success remove alias ping alias = failure It's a really useful keyword, yet it's not panacea. When using it, one has to think the possibility of an attacker who uses me addresses. Use some interface checking as well in your ruleset... Nikos thanks, nikos. my rules were all written with me and my apache config didn't mention any ip addresses so i went ahead and cut over service from a primary server to its hot standby by removing the external ip address on the primary and adding it as an alias to the standby's external interface. both servers are attached to the same upstream ethernet bridge (not necessarily the most reliable network config, i know) and it worked well. i'm interested in your other comment about the risks of using me. for the best possible security, i'll post my ruleset here for y'all to review ... or maybe not :-) ___ 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
GEOM: the secondary GPT table is corrupt
i'm using gmirror on a server box here at home without understanding how geom works in any detail. i probably followed the handbook chapter 19.4 but it was a while ago. i'm wondering if there's a way to clear these warnings in boot logs: ad4: 715404MB SAMSUNG HD753LJ 1AA01107 at ata2-master SATA150 GEOM: ad4: the secondary GPT table is corrupt or invalid. GEOM: ad4: using the primary only -- recovery suggested. ad6: 715404MB SAMSUNG HD753LJ 1AA01107 at ata3-master SATA150 GEOM: ad6: the secondary GPT table is corrupt or invalid. GEOM: ad6: using the primary only -- recovery suggested. GEOM_MIRROR: Device mirror/gm0 launched (2/2). GEOM: mirror/gm0: the secondary GPT table is corrupt or invalid. GEOM: mirror/gm0: using the primary only -- recovery suggested. GEOM_LABEL: Label for provider mirror/gm0p1 is msdosfs/EFI. Trying to mount root from ufs:/dev/mirror/gm0s1a GEOM_LABEL: Label msdosfs/EFI removed. the array seems to be fine, according to gmirror status. googling around, it seems these warnings indicate shoddy initial setup of the disks and there's no clear answer how to sort these matters out. any advice? -tom ___ 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
Invitation to help test the BSD News Network...
Although I have received a very good response, I am still looking for a handful of beta testers as well as some volunteers to help tweak the installation. If you are interested in helping build the BSD News Network then contact me directly off list. Regards, Mikel King CEO, Olivent Technologies Senior Editor, Daemon News Columnist, BSD Magazine 6 Alpine Court, Medford, NY 11763 o: 631.627.3055 skype:mikel.king http://olivent.com http://mikelking.com http://twitter.com/mikelking ___ 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 to get rid of a character, 0x80?
On Tue, Sep 08, 2009 at 08:02:06AM -0500, Jim White wrote: On Tue, Sep 8, 2009 at 7:43 AM, Jon Radel j...@radel.com wrote: Mark Stapper wrote: besides.. 0x80!=0200 it's 0200 octal which is 128 decimal... Might be why it doesn't work for you. Don't mess with his head. ;-) 0200 = 0x80 = 128 200 octal = 80 hex = 128 decimal Yup :-) --Jon Radel j...@radel.com You may want to check if your char type is signed. If it is (and it just happens to be 8 bits wide), (char)128 is a negative value. I used int ch, not char ch; Also, just found some throwaway code that [of course] never gets pitched, and found the for chars = 128, it's a wide character. while (( ch = getwc(stdin)) != WEOF) { if (ch == L'\xe2') { if ((ch1 = getwc(stdin)) == L'\x80') { printf('); /* check for and swallow last of the trio */ if ((ch2 = getwc(stdin)) == L'\x90') { continue; } } } else { putchar (ch); } } I wrote the above to get rid of openoffice TXT that was still cluttered with the trio of wide characters that output one apostrophe. Last night I used pdftotext to translate a pdf file; it was cluttered with a slew of ^L's, which == '\014', and wound up with a greater slew of x80 in more [less] and vi. Nutshell, the file was fubar'd. gary -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org The 5.67a release of Jottings: http://jottings.thought.org/index.php ___ 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: ath(4) Atheros AR9285 support
I had serious problems using the port hal in combination with an Atheros WiFi card. Maybe disable hal and try again? Cheers herb langhans On Tue, Sep 08, 2009 at 05:23:10PM +0400, Sergey Vinogradov wrote: Hi, Just wanted to know, if there will be any Atheros AR9285 support in ath(4) driver in nearest future? I've got my ASUS Eee 1005HA with one of these wireless adapters, and it doesn't seem to be working. -- wbr, Boo -- *** Herbert Langhans, Warschau *** Sprachtraining Langhans *** http://www.langhans.com.pl *** herbert at langhans.com.pl *** NIP 526-229-61-51 *** Regon 014911759 *** Tel. 603 341 441 ___ 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: Inconsistency in root partition size
On Tuesday 08 September 2009 04:14:55 jaymax wrote: restore -tf /disk03/dump/root2.dump rootrestore-0.lst To my surprise rootrestore-0.lst contains a whole listings of ./usr/ files ex. 2926 ./usr/include/bsnmp/snmpmod.h 2927 ./usr/include/bsnmp/snmp_atm.h Now /usr is on a separate and distinct partition /dev/ad0s1f 36205990 25765232 754428077%/usr Hope someone can make some sense of this. This is exactly what I figured. Some files are hiding behind a mount point. The got there most likely, cause you did make installworld without /usr mounted, which would happen if you have the FreeBSD source tree on a different location, reboot into single user mode, only mount the source tree and do installworld. To repair, reboot into single user. Run the following commands: fsck -y / mount -u -o rw / rm -rf /usr/* exit This should delete the offending files. -- Mel ___ 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: Reverse Proxy /Proxy Pass
2009/9/5 Mel Flynn mel.flynn+fbsd.questi...@mailing.thruhere.net: On Saturday 05 September 2009 09:55:54 Agus wrote: 2009/9/3 Mel Flynn mel.flynn+fbsd.questi...@mailing.thruhere.net: On Friday 04 September 2009 01:20:46 Agus wrote: What server, application do u know/recommend me for using as a ProxyPass / Reverse Proxy... The idea is to forward all requests to port 80 to this server and then from here according to the vhost send it to the actual server... For now i only need proxying.. dont think cacheing will be possible so im just looking for a pretty fast, light and stable app to do this on a freebsd 7... Thanks and ihope to hear some cool recommendations.. hehe If lightweight, go with www/nginx. Features, go with www/squid or apache+mod_proxy. -- Mel ___ 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 Thanks Mel... Now i've been reading a little and found that cherokee maybe a very good alternative also I also found that the performance will variate according to the syscall the server uses... i read about poll,etc how to know which syscalls does the servers support and which one is better/fastest? kqueue is preferred on *BSD, since it's able to aggregate multiple filter matches into one event if they happen to occur in a close time frame. This reduces copyout from kernel to userland. It also used to be true that poll is a busywait, but I think that has been corrected. If you're interested, the original design document for kqueue is available here: http://people.freebsd.org/~jlemon/papers/kqueue.pdf -- Mel Greatt.. sorry for the late response.. i was on vacations in a place with no internet... hehe... on the second day i was cryinggg.. haha thanks so much for the explanation and link... will read that and try to understand a bit ... hehe Cheers, AR ___ 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: ath(4) Atheros AR9285 support
herbs wrote: I had serious problems using the port hal in combination with an Atheros WiFi card. Maybe disable hal and try again? Cheers herb langhans On Tue, Sep 08, 2009 at 05:23:10PM +0400, Sergey Vinogradov wrote: Hi, Just wanted to know, if there will be any Atheros AR9285 support in ath(4) driver in nearest future? I've got my ASUS Eee 1005HA with one of these wireless adapters, and it doesn't seem to be working. -- wbr, Boo It's a fresh install, nothing but base system and GENERIC kernel installed. -- wbr, Boo signature.asc Description: OpenPGP digital signature
setquota + geli
hi, I would like to set some quotas with setquota on crypted disk with geli, but if I want to do so - /etc/fstab /dev/ad0s2f.eli /home ufs rw,noatime,userquota,groupquota 2 2 /etc/rc.conf enable_quotas=YES I can edit quotas by edquota, but with setquota command it is impossible ~# setquota -u -f /dev/ad0s2f.eli -bh1 stewe setquota : /dev/ad0s2f.eli is not a valid filesystem. does setquota support encrypted disks? what should I do? thank you ___ 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 mdconfig for swap space
Are there any advantages to using mdconfig and creating a virtual disk for swap space as opposed to having a designated swap partition? For example, I could do something like this: mdconfig -a -t swap -f /var/swap0 -s 4g swapon -a /dev/md0 to add 4G to the system swap space backed by the file /var/swap0. How would this compare to repartitioning my hard drive and adding a new 4GB swap partition? ___ 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: Using mdconfig for swap space
Hi, Peter-- On Sep 8, 2009, at 2:51 PM, Peter Steele wrote: Are there any advantages to using mdconfig and creating a virtual disk for swap space as opposed to having a designated swap partition? For example, I could do something like this: mdconfig -a -t swap -f /var/swap0 -s 4g swapon -a /dev/md0 to add 4G to the system swap space backed by the file /var/swap0. How would this compare to repartitioning my hard drive and adding a new 4GB swap partition? First, using -f means using -t vnode. Secondly, swapping directly to a swap partition is mildly faster than having to navigate through the filesystem layers to do swapfile based swapping. Other platforms have chosen to go with the dynamically created and deleted swapfiles (under /var/vm/swapfile0, 1, etc for example) to allow the system to adjust the amount of disk used for swapspace dynamically. With disk space costing a matter of a few cents per gigabyte nowadays, setting up a dedicated swap partition and just letting it do it's thing is much easier than trying to fiddle around with alternatives, IMHO, but you're welcome to experiment and see whether you end up with something which is actually better for your circumstances Regards, -- -Chuck ___ 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: Using mdconfig for swap space
On Tue, Sep 8, 2009 at 4:51 PM, Peter Steele pste...@maxiscale.com wrote: Are there any advantages to using mdconfig and creating a virtual disk for swap space as opposed to having a designated swap partition? For example, I could do something like this: mdconfig -a -t swap -f /var/swap0 -s 4g swapon -a /dev/md0 to add 4G to the system swap space backed by the file /var/swap0. How would this compare to repartitioning my hard drive and adding a new 4GB swap partition? In general, this is not a good idea. Your system will ideally not use swap space at all, and if it's using it a lot then it could sure use the extra ram consumed by the md drive instead of in swap. Most likely to slow your system down, not speed it up. If you're going to do anything, it's best to keep swap on a separate disk, or on the outer part of disk. -- Adam Vande More ___ 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: Using mdconfig for swap space
On Tue, Sep 08, 2009 at 04:51:20PM -0500, Peter Steele wrote: Are there any advantages to using mdconfig and creating a virtual disk for swap space as opposed to having a designated swap partition? For example, I could do something like this: Unless I am missing something basic here, it seems like a bad idea to me - to carve out and use up some memory to use as extra storage for processes that need more memory that you have taken away to give to swap. That is self defeating. In addition, one use of swap is to write dumps to if there is a crash. If you put it in memory, it is gone when you reboot. jerry mdconfig -a -t swap -f /var/swap0 -s 4g swapon -a /dev/md0 to add 4G to the system swap space backed by the file /var/swap0. How would this compare to repartitioning my hard drive and adding a new 4GB swap partition? ___ 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: Using mdconfig for swap space
On Tue, 8 Sep 2009 16:51:20 -0500 Peter Steele pste...@maxiscale.com wrote: Are there any advantages to using mdconfig and creating a virtual disk for swap space as opposed to having a designated swap partition? For example, I could do something like this: mdconfig -a -t swap -f /var/swap0 -s 4g swapon -a /dev/md0 FWIW that's already supported by adding swapfile=/var/swap0 to rc.conf Your arguments are wrong BTW -t swap creates a device *backed* by swap. And the size comes from the size of the supplied file - which you typically create with dd. ___ 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: Inconsistency in root partition size
Mel Flynn-2 wrote: This is exactly what I figured. Some files are hiding behind a mount point. The got there most likely, cause you did make installworld without /usr mounted, which would happen if you have the FreeBSD source tree on a different location, reboot into single user mode, only mount the source tree and do installworld. To repair, reboot into single user. Run the following commands: fsck -y / mount -u -o rw / rm -rf /usr/* exit This should delete the offending files. Thanks, you have been a tremendous help That was precisely the problem and solution, the capacity from df-k is back down to 10% thanks again with your permission I'd like to post your advise on the FreeBSD Forum, of course with credits =) -- View this message in context: http://www.nabble.com/Inconsistency-in-root-partition-size-tp25314145p25356456.html Sent from the freebsd-questions mailing list archive at Nabble.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
metadata is incorrect - freebsd-update
When I try to update to 8.0-BETA3 using freebsd-update I get a gunzip problem like: metadata iscorrupt I tried to remove /var/db/freebsd-update/files/* but I get the same error message Is this a client side problem or a server problem? If the former how do I fix it? ___ 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