Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
compctl-kam
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Martin Mareš
compctl-kam
Commits
a0bae15f
Commit
a0bae15f
authored
13 years ago
by
Petr Baudis
Browse files
Options
Downloads
Patches
Plain Diff
compctl --limitmem: Value in MiB instead of B
parent
509f8aa0
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.client
+2
-2
2 additions, 2 deletions
README.client
compctl.c
+2
-1
2 additions, 1 deletion
compctl.c
with
4 additions
and
3 deletions
README.client
+
2
−
2
View file @
a0bae15f
...
...
@@ -20,7 +20,7 @@ Arguments for running computations:
Arguments for controlling computations:
--usage show resource usage of all running computations
--limitmem MAXMEM
change
the maximum memory consumed by all computations
--limitmem MAXMEM
set
the maximum memory consumed by all computations
[MiB]
--list list all running computations
--stop PGRP stop a given computation (number as listed in --list)
--stopall stop all running computations
...
...
@@ -43,5 +43,5 @@ Examples
compctl --run ./satsolver data.sat | tee results.txt
compctl --screen autotest-screen 5
compctl --limitmem 4
G
compctl --limitmem 4
096
compctl --stop 27134
This diff is collapsed.
Click to expand it.
compctl.c
+
2
−
1
View file @
a0bae15f
...
...
@@ -151,7 +151,8 @@ stop_all(void)
void
limit_mem
(
size_t
limit
)
{
char
cmd
[
256
];
snprintf
(
cmd
,
sizeof
(
cmd
),
"limitmem %zu"
,
limit
);
char
cmd
[
256
];
snprintf
(
cmd
,
sizeof
(
cmd
),
"limitmem %zu"
,
limit
*
1048576
);
char
*
line
=
daemon_chat
(
cmd
);
if
(
line
[
0
]
!=
'1'
)
{
/* TODO: Error message postprocessing. */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment