6 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
We have a single threaded application which is restricted by CPU usage even though there are multiple CPUs on the server, hence leading to significant performance issues. Is it possible to merge / combine multiple CPUs at OS level so it appear as a single CPU for the application? (6 Replies)
Discussion started by: Dissa
6 Replies
2. Programming
Hello,
I extracted a list of files in a directory with the command ls . However this is not my computer, so the ls functionality has been revamped so that it gives the filesizes in front like this :
This is the output of ls command : I stored the output in a file filelist
1.1M... (5 Replies)
Discussion started by: ajayram
5 Replies
3. UNIX Benchmarks
p520's prtconf ..two internal drives 10K RPMs 140G, 2 dual core 1.5 GHz processors, 8 Gig of RAM, running AIX 7.1, with the newest gcc compiler
The numbers don't make sense,
Can someone comment ??
BYTE UNIX Benchmarks (Version 3.11)
System -- AIX p520 1 7 00CD5D0C4C00
Start... (2 Replies)
Discussion started by: ppchu99
2 Replies
4. Shell Programming and Scripting
Hello everybody,
I have a little problem with one of my program. I made a plugin for collectd (a stats collector for my servers) but I have a problem to make it run in parallel.
My program gathers stats from logs, so it needs to run in background waiting for any new lines added in the log... (0 Replies)
Discussion started by: Samb95
0 Replies
5. Solaris
Hello Friends,
On one of my Solaris 10 box, CPU usage shows 100% using "sar", "vmstat". However, it has 4 CPUs and prstat and glance are not showing enough processes to justify high CPU utilization.
=========================================================================
$ prstat -a
... (4 Replies)
Discussion started by: mahive
4 Replies
6. UNIX for Dummies Questions & Answers
hi,
i want to know cpu utilizatiion per process per cpu..for single processor also if multicore in linux ..to use these values in shell script to kill processes exceeding cpu utilization.ps (pcpu) command does not give exact values..top does not give persistant values..psstat,vmstat..does njot... (3 Replies)
Discussion started by: pankajd
3 Replies
OpenGuides::Test(3pm) User Contributed Perl Documentation OpenGuides::Test(3pm)
NAME
OpenGuides::Test - Methods to help test OpenGuides applications.
DESCRIPTION
Provides methods to help when writing tests for OpenGuides. Distributed and installed as part of the OpenGuides project, not intended for
independent installation. This documentation is probably only useful to OpenGuides developers.
SYNOPSIS
use OpenGuides;
use OpenGuides::Test;
OpenGuides::Test::refresh_db();
my $config = OpenGuides::Test->make_basic_config;
$config->default_language( "nl" );
my $guide = OpenGuides->new( config => $config );
OpenGuides::Test->write_data(
guide => $guide,
node => "Crabtree Tavern",
os_x => 523465,
os_y => 177490,
categories => "Pubs",
);
METHODS
make_basic_config
my $config = OpenGuides::Test->make_basic_config;
$config->default_language( "nl" );
Makes an OpenGuides::Config object with needed fields pre-filled. You can mess with it as you like then.
write_data
my $config = OpenGuides::Test->make_basic_config;
my $guide = OpenGuides->new( config => $config );
OpenGuides::Test->write_data(
guide => $guide,
node => "Crabtree Tavern",
os_x => 523465,
os_y => 177490,
categories => "Pubs
Pub Food",
);
This method calls the "make_cgi_object" method to make its CGI object; you can supply values for any key mentioned there. You should
supply them exactly as they would come from a CGI form, eg lines in a textarea are separated by "
".
This method will automatically grab the checksum from the database, so even if the node already exists your data will still be written.
If you don't want this behaviour (for example, if you're testing edit conflicts) then pass in a true value to the "omit_checksum"
parameter:
OpenGuides::Test->write_data(
guide => $guide,
node => "Crabtree Tavern",
omit_checksum => 1,
);
If you want to grab the output, pass a true value to "return_output":
my $output = OpenGuides::Test->write_data(
guide => $guide,
node => "Crabtree Tavern",
return_output => 1,
);
Similarly, if you pass a true value to "return_tt_vars", the return value will be the variables which would have been passed to the
template for output:
my %vars = OpenGuides::Test->write_data(
guide => $guide,
node => "Crabtree Tavern",
return_tt_vars => 1,
);
make_cgi_object
my $q = OpenGuides::Test->make_cgi_object;
You can supply values for the following keys: "content", "categories", "locales", "node_image", "node_image_licence",
"node_image_copyright", "node_image_url", "phone", "fax", "website", "hours_text", "address", "postcode", "map_link", "os_x", "os_y",
"osie_x", "osie_y", "latitude", "longitude", "summary", "username", "comment", "edit_type". You should supply them exactly as they
would come from a CGI form, eg lines in a textarea are separated by "
".
refresh_db
Openguides::Test::refresh_db();
Unlink the existing SQLite database t/node.db and plucene indexes. Then create a new SQLite database t/node.db
AUTHOR
The OpenGuides Project (openguides-dev@lists.openguides.org)
COPYRIGHT
Copyright (C) 2004-2009 The OpenGuides Project. All Rights Reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.14.2 2013-01-11 OpenGuides::Test(3pm)