Re: Revision control advice
On 22/12/2011 04:53, Rob Byrnes wrote: Yeah I would second what Mr Rock says. Set up a single repo where folders can be used for projects. Since svn lets you checkout sub folders of a repo, each developer can check out the folder that corresponds to their project. Also, Tortoise svn is a very nice graphical utility that will allow your developers to manage there svn folders without even needing a web interface (most non unix people that I know like tortoise), so there is less maintenance for you :) Finally, kudos to moving towards using version control, its an important step for a software company. git or mercurial - best choices For what reasons? svn vs git vs mercurial svn has the model of a central repository that everything has to communicate with. This can be attractive in a commercial environment as it implies a degree of central control over all of the project source code. git is much more a peer-to-peer system. This fits with a disparate group of projects all proceeding pretty much independently. There's also a potential advantage if all your developers are not at the same location and will not necessarily have access to central office systems. mercurial unfortunately I'm not that familiar with, but it uses a distributed model like git. Other criteria, like windows support, are not anything I have much experience of, but by all accounts svn and git are pretty well served. Any of these will serve you well, and unless you have a killer requirement that makes it obvious which to choose from, then you risk spending a lot of effort trying to minutely analyse the niggling details of each contender to no ultimate benefit. At some point you're going to be better off simply by tossing a coin to choose. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate JID: matt...@infracaninophile.co.uk Kent, CT11 9PW signature.asc Description: OpenPGP digital signature
Re: 7.4 - 8.2
Le 24/11/2011 à 16:09:01+0100, Albert Shih a écrit Hi all Almost classic question about updating from 7.4 to 8.2. Anyone known if I can temporally run a 7.4 userland+service with 8.2 kernel ? I've ask this because I've ~ 15 jail on one server. I can update the «host» pretty fast but with the 15 jail I need some time. And I would like to known if durring this time the jail going to work «normally». So I answer to myself. Some body tell me it's like My gut reaction was Are you familiar with the game of Russian Roulette?. Wellit's work...almost. Here what I do : Upgrade kernel and userland from 7.4 to 8.2 on the host. Upgrade all userland of my all jail to 8.2 Until now everything work fine. Delete old libs/files/man and...apache stop working. After do a portupgrade -fR apache everything work again. Be careful the portupgrade -f apache is not enough. I don't known which ports have some problem but I got a SSL error. So first I just update apache. It's not good. Then apr, etc...finally I upgrade with «-fR» and everything work again. For subversion you need to force upgrade neon too. and for who want to ask me : NO I don't play Russian roulette. Regards. -- Albert SHIH DIO batiment 15 Observatoire de Paris 5 Place Jules Janssen 92195 Meudon Cedex Téléphone : 01 45 07 76 26/06 86 69 95 71 Heure local/Local time: jeu 22 déc 2011 13:41:25 CET ___ 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: LOCALE issue: Pysycache errors on run
On 12/22/11 15:11, Da Rock wrote: Just something for the kids, but I'm wondering how to get this to work? I've installed from ports, but when I run it from the cli to test it I get an error: Traceback (most recent call last): File /usr/local/bin/pysycache.py, line 442, in module if __name__ == '__main__': main(const.GWithFullScreen) File /usr/local/bin/pysycache.py, line 266, in main myrep = os.path.join(const.GRepPysycache, '/usr/local/share/pysycache/help', const.GMyLocale ) File /usr/local/lib/python2.7/posixpath.py, line 66, in join if b.startswith('/'): AttributeError: 'NoneType' object has no attribute 'startswith' Assuming this _does_ actually work, anyone know the trick to getting this work? After some extensive rooting around, I've discovered through a crash course in python and destructive testing that there is a locale issue with this program: %env LANG=en_EN.ISO8859-1 pysycache.py Traceback (most recent call last): File /usr/local/bin/pysycache.py, line 442, in module if __name__ == '__main__': main(const.GWithFullScreen) File /usr/local/bin/pysycache.py, line 264, in main locale.setlocale(locale.LC_ALL,) File /usr/local/lib/python2.7/locale.py, line 531, in setlocale return _setlocale(category, locale) locale.Error: unsupported locale setting Many variations have been tried here, but I still can't get it to work. Anything I'm missing here? Disabling the locale setting in the program is not an option for many reasons. ___ 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: LOCALE issue: Pysycache errors on run
On Thu, 22 Dec 2011 23:13:53 +1000, Da Rock wrote: %env LANG=en_EN.ISO8859-1 pysycache.py ^^ Isn't that supposed to be en_US or en_GB? I'm not sure if there's also en_AU... :-) -- Polytropon 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: 7.4 - 8.2
On Thu, 22 Dec 2011 13:47:09 +0100, Albert Shih wrote: Le 24/11/2011 à 16:09:01+0100, Albert Shih a écrit Hi all Almost classic question about updating from 7.4 to 8.2. Anyone known if I can temporally run a 7.4 userland+service with 8.2 kernel ? I've ask this because I've ~ 15 jail on one server. I can update the «host» pretty fast but with the 15 jail I need some time. And I would like to known if durring this time the jail going to work «normally». So I answer to myself. Some body tell me it's like My gut reaction was Are you familiar with the game of Russian Roulette?. Wellit's work...almost. Here what I do : Upgrade kernel and userland from 7.4 to 8.2 on the host. Upgrade all userland of my all jail to 8.2 Until now everything work fine. Delete old libs/files/man and...apache stop working. After do a portupgrade -fR apache everything work again. Be careful the portupgrade -f apache is not enough. I don't known which ports have some problem but I got a SSL error. So first I just update apache. It's not good. Then apr, etc...finally I upgrade with «-fR» and everything work again. For subversion you need to force upgrade neon too. You should basically be able to run v7 programs in a partially installed v8 environment as long as the COMPAT_FREEBSD7 functionality is enabled and the compat7x-i386-7.3.703000.201008_1 port or package has been installed. However, kernel and world should match each other. After an upgrade from one major version to the next one, it's the best solution to update _all_ installed ports. The man portmaster manpage contains a nice example for this situation. It should be similarly easy to achieve with portupgrade. -- Polytropon 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: 7.4 - 8.2
Le 22/12/2011 à 14:24:26+0100, Polytropon a écrit For subversion you need to force upgrade neon too. You should basically be able to run v7 programs in a partially installed v8 environment as long as the COMPAT_FREEBSD7 functionality is enabled and the compat7x-i386-7.3.703000.201008_1 port or package has been installed. However, kernel and world should match each other. After an upgrade from one major version to the next one, it's the best solution to update _all_ installed ports. The man portmaster manpage contains a nice example for this situation. It should be similarly easy to achieve with portupgrade. Yes I known. Thanks for the tips. My problem is with almost 15 jails on each server (I got 3) that's take long time, event during this time I don't do many thing some service isn't up. So my message is to find the minimal thing to do and make it's working until all package is rebuild. Regards. Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 I'm from 3.2 ;-) Regards. -- Albert SHIH DIO batiment 15 Observatoire de Paris 5 Place Jules Janssen 92195 Meudon Cedex Téléphone : 01 45 07 76 26/06 86 69 95 71 Heure local/Local time: jeu 22 déc 2011 14:47:16 CET ___ 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: 7.4 - 8.2
On 12/22/11 2:49 PM, Albert Shih wrote: Le 22/12/2011 à 14:24:26+0100, Polytropon a écrit For subversion you need to force upgrade neon too. You should basically be able to run v7 programs in a partially installed v8 environment as long as the COMPAT_FREEBSD7 functionality is enabled and the compat7x-i386-7.3.703000.201008_1 port or package has been installed. However, kernel and world should match each other. After an upgrade from one major version to the next one, it's the best solution to update _all_ installed ports. The man portmaster manpage contains a nice example for this situation. It should be similarly easy to achieve with portupgrade. Yes I known. Thanks for the tips. My problem is with almost 15 jails on each server (I got 3) that's take long time, event during this time I don't do many thing some service isn't up. So my message is to find the minimal thing to do and make it's working until all package is rebuild. Regards. Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 I'm from 3.2 ;-) Regards. The question is why do you even bother running jails with different userlands ? Keep a shared userland for all your jails, just ensure your /etc and /usr/local are private only to said jails. This way you only need to rebuild the world once, although you'll still have to run mergemaster on each jail. ___ 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: LOCALE issue: Pysycache errors on run
On 12/22/11 23:20, Polytropon wrote: On Thu, 22 Dec 2011 23:13:53 +1000, Da Rock wrote: %env LANG=en_EN.ISO8859-1 pysycache.py ^^ Isn't that supposed to be en_US or en_GB? I'm not sure if there's also en_AU... :-) The one variation I didn't try I had tried en_US and en_AU, but not with the encoding. Mind you this was not the first thing I had considered when this problem cropped up since everything else just works :) BTW there is en_AU. Thanks yet again Polytropon ;) ___ 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: LOCALE issue: Pysycache errors on run
On Thu, 22 Dec 2011 23:57:28 +1000, Da Rock wrote: On 12/22/11 23:20, Polytropon wrote: On Thu, 22 Dec 2011 23:13:53 +1000, Da Rock wrote: %env LANG=en_EN.ISO8859-1 pysycache.py ^^ Isn't that supposed to be en_US or en_GB? I'm not sure if there's also en_AU... :-) The one variation I didn't try I had tried en_US and en_AU, but not with the encoding. I see - if I remember correctly, $LANG is just the language combination, while $LC_* do have the encoding appended, e. g. ISO8859-1, -15 or UTF-8. There's also a precedence rule regarding $LANG and the $LC_* settings, and $LC_ALL in relation to the others of $LC_*. BTW there is en_AU. Cool, didn't know that (just assumed). -- Polytropon 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
umask not applied
Hi list, I'm trying to apply a umask of 002 to user user (username changed for this example) while logged-in through ftpd. I used login class class (class name changed for this example) I edited /etc/login.conf and set at the bottom (there's no other entry for this user): class::umask=0002: then rebuilt the db : #cap_mkdb /etc/login.conf I assigned the user to this class: #pw usermod user -L class #pw usershow user user:*:1003:80:class:0:0:bla bla:/home/user:/bin/sh (group 80 is why I need this umask) The user still creates folders with 755 permissions through ftpd. So I switched to this user and watched the umask, it is still 0022. I tried setting the umask on the fly : $umask 0002 It works. There's no user-defined umask in ~/.login or ~/.login_conf I took care of typos and there is no error. #uname -r 8.2-RELEASE-p3 As what I read in the man pages I checked all the possibilities in the login mechanism, so if anyone has an idea it's welcome :) Thanks ! ___ 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
about igb queue
I have configured that I receive traffic from LAN via igb1 and it is leaving to world via igb0 but when I see processes I see that on igb0 there is 4 queues but on igb1 it is only one. Do I must tune something or all is right here? top -SIHP PID USERNAME PRI NICE SIZERES STATE C TIME WCPU COMMAND 11 root 155 ki31 0K32K RUN 1 287:27 70.21% idle{idle: cpu1} 11 root 155 ki31 0K32K RUN 3 292:42 67.77% idle{idle: cpu3} 11 root 155 ki31 0K32K CPU22 286:38 65.97% idle{idle: cpu2} 11 root 155 ki31 0K32K RUN 0 282:58 57.13% idle{idle: cpu0} 12 root -92- 0K 248K WAIT1 7:01 5.32% intr{irq257: igb0:que} 12 root -92- 0K 248K WAIT0 9:35 5.03% intr{irq256: igb0:que} 12 root -92- 0K 248K WAIT2 8:14 4.25% intr{irq258: igb0:que} 12 root -92- 0K 248K WAIT3 9:48 3.71% intr{irq259: igb0:que} 13 root -16- 0K32K sleep 2 6:42 3.08% ng_queue{ng_queue3} 13 root -16- 0K32K sleep 3 6:42 2.98% ng_queue{ng_queue1} 13 root -16- 0K32K sleep 0 6:42 2.93% ng_queue{ng_queue2} 13 root -16- 0K32K sleep 2 6:43 2.69% ng_queue{ng_queue0} 7371 root210 15388K 5496K select 2 5:04 0.73% snmpd 12 root -92- 0K 248K WAIT0 1:52 0.63% intr{irq261: igb1:que} ___ 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: umask not applied
On 12/22/2011 12:58 PM, Bastien Semene wrote: Hi list, I'm trying to apply a umask of 002 to user user (username changed for this example) while logged-in through ftpd. I used login class class (class name changed for this example) I edited /etc/login.conf and set at the bottom (there's no other entry for this user): class::umask=0002: then rebuilt the db : #cap_mkdb /etc/login.conf I assigned the user to this class: #pw usermod user -L class #pw usershow user user:*:1003:80:class:0:0:bla bla:/home/user:/bin/sh (group 80 is why I need this umask) The user still creates folders with 755 permissions through ftpd. So I switched to this user and watched the umask, it is still 0022. I tried setting the umask on the fly : $umask 0002 It works. There's no user-defined umask in ~/.login or ~/.login_conf I took care of typos and there is no error. #uname -r 8.2-RELEASE-p3 As what I read in the man pages I checked all the possibilities in the login mechanism, so if anyone has an idea it's welcome :) Thanks ! I'm not a pro FreeBSD user, but wouldn't the FTPD program be more responsible for the user's login credentials since that's what they're using that's causing the wrong permissions to be applied? From what I remember, FTPD verifies the users login, but doesn't actually execute any login scripts associated with that user. ___ 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: about igb queue
Здравствуйте, Коньков. Вы писали 22 декабря 2011 г., 20:22:38: КЕ I have configured that I receive traffic from LAN via igb1 and it is КЕ leaving to world via igb0 КЕ but when I see processes I see that on igb0 there is 4 queues but on КЕ igb1 it is only one. Do I must tune something or all is right here? КЕ top -SIHP КЕPID USERNAME PRI NICE SIZERES STATE C TIME WCPU COMMAND КЕ11 root 155 ki31 0K32K RUN 1 287:27 70.21% idle{idle: cpu1} КЕ11 root 155 ki31 0K32K RUN 3 292:42 67.77% idle{idle: cpu3} КЕ11 root 155 ki31 0K32K CPU22 286:38 65.97% idle{idle: cpu2} КЕ11 root 155 ki31 0K32K RUN 0 282:58 57.13% idle{idle: cpu0} КЕ12 root -92- 0K 248K WAIT1 7:01 5.32% intr{irq257: igb0:que} КЕ12 root -92- 0K 248K WAIT0 9:35 5.03% intr{irq256: igb0:que} КЕ12 root -92- 0K 248K WAIT2 8:14 4.25% intr{irq258: igb0:que} КЕ12 root -92- 0K 248K WAIT3 9:48 3.71% intr{irq259: igb0:que} КЕ13 root -16- 0K32K sleep 2 6:42 3.08% ng_queue{ng_queue3} КЕ13 root -16- 0K32K sleep 3 6:42 2.98% ng_queue{ng_queue1} КЕ13 root -16- 0K32K sleep 0 6:42 2.93% ng_queue{ng_queue2} КЕ13 root -16- 0K32K sleep 2 6:43 2.69% ng_queue{ng_queue0} КЕ 7371 root210 15388K 5496K select 2 5:04 0.73% snmpd КЕ12 root -92- 0K 248K WAIT0 1:52 0.63% intr{irq261: igb1:que} getting information about interrupts shows that there is not interrupts from igb1 char igb_driver_version[] = version - 2.2.5; 2 usersLoad 0.50 0.53 0.50 Dec 22 23:59 Mem:KBREALVIRTUAL VN PAGER SWAP PAGER Tot Share TotShareFree in out in out Act 332272 13268 206228830088 122004 count All 494672 19520 433359290716 pages Proc:Interrupts r p d s w Csw Trp Sys Int Sof Flt117 cow 31201 total 1 172 72k 889 4135 14k 4041 660296 zfodata0 14 10 ozfod 5 ata1 15 3.9%Sys 5.0%Intr 0.4%User 0.0%Nice 90.7%Idle 3%ozfod 2 ehci0 16 ||||||||||| daefr 2 ehci1 23 ==++ 378 prcfr 4126 cpu0:timer 33 dtbuf 450 totfr 2920 igb0:que 0 Namei Name-cache Dir-cache110737 desvn react 2680 igb0:que 1 Callshits %hits % 37963 numvn pdwak 2187 igb0:que 2 45044492 100 27657 frevn pdpgs 2550 igb0:que 3 intrn igb0:link Disks ada0 da0 pass0 pass1 270288 wire 4355 igb1:que 0 KB/t 30.96 0.00 0.00 0.00 316488 act 3 igb1:que 1 tps 5 0 0 0 1264188 inact 1 igb1:que 2 MB/s 0.16 0.00 0.00 0.00 95204 cache 2 igb1:que 3 %busy 0 0 0 0 26800 freeigb1:link 114912 re0 266 4127 cpu1:timer 4116 cpu3:timer 4125 cpu2:timer -- С уважением, Коньков mailto:kes-...@yandex.ru ___ 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: Revision control advice
On Wed, Dec 21, 2011 at 08:24:01PM -0700, ss griffon wrote: On Wed, Dec 21, 2011 at 7:49 PM, Da Rock freebsd-questi...@herveybayaustralia.com.au wrote: On 12/22/11 11:37, Chris Hill wrote: Hello list, I apologize for this posting being not-much-on-topic, but my other resources have come to naught and I think you folks may have some experience in this area. I'm looking to set up some sort of revision control system at work. Simple enough, except that our situation is approximately the reverse of what most revision control systems are designed for. Unlike, e.g., FreeBSD kernel development, we have dozens or hundreds of small, rapid-fire projects that are created at the rate of 3 to 20 per month. They last a few days or a few months and are (usually) not developed afterward. Each project has one to three developers working on it, sometimes simultaneously. Usually it's one guy per project. Since my programmers are not necessarily UNIX-savvy, I'd like to deploy a web interface for them which will allow them to create new repositories (projects) as well as the normal checkin, checkout, etc. I want to set this up once, and from there on have the programmers deal with managing their own repos. And heaven forfend exposing them to the horrors of the shell. I've built a test server (9.0-RC3, amd64) for experimenting with this stuff. So far I've installed and played with: - fossil. I like the simplicity and light weight, but it doesn't seem to allow creation of new repos at all (let alone multiple ones) from the web interface, and the documentation is meager. I've pretty much given up on it. - subversion, which looks like the heavy hitter of RCSs, but it's not at all clear to me how to handle the multiple-project scenario. Still working on it. - git looks promising, but I have not installed it yet. If anyone can point me to a tool that might be suitable, I would be most grateful. I'd suggest subversion. It allows individual files to be versioned, you can setup a webdav interface, and there are other tools that can help maintain it. Forget the individual repositories. Setup a single repository and have directories for each project. in each directory you can then setup trunk, branches, whatever, as per best practices in the Book. Designate a person or two to administer, and use directory level auth, or another alternative I haven't thought of. My 2c's anyway. HTH Yeah I would second what Mr Rock says. Set up a single repo where folders can be used for projects. Since svn lets you checkout sub folders of a repo, each developer can check out the folder that corresponds to their project. Also, Tortoise svn is a very nice graphical utility that will allow your developers to manage there svn folders without even needing a web interface (most non unix people that I know like tortoise), so there is less maintenance for you :) Finally, kudos to moving towards using version control, its an important step for a software company. I'll 3rd the choice of Subversion. It's quite easy to setup and use. There's also the book online: http://svnbook.red-bean.com/en/1.7/index.html for you to read at your pleasure and which you can also point your users to. Regards, -- Frank Contact info: http://www.shute.org.uk/misc/contact.html pgpMEnRYeumWx.pgp Description: PGP signature
Re: Revision control advice
On 22/12/2011, at 20:06, Matthew Seaman wrote: On 22/12/2011 04:53, Rob Byrnes wrote: Yeah I would second what Mr Rock says. Set up a single repo where folders can be used for projects. Since svn lets you checkout sub folders of a repo, each developer can check out the folder that corresponds to their project. Also, Tortoise svn is a very nice graphical utility that will allow your developers to manage there svn folders without even needing a web interface (most non unix people that I know like tortoise), so there is less maintenance for you :) Finally, kudos to moving towards using version control, its an important step for a software company. git or mercurial - best choices For what reasons? svn vs git vs mercurial svn has the model of a central repository that everything has to communicate with. This can be attractive in a commercial environment as it implies a degree of central control over all of the project source code. git is much more a peer-to-peer system. This fits with a disparate group of projects all proceeding pretty much independently. There's also a potential advantage if all your developers are not at the same location and will not necessarily have access to central office systems. mercurial unfortunately I'm not that familiar with, but it uses a distributed model like git. I would advise staying away from mercurial (aka hg). It has a lot of issues with corruption of repositories. Git does the same and is a lot more mature and stable. Other criteria, like windows support, are not anything I have much experience of, but by all accounts svn and git are pretty well served. Again, git wins here. It has good support on windows, as well as with graphical tools on windows. You can use git like SVN if you push to the master after every commit though. I also have found git's support for merging to be a lot better. Additionally it stores branches and tags as metadata on commits rather than svn's dumb tag / branch system where you just copy the full repo to the side. Git does take a bit longer to get your head around how some of the tools work, but once you learn it, it really pays off. Sincerely, William Brown Research Teaching, Technology Services The University of Adelaide, AUSTRALIA 5005 CRICOS Provider Number 00123M - IMPORTANT: This message may contain confidential or legally privileged information. If you think it was sent to you by mistake, please delete all copies and advise the sender. For the purposes of the SPAM Act 2003, this email is authorised by The University of Adelaide. pgp.mit.edu PGP.sig Description: This is a digitally signed message part
Re: [freebsd-questions] Revision control advice
On 22/12/2011 22:53, William Brown wrote: Again, git wins here. It has good support on windows, as well as with graphical tools on windows. Is there a git equivalent of TortoiseSVN then? That's the best VC integration I've seen on any platform... One small but cosmetic thing with git vs svn: you won't get meaningful automatic revision numbers with git, unless you enjoy memorizing long strings of hex. Howie (warming up to git, but uses svn at the moment) ___ 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: about igb queue
On 12/22/2011 5:03 PM, Коньков Евгений wrote: Здравствуйте, Коньков. Вы писали 22 декабря 2011 г., 20:22:38: КЕ I have configured that I receive traffic from LAN via igb1 and it is КЕ leaving to world via igb0 КЕ but when I see processes I see that on igb0 there is 4 queues but on КЕ igb1 it is only one. Do I must tune something or all is right here? vmstat -i shows interrupts assigned to the nic. Whats the netgraph stuff doing ? Perhaps provide more details about what the box is doing and do you have any modules loaded. Do you have any tunables set in /etc/sysctl.conf or in /boot/loader.conf ? ---Mike КЕ top -SIHP КЕPID USERNAME PRI NICE SIZERES STATE C TIME WCPU COMMAND КЕ11 root 155 ki31 0K32K RUN 1 287:27 70.21% idle{idle: cpu1} КЕ11 root 155 ki31 0K32K RUN 3 292:42 67.77% idle{idle: cpu3} КЕ11 root 155 ki31 0K32K CPU22 286:38 65.97% idle{idle: cpu2} КЕ11 root 155 ki31 0K32K RUN 0 282:58 57.13% idle{idle: cpu0} КЕ12 root -92- 0K 248K WAIT1 7:01 5.32% intr{irq257: igb0:que} КЕ12 root -92- 0K 248K WAIT0 9:35 5.03% intr{irq256: igb0:que} КЕ12 root -92- 0K 248K WAIT2 8:14 4.25% intr{irq258: igb0:que} КЕ12 root -92- 0K 248K WAIT3 9:48 3.71% intr{irq259: igb0:que} КЕ13 root -16- 0K32K sleep 2 6:42 3.08% ng_queue{ng_queue3} КЕ13 root -16- 0K32K sleep 3 6:42 2.98% ng_queue{ng_queue1} КЕ13 root -16- 0K32K sleep 0 6:42 2.93% ng_queue{ng_queue2} КЕ13 root -16- 0K32K sleep 2 6:43 2.69% ng_queue{ng_queue0} КЕ 7371 root210 15388K 5496K select 2 5:04 0.73% snmpd КЕ12 root -92- 0K 248K WAIT0 1:52 0.63% intr{irq261: igb1:que} getting information about interrupts shows that there is not interrupts from igb1 char igb_driver_version[] = version - 2.2.5; 2 usersLoad 0.50 0.53 0.50 Dec 22 23:59 Mem:KBREALVIRTUAL VN PAGER SWAP PAGER Tot Share TotShareFree in out in out Act 332272 13268 206228830088 122004 count All 494672 19520 433359290716 pages Proc:Interrupts r p d s w Csw Trp Sys Int Sof Flt117 cow 31201 total 1 172 72k 889 4135 14k 4041 660296 zfodata0 14 10 ozfod 5 ata1 15 3.9%Sys 5.0%Intr 0.4%User 0.0%Nice 90.7%Idle 3%ozfod 2 ehci0 16 ||||||||||| daefr 2 ehci1 23 ==++ 378 prcfr 4126 cpu0:timer 33 dtbuf 450 totfr 2920 igb0:que 0 Namei Name-cache Dir-cache110737 desvn react 2680 igb0:que 1 Callshits %hits % 37963 numvn pdwak 2187 igb0:que 2 45044492 100 27657 frevn pdpgs 2550 igb0:que 3 intrn igb0:link Disks ada0 da0 pass0 pass1 270288 wire 4355 igb1:que 0 KB/t 30.96 0.00 0.00 0.00 316488 act 3 igb1:que 1 tps 5 0 0 0 1264188 inact 1 igb1:que 2 MB/s 0.16 0.00 0.00 0.00 95204 cache 2 igb1:que 3 %busy 0 0 0 0 26800 free igb1:link 114912 re0 266 4127 cpu1:timer 4116 cpu3:timer 4125 cpu2:timer -- --- Mike Tancsa, tel +1 519 651 3400 Sentex Communications, m...@sentex.net Providing Internet services since 1994 www.sentex.net Cambridge, Ontario Canada http://www.tancsa.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: Revision control advice
Absolutely go distributed vcs over centralized. Keeping code always under version control, even when local in your sandbox, is extremely powerful. And since a distributed vcs can be used as a centralized vcs, there's really no technical reason to use a centralized vcs. - Original Message - From: William Brown william.e.br...@adelaide.edu.au I would advise staying away from mercurial (aka hg). It has a lot of issues with corruption of repositories. Git does the same and is a lot more mature and stable. Do you have any references re Mercurial repo corruption? I originally started using Mercurial a couple years ago because NetBeans had built-in support, but the command set is consistent and uniform, Bryan O'Sullivan's Definitive Guide is excellent, and TortoiseHg/HgWorkbench work flawlessly on Windows (I use the command line or the Natilus plugin when not on Windows). No argument that git has the mindshare, although arguably due more to github than git itself. Googling will show there are major projects using Mercurial as well. Dale - Transparency with Trust http://www.dalescott.net ___ 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: Revision control advice
On Fri, Dec 23, 2011 at 09:23:22AM +1030, William Brown wrote: On 22/12/2011, at 20:06, Matthew Seaman wrote: svn vs git vs mercurial svn has the model of a central repository that everything has to communicate with. This can be attractive in a commercial environment as it implies a degree of central control over all of the project source code. git is much more a peer-to-peer system. This fits with a disparate group of projects all proceeding pretty much independently. There's also a potential advantage if all your developers are not at the same location and will not necessarily have access to central office systems. mercurial unfortunately I'm not that familiar with, but it uses a distributed model like git. I would advise staying away from mercurial (aka hg). It has a lot of issues with corruption of repositories. Git does the same and is a lot more mature and stable. Uh . . . what? Please provide a source for that claim. Other criteria, like windows support, are not anything I have much experience of, but by all accounts svn and git are pretty well served. Again, git wins here. It has good support on windows, as well as with graphical tools on windows. How does TortoiseGIT improve on TortoiseHG? I'm curious. You can use git like SVN if you push to the master after every commit though. I also have found git's support for merging to be a lot better. Additionally it stores branches and tags as metadata on commits rather than svn's dumb tag / branch system where you just copy the full repo to the side. For the vast majority of purposes, distributed VCSes like Fossil, Git, and Mercurial are quite superior to CVCSes such as Subversion. There are cases, however, where a truly centralized system is more appropriate. These are typically cases where division of labor is very starkly defined and a strong central control over everything needs to be maintained even when the people working out at the nodes of the system might be tempted to follow a different, ad-hoc process of their own. For those cases, something like Git (or Fossil or Mercurial) simply will not do. ___ 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
Lenovo athlon laptop
Hello, I bought a lenovo laptop (cpu amd dual core, graphics is radeon 6250 Everything woks, except the graphics that only works with driver vga at 1024x768. if I use the ati driver, it works in 1366x800 (that is the panel resolution, it works ok, but ONLY ONCE, that is, the gdm program opens the login menu, I log in, works all the applications: libreoffice, nautilus, firefox, audio, video but when I log off, then gdm resets the display and all I can see it is a black screen. if I reset the screen several times (about 16 times , by killing gdm) using an ssh session... the login screen appears OK... Seems that the ati driver is mapping the fb wrong... Thanks for any help, Sergio ___ 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: 7.4 - 8.2
Albert Shih wrote: Le 22/12/2011 à 14:24:26+0100, Polytropon a écrit For subversion you need to force upgrade neon too. You should basically be able to run v7 programs in a partially installed v8 environment as long as the COMPAT_FREEBSD7 functionality is enabled and the compat7x-i386-7.3.703000.201008_1 port or package has been installed. However, kernel and world should match each other. After an upgrade from one major version to the next one, it's the best solution to update _all_ installed ports. The man portmaster manpage contains a nice example for this situation. It should be similarly easy to achieve with portupgrade. Yes I known. Thanks for the tips. My problem is with almost 15 jails on each server (I got 3) that's take long time, event during this time I don't do many thing some service isn't up. So my message is to find the minimal thing to do and make it's working until all package is rebuild. Regards. Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 I'm from 3.2 ;-) Regards. If you had used the qjail port to install your jails, upgrading between major versions is easy. Maybe this is the time to change the way you create your jails. ___ 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
PolicyKit confusion
This is doing my head in. I'm trying to get my head around hal, dbus, and PolicyKit, and I've made some inroads on the basics, but I cannot get a few things happening. One: I managed to get network:/// smb shares working in say nautilus (not that I've specifically mounted one- not a windows in sight here thank god!), but I was hoping for NFS shares to show up. I also got the usb disk to show up as a 'place' but when I access it I get permissions issues. This is what I'm hung up on. I checked out /media/hal-* and I see that the mount occurs only as root. How do I change that exactly? I need it showing for operator group. I've searched high and low and googled my brains out, but anything remotely related is for linux and udev. Two: a big thing I've noticed here on google, lists, whatever is a confusion related to the 'define_admin_auth' group. Some are saying it is a security risk to have an average user access this area, and others are just opening it up. I'm with the former, unless I can be convinced otherwise. Can anyone provide some clarity to this issue? What precisely is the capabilties of the 'admin_auth' group? 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
Re: PolicyKit confusion
On Fri, 23 Dec 2011 14:18:19 +1000, Da Rock wrote: I checked out /media/hal-* and I see that the mount occurs only as root. How do I change that exactly? I need it showing for operator group. I've searched high and low and googled my brains out, but anything remotely related is for linux and udev. I think I remember I got it working some time ago (on a 7.1 system), relying on the Gnome HAL FAQ which stated something like this: File: /usr/local/etc/PolicyKit/PolicyKit.conf config version=0.1 match action=org.freedesktop.hal.storage.mount-removable match user=marcus return result=N/ /match /match match action=org.freedesktop.hal.storage.mount-fixed match user=marcus return result=N/ /match /match /config For N, use your user name; I think you can also use more than one match section if you want to allow access for other users. However, I doubt all this HAL / DBUS / PolicyKit magic is really intended for multi-user purposes. :-) Note that HAL also has an option of fixed mount points to be set at compile time. I think I had set it... I'm also unsure if NFS mounts are fixed or removable in PK terminology. Regarding your second question, I can't provide any further information. I just assume it's a means to turn a safe multi-user system into an insecure single-user system, which is what users expect. :-) -- Polytropon 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: PolicyKit confusion
On 12/23/11 15:37, Polytropon wrote: On Fri, 23 Dec 2011 14:18:19 +1000, Da Rock wrote: I checked out /media/hal-* and I see that the mount occurs only as root. How do I change that exactly? I need it showing for operator group. I've searched high and low and googled my brains out, but anything remotely related is for linux and udev. I had a feeling you'd be replying to this one :) I think I remember I got it working some time ago (on a 7.1 system), relying on the Gnome HAL FAQ which stated something like this: File: /usr/local/etc/PolicyKit/PolicyKit.conf config version=0.1 match action=org.freedesktop.hal.storage.mount-removable match user=marcus return result=N/ /match /match match action=org.freedesktop.hal.storage.mount-fixed match user=marcus return result=N/ /match /match /config For N, use your user name; I think you can also use more than one match section if you want to allow access for other users. However, I doubt all this HAL / DBUS / PolicyKit magic is really intended for multi-user purposes. :-) Followed that and done that, didn't work. Although it does say 'result=yes' not user. Sorry: that was the freebsd-gnome FAQ. Do you see any way of using group instead of user? Incidentally, the disk shows up (in case I wasn't being all too clear), as a user I can't access it. And in the hal-tab it shows -u=0 as I said. I hunted down that scenario and it sent me down a very foggy path using hal-fdi's - setting -uid and -u settings. I then checked out /usr/local/share/hal/fdi/policy/ and found in some files (particularly storage) the key options are set to u= or uid=. So I'm still attempting to assimilate all that to produce something other than a brainfart, and possibly restore balance to the force in that way. Oh, and to preclude any suggestion to this effect, I have set vfs.usermount=1. Note that HAL also has an option of fixed mount points to be set at compile time. I think I had set it... No. At least I don't think I set it. I'm also unsure if NFS mounts are fixed or removable in PK terminology. Nothing is clear on any of this. Which nutcase designed this anyway? Any documentation is vague and unclear, and the software config itself is about as clear as the weather on venus- and just as toxic too ;) Regarding your second question, I can't provide any further information. I just assume it's a means to turn a safe multi-user system into an insecure single-user system, which is what users expect. :-) Dear god! What is this world coming to? And yet they all clamour to use the computer at the same time... thats the scene I see in families all the time, let alone work operations. Thanks ___ 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